I have an resource assignment column on my Gantt. I can change the assignments but I want to know how to save them ? Also can I change the assignment default unit of percentage tot hours.
How to save resource assignments on Bryntum's Gantt?
2k views Asked by Mukta Chourishi At
1
There are 1 answers
Related Questions in EXTJS
- in R, recovering strings that have been converted to factors with factor()
- How to reinstall pandoc after removing .cabal?
- How do I code a Mixed effects model for abalone growth in Aquaculture nutrition with nested individuals
- How to save t.test result in R to a txt file?
- how to call function from library in formula with R type provider
- geom_bar define border color with different fill colors
- Different outcome using model.matrix for a function in R
- Creating a combination data.table in R
- Force specific interactions in Package 'earth' in R
- Output from recursive function R
Related Questions in GANTT-CHART
- in R, recovering strings that have been converted to factors with factor()
- How to reinstall pandoc after removing .cabal?
- How do I code a Mixed effects model for abalone growth in Aquaculture nutrition with nested individuals
- How to save t.test result in R to a txt file?
- how to call function from library in formula with R type provider
- geom_bar define border color with different fill colors
- Different outcome using model.matrix for a function in R
- Creating a combination data.table in R
- Force specific interactions in Package 'earth' in R
- Output from recursive function R
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Read up a little bit on the CrudManager that deals with data loading and saving. This link has all you need.
http://www.bryntum.com/docs/scheduling/3.x/?#!/guide/gantt_crud_manager
Introduction
This guide describes how to use the CRUD manager with Ext Gantt. It contains only Gantt specific details. For general information on CRUD manager implementation and architecture see this guide.
The class implementing CRUD manager for Ext Gantt is called Gnt.data.CrudManager. It uses AJAX as transport system and JSON as encoding format. Benefits of using the CRUD manager
In previous versions of the Ext Gantt, you had to load and save data using the standard Ext JS data package. This would involve setting proxies on data stores and handling load and save on each such store. This approach worked, but had a few drawbacks:
For performance reasons, obvisously we'd like the loading process to use a single request that returns the data to be consumed by all the stores used in the Gantt chart. This is now easy to achieve since the CM loads the data in one request. When it comes to saving changes, you normally want to have an "all-or-nothing" transaction-based approach to persisting updates in your database. This is not feasible if you're using two separate ajax requests. Stores
There are a number of different data entities used in Ext Gantt: calendars, resources, assignments, dependencies and tasks. To register them with a Gnt.data.CrudManager instance, the following configs should be used respectively: calendarManager, resourceStore, assignmentStore, dependencyStore, taskStore.
Here's a how a basic configuration would look:
The backend, in this case the "read.php" should return a JSON similar to the one seen below:
You should not specify calendarManager, resourceStore, dependencyStore and assignmentStore configs if they were already specified for the task store instance. In this case, the CRUD manager will just take them from the provided task store instance:
You can provide any number of additional stores using the stores config:
var crudManager = new Gnt.data.CrudManager({ taskStore : taskStore, stores : [ store1, store2, store3 ], transport : { load : { url : 'php/read.php' }, sync : { url : 'php/save.php' } } });
Or add them programmatically using the addStore method:
Implementation
Here is how a CRUD manager can be created:
In above example data, the load operation will start automatically since the CM is configured with the autoLoad option set to true. There is also a load method to invoke loading manually:
To persist changes automatically, there is an autoSync option, and you can of course also call the sync method manually if needed:
Any Gnt.panel.Gantt instances can be configured to use a CRUD manager by providing the crudManager config. In this case you don't need to specify taskStore, dependencyStore, resourceStore, assignmentStore on the Gantt panel. They will be taken from provided crudManager instance.
Calendars
Gnt.data.CrudManager supports bulk loading of all the project calendars in a project. To be able to do this, the Gnt.data.CrudManager.calendarManager config has to be specified or it can be specified on the task store.
Load response structure
The calendar manager load response has a bit more complex structure than the described general one.
The first difference from a standard response is that for each calendar we include its data under the Days field. The object under Days field has exactly the same structure as any other object containing store data. It has rows containing an array of calendar records (each represents a Gnt.model.CalendarDay instance) and total defines the number of them.
Another thing to take a note on, is how metaData is used for calendar manager loading. It has a projectCalendar property which must contain the identifier of the calendar that should be used as the project calendar.