fetching data from an external value.

Support for v6.x of our Scheduling components


User avatar
ce.alicanonal
Posts: 89
Joined: Wed Sep 09, 2020 11:56 am

Re: fetching data from an external value.

Post by ce.alicanonal »

yes i added 3 videos, i made different scenarios in videos 1 and 2 from these videos i added and i looked at the incoming data only request id changes i guess it is not important i got a bidet Z.EntityFramework error i don't know what this is. Now, in videos 1 and 2, I started the machine first and the data came, then I sent it for the second, but I took the outgoing data. In the second case, I started it with Second, the data came true, then I sent it to main, it was not loaded. In fact, the outgoing data is the same in the uploaded data.
When you watch the videos, you will understand what I mean.

Video 1 : https://youtu.be/4ENKQ_uvFoU
Video 2 : https://youtu.be/HG0iM_szOQ8

step by step progress of the project
Video 3 : https://www.youtube.com/watch?v=rVHlCehTfSI&feature=youtu.be

Last edited by ce.alicanonal on Tue Sep 22, 2020 10:11 am, edited 2 times in total.

User avatar
ce.alicanonal
Posts: 89
Joined: Wed Sep 09, 2020 11:56 am

Re: fetching data from an external value.

Post by ce.alicanonal »

When I start the project with the main project, the main project appears and I looked at the outgoing json.

Code: Select all

{"calendars":{"rows":[{"Id":1,"Name":"General","DaysPerMonth":20,"DaysPerWeek":5,"HoursPerDay":8,"WeekendFirstDay":6,"WeekendSecondDay":0,"DefaultAvailability":["08:00-12:00","13:00-17:00"],"WeekendsAreWorkdays":false,"Days":{"rows":[{"Id":1,"Name":"Some big holiday","Type":"DAY","Date":"2010-01-14T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":"gnt-national-holiday","IsWorkingDay":false,"calendarId":"1","Availability":null}],"total":1},"leaf":false,"children":[{"Id":2,"Name":"Holidays","DaysPerMonth":20,"DaysPerWeek":5,"HoursPerDay":8,"WeekendFirstDay":6,"WeekendSecondDay":0,"DefaultAvailability":["08:00-12:00"],"WeekendsAreWorkdays":false,"Days":{"rows":[{"Id":2,"Name":"Mats's birthday","Type":"DAY","Date":"2010-01-13T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":"gnt-national-holiday","IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":3,"Name":"Bryntum company holiday","Type":"DAY","Date":"2010-02-01T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":"gnt-company-holiday","IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":4,"Name":"Bryntum 1st birthday","Type":"DAY","Date":"2010-12-01T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":5,"Name":"Half working day","Type":"DAY","Date":"2012-03-27T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":6,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":-1,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":7,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":0,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":8,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":1,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":9,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":2,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["13:00-15:00"]},{"Id":10,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":3,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":11,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":4,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":12,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":5,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":13,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":6,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":14,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":-1,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":15,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":0,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":16,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":1,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":17,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":2,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["13:00-15:00"]}],"total":16},"leaf":true,"children":null,"parentId":"1"}],"parentId":null},{"Id":3,"Name":"Night shift","DaysPerMonth":20,"DaysPerWeek":5,"HoursPerDay":8,"WeekendFirstDay":6,"WeekendSecondDay":0,"DefaultAvailability":["00:00-06:00","22:00-24:00"],"WeekendsAreWorkdays":false,"Days":{"rows":[],"total":0},"leaf":true,"children":null,"parentId":null}],"metaData":{"projectCalendar":1}},"resources":{"rows":[{"CalendarId":"","Id":1,"Name":"Mats"},{"CalendarId":"","Id":2,"Name":"Nickolay"},{"CalendarId":"","Id":3,"Name":"Goran"},{"CalendarId":"","Id":4,"Name":"Dan"},{"CalendarId":"","Id":5,"Name":"Jake"},{"CalendarId":"","Id":6,"Name":"Kim"}],"total":6},"tasks":{"rows":[{"Segments":[],"CalendarId":null,"leaf":false,"children":[{"Segments":[{"TaskId":"4","Id":1,"StartDate":"2012-09-03T08:00:00","EndDate":"2012-09-04T17:00:00","Duration":2.00,"DurationUnit":"d","Cls":null},{"TaskId":"4","Id":2,"StartDate":"2012-09-06T08:00:00","EndDate":"2012-09-10T17:00:00","Duration":3.00,"DurationUnit":"d","Cls":null},{"TaskId":"4","Id":3,"StartDate":"2012-09-12T08:00:00","EndDate":"2012-10-09T17:00:00","Duration":20.00,"DurationUnit":"d","Cls":null}],"CalendarId":null,"leaf":true,"children":null,"Id":4,"Name":"Initial phase","StartDate":"2012-09-03T08:00:00","EndDate":"2012-10-05T17:00:00","Duration":25.00,"DurationUnit":"d","PercentDone":70.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":0,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"1"},{"Segments":[],"CalendarId":null,"leaf":false,"children":[{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":10,"Name":"Research","StartDate":"2012-10-08T08:00:00","EndDate":"2012-10-19T17:00:00","Duration":10.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":0,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"5"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":11,"Name":"First implementation","StartDate":"2012-10-22T08:00:00","EndDate":"2012-10-26T17:00:00","Duration":5.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":1,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"5"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":12,"Name":"Tests","StartDate":"2012-10-25T08:00:00","EndDate":"2012-11-06T17:00:00","Duration":9.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":2,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"5"}],"Id":5,"Name":"Alpha","StartDate":"2012-10-08T08:00:00","EndDate":"2012-11-06T17:00:00","Duration":22.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":1,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":true,"Color":null,"parentId":"1"},{"Segments":[],"CalendarId":null,"leaf":false,"children":[{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":13,"Name":"Refactoring after Alpha","StartDate":"2012-10-29T08:00:00","EndDate":"2012-11-09T17:00:00","Duration":10.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":0,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"6"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":14,"Name":"Tests","StartDate":"2012-11-12T08:00:00","EndDate":"2012-11-16T17:00:00","Duration":5.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":1,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"6"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":15,"Name":"Internal beta","StartDate":"2012-11-19T08:00:00","EndDate":"2012-12-07T17:00:00","Duration":15.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":2,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"6"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":16,"Name":"Additional testing","StartDate":"2012-11-19T08:00:00","EndDate":"2012-12-17T17:00:00","Duration":21.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":3,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"6"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":17,"Name":"Public beta","StartDate":"2012-11-19T08:00:00","EndDate":"2012-12-24T17:00:00","Duration":26.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":4,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"6"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":18,"Name":"Release","StartDate":"2012-12-25T17:00:00","EndDate":"2012-12-25T17:00:00","Duration":0.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":5,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"6"}],"Id":6,"Name":"Beta","StartDate":"2012-10-29T08:00:00","EndDate":"2012-12-25T17:00:00","Duration":42.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":2,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":true,"Color":null,"parentId":"1"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":7,"Name":"Marketing","StartDate":"2012-11-12T08:00:00","EndDate":"2012-12-25T17:00:00","Duration":32.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":3,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":true,"Color":null,"parentId":"1"}],"Id":1,"Name":"Main project","StartDate":"2012-09-03T08:00:00","EndDate":"2012-12-25T17:00:00","Duration":82.00,"DurationUnit":"d","PercentDone":11.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":0,"expanded":true,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":null}]},"assignments":{"rows":[{"Id":1,"Units":50,"TaskId":"4","ResourceId":"1"},{"Id":2,"Units":50,"TaskId":"4","ResourceId":"2"}],"total":2},"dependencies":{"rows":[{"Id":1,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"8","To":"9"},{"Id":2,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"13","To":"14"},{"Id":3,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"14","To":"15"},{"Id":4,"Type":0,"Cls":"","Lag":0.00,"LagUnit":"d","From":"16","To":"17"},{"Id":5,"Type":0,"Cls":"","Lag":0.00,"LagUnit":"d","From":"15","To":"16"},{"Id":6,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"17","To":"18"},{"Id":7,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"7","To":"3"},{"Id":8,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"7","To":"18"},{"Id":9,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"10","To":"11"},{"Id":10,"Type":0,"Cls":"","Lag":0.00,"LagUnit":"d","From":"11","To":"12"}],"total":10},"revision":1,"success":true,"requestId":1161553915075}

this is correct json because data is being loaded. but when i started with the second project and sent main, json is also

Code: Select all

{"calendars":{"rows":[{"Id":1,"Name":"General","DaysPerMonth":20,"DaysPerWeek":5,"HoursPerDay":8,"WeekendFirstDay":6,"WeekendSecondDay":0,"DefaultAvailability":["08:00-12:00","13:00-17:00"],"WeekendsAreWorkdays":false,"Days":{"rows":[{"Id":1,"Name":"Some big holiday","Type":"DAY","Date":"2010-01-14T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":"gnt-national-holiday","IsWorkingDay":false,"calendarId":"1","Availability":null}],"total":1},"leaf":false,"children":[{"Id":2,"Name":"Holidays","DaysPerMonth":20,"DaysPerWeek":5,"HoursPerDay":8,"WeekendFirstDay":6,"WeekendSecondDay":0,"DefaultAvailability":["08:00-12:00"],"WeekendsAreWorkdays":false,"Days":{"rows":[{"Id":2,"Name":"Mats's birthday","Type":"DAY","Date":"2010-01-13T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":"gnt-national-holiday","IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":3,"Name":"Bryntum company holiday","Type":"DAY","Date":"2010-02-01T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":"gnt-company-holiday","IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":4,"Name":"Bryntum 1st birthday","Type":"DAY","Date":"2010-12-01T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":5,"Name":"Half working day","Type":"DAY","Date":"2012-03-27T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":6,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":-1,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":7,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":0,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":8,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":1,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":9,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":2,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["13:00-15:00"]},{"Id":10,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":3,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":11,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":4,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":12,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":5,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":13,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":6,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":14,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":-1,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":15,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":0,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":16,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":1,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":17,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":2,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["13:00-15:00"]}],"total":16},"leaf":true,"children":null,"parentId":"1"}],"parentId":null},{"Id":3,"Name":"Night shift","DaysPerMonth":20,"DaysPerWeek":5,"HoursPerDay":8,"WeekendFirstDay":6,"WeekendSecondDay":0,"DefaultAvailability":["00:00-06:00","22:00-24:00"],"WeekendsAreWorkdays":false,"Days":{"rows":[],"total":0},"leaf":true,"children":null,"parentId":null}],"metaData":{"projectCalendar":1}},"resources":{"rows":[{"CalendarId":"","Id":1,"Name":"Mats"},{"CalendarId":"","Id":2,"Name":"Nickolay"},{"CalendarId":"","Id":3,"Name":"Goran"},{"CalendarId":"","Id":4,"Name":"Dan"},{"CalendarId":"","Id":5,"Name":"Jake"},{"CalendarId":"","Id":6,"Name":"Kim"}],"total":6},"tasks":{"rows":[{"Segments":[],"CalendarId":null,"leaf":false,"children":[{"Segments":[{"TaskId":"4","Id":1,"StartDate":"2012-09-03T08:00:00","EndDate":"2012-09-04T17:00:00","Duration":2.00,"DurationUnit":"d","Cls":null},{"TaskId":"4","Id":2,"StartDate":"2012-09-06T08:00:00","EndDate":"2012-09-10T17:00:00","Duration":3.00,"DurationUnit":"d","Cls":null},{"TaskId":"4","Id":3,"StartDate":"2012-09-12T08:00:00","EndDate":"2012-10-09T17:00:00","Duration":20.00,"DurationUnit":"d","Cls":null}],"CalendarId":null,"leaf":true,"children":null,"Id":4,"Name":"Initial phase","StartDate":"2012-09-03T08:00:00","EndDate":"2012-10-05T17:00:00","Duration":25.00,"DurationUnit":"d","PercentDone":70.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":0,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"1"},{"Segments":[],"CalendarId":null,"leaf":false,"children":[{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":10,"Name":"Research","StartDate":"2012-10-08T08:00:00","EndDate":"2012-10-19T17:00:00","Duration":10.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":0,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"5"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":11,"Name":"First implementation","StartDate":"2012-10-22T08:00:00","EndDate":"2012-10-26T17:00:00","Duration":5.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":1,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"5"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":12,"Name":"Tests","StartDate":"2012-10-25T08:00:00","EndDate":"2012-11-06T17:00:00","Duration":9.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":2,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"5"}],"Id":5,"Name":"Alpha","StartDate":"2012-10-08T08:00:00","EndDate":"2012-11-06T17:00:00","Duration":22.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":1,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":true,"Color":null,"parentId":"1"},{"Segments":[],"CalendarId":null,"leaf":false,"children":[{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":13,"Name":"Refactoring after Alpha","StartDate":"2012-10-29T08:00:00","EndDate":"2012-11-09T17:00:00","Duration":10.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":0,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"6"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":14,"Name":"Tests","StartDate":"2012-11-12T08:00:00","EndDate":"2012-11-16T17:00:00","Duration":5.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":1,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"6"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":15,"Name":"Internal beta","StartDate":"2012-11-19T08:00:00","EndDate":"2012-12-07T17:00:00","Duration":15.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":2,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"6"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":16,"Name":"Additional testing","StartDate":"2012-11-19T08:00:00","EndDate":"2012-12-17T17:00:00","Duration":21.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":3,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"6"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":17,"Name":"Public beta","StartDate":"2012-11-19T08:00:00","EndDate":"2012-12-24T17:00:00","Duration":26.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":4,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"6"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":18,"Name":"Release","StartDate":"2012-12-25T17:00:00","EndDate":"2012-12-25T17:00:00","Duration":0.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":5,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"6"}],"Id":6,"Name":"Beta","StartDate":"2012-10-29T08:00:00","EndDate":"2012-12-25T17:00:00","Duration":42.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":2,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":true,"Color":null,"parentId":"1"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":7,"Name":"Marketing","StartDate":"2012-11-12T08:00:00","EndDate":"2012-12-25T17:00:00","Duration":32.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":3,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":true,"Color":null,"parentId":"1"}],"Id":1,"Name":"Main project","StartDate":"2012-09-03T08:00:00","EndDate":"2012-12-25T17:00:00","Duration":82.00,"DurationUnit":"d","PercentDone":11.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":0,"expanded":true,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":null}]},"assignments":{"rows":[{"Id":1,"Units":50,"TaskId":"4","ResourceId":"1"},{"Id":2,"Units":50,"TaskId":"4","ResourceId":"2"}],"total":2},"dependencies":{"rows":[{"Id":1,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"8","To":"9"},{"Id":2,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"13","To":"14"},{"Id":3,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"14","To":"15"},{"Id":4,"Type":0,"Cls":"","Lag":0.00,"LagUnit":"d","From":"16","To":"17"},{"Id":5,"Type":0,"Cls":"","Lag":0.00,"LagUnit":"d","From":"15","To":"16"},{"Id":6,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"17","To":"18"},{"Id":7,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"7","To":"3"},{"Id":8,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"7","To":"18"},{"Id":9,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"10","To":"11"},{"Id":10,"Type":0,"Cls":"","Lag":0.00,"LagUnit":"d","From":"11","To":"12"}],"total":10},"revision":1,"success":true,"requestId":1551931130825}

I couldn't see anything other than request id, doesn't this data need to be correct? it's the same data after all.


User avatar
ce.alicanonal
Posts: 89
Joined: Wed Sep 09, 2020 11:56 am

Re: fetching data from an external value.

Post by ce.alicanonal »

These second project data are data loaded correctly.

Code: Select all

{"calendars":{"rows":[{"Id":1,"Name":"General","DaysPerMonth":20,"DaysPerWeek":5,"HoursPerDay":8,"WeekendFirstDay":6,"WeekendSecondDay":0,"DefaultAvailability":["08:00-12:00","13:00-17:00"],"WeekendsAreWorkdays":false,"Days":{"rows":[{"Id":1,"Name":"Some big holiday","Type":"DAY","Date":"2010-01-14T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":"gnt-national-holiday","IsWorkingDay":false,"calendarId":"1","Availability":null}],"total":1},"leaf":false,"children":[{"Id":2,"Name":"Holidays","DaysPerMonth":20,"DaysPerWeek":5,"HoursPerDay":8,"WeekendFirstDay":6,"WeekendSecondDay":0,"DefaultAvailability":["08:00-12:00"],"WeekendsAreWorkdays":false,"Days":{"rows":[{"Id":2,"Name":"Mats's birthday","Type":"DAY","Date":"2010-01-13T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":"gnt-national-holiday","IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":3,"Name":"Bryntum company holiday","Type":"DAY","Date":"2010-02-01T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":"gnt-company-holiday","IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":4,"Name":"Bryntum 1st birthday","Type":"DAY","Date":"2010-12-01T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":5,"Name":"Half working day","Type":"DAY","Date":"2012-03-27T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":6,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":-1,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":7,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":0,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":8,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":1,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":9,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":2,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["13:00-15:00"]},{"Id":10,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":3,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":11,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":4,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":12,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":5,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":13,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":6,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":14,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":-1,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":15,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":0,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":16,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":1,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":17,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":2,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["13:00-15:00"]}],"total":16},"leaf":true,"children":null,"parentId":"1"}],"parentId":null},{"Id":3,"Name":"Night shift","DaysPerMonth":20,"DaysPerWeek":5,"HoursPerDay":8,"WeekendFirstDay":6,"WeekendSecondDay":0,"DefaultAvailability":["00:00-06:00","22:00-24:00"],"WeekendsAreWorkdays":false,"Days":{"rows":[],"total":0},"leaf":true,"children":null,"parentId":null}],"metaData":{"projectCalendar":1}},"resources":{"rows":[{"CalendarId":"","Id":1,"Name":"Mats"},{"CalendarId":"","Id":2,"Name":"Nickolay"},{"CalendarId":"","Id":3,"Name":"Goran"},{"CalendarId":"","Id":4,"Name":"Dan"},{"CalendarId":"","Id":5,"Name":"Jake"},{"CalendarId":"","Id":6,"Name":"Kim"}],"total":6},"tasks":{"rows":[{"Segments":[],"CalendarId":null,"leaf":false,"children":[{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":8,"Name":"Research","StartDate":"2012-09-17T08:00:00","EndDate":"2012-10-30T17:00:00","Duration":32.00,"DurationUnit":"d","PercentDone":60.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":0,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"2"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":9,"Name":"Test implementation","StartDate":"2012-10-30T17:00:00","EndDate":"2012-10-30T17:00:00","Duration":0.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":1,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"2"}],"Id":2,"Name":"Second project","StartDate":"2012-09-17T08:00:00","EndDate":"2012-10-30T17:00:00","Duration":32.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":1,"expanded":true,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":null}]},"assignments":{"rows":[{"Id":1,"Units":50,"TaskId":"4","ResourceId":"1"},{"Id":2,"Units":50,"TaskId":"4","ResourceId":"2"}],"total":2},"dependencies":{"rows":[{"Id":1,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"8","To":"9"},{"Id":2,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"13","To":"14"},{"Id":3,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"14","To":"15"},{"Id":4,"Type":0,"Cls":"","Lag":0.00,"LagUnit":"d","From":"16","To":"17"},{"Id":5,"Type":0,"Cls":"","Lag":0.00,"LagUnit":"d","From":"15","To":"16"},{"Id":6,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"17","To":"18"},{"Id":7,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"7","To":"3"},{"Id":8,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"7","To":"18"},{"Id":9,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"10","To":"11"},{"Id":10,"Type":0,"Cls":"","Lag":0.00,"LagUnit":"d","From":"11","To":"12"}],"total":10},"revision":1,"success":true,"requestId":1246967558769}

And the data I started with this main project and then sent to the second project is not loaded, but the data is the same.

Code: Select all

{"calendars":{"rows":[{"Id":1,"Name":"General","DaysPerMonth":20,"DaysPerWeek":5,"HoursPerDay":8,"WeekendFirstDay":6,"WeekendSecondDay":0,"DefaultAvailability":["08:00-12:00","13:00-17:00"],"WeekendsAreWorkdays":false,"Days":{"rows":[{"Id":1,"Name":"Some big holiday","Type":"DAY","Date":"2010-01-14T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":"gnt-national-holiday","IsWorkingDay":false,"calendarId":"1","Availability":null}],"total":1},"leaf":false,"children":[{"Id":2,"Name":"Holidays","DaysPerMonth":20,"DaysPerWeek":5,"HoursPerDay":8,"WeekendFirstDay":6,"WeekendSecondDay":0,"DefaultAvailability":["08:00-12:00"],"WeekendsAreWorkdays":false,"Days":{"rows":[{"Id":2,"Name":"Mats's birthday","Type":"DAY","Date":"2010-01-13T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":"gnt-national-holiday","IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":3,"Name":"Bryntum company holiday","Type":"DAY","Date":"2010-02-01T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":"gnt-company-holiday","IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":4,"Name":"Bryntum 1st birthday","Type":"DAY","Date":"2010-12-01T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":5,"Name":"Half working day","Type":"DAY","Date":"2012-03-27T00:00:00","Weekday":null,"OverrideStartDate":null,"OverrideEndDate":null,"Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":6,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":-1,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":7,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":0,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":8,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":1,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":9,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":2,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["13:00-15:00"]},{"Id":10,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":3,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":11,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":4,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":12,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":5,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":13,"Name":"Non standard week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":6,"OverrideStartDate":"2012-03-25T00:00:00","OverrideEndDate":"2012-03-31T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":14,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":-1,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":15,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":0,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":false,"calendarId":"2","Availability":null},{"Id":16,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":1,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["08:00-12:00"]},{"Id":17,"Name":"Non standard feb week","Type":"WEEKDAYOVERRIDE","Date":null,"Weekday":2,"OverrideStartDate":"2012-02-25T00:00:00","OverrideEndDate":"2012-02-28T00:00:00","Cls":null,"IsWorkingDay":true,"calendarId":"2","Availability":["13:00-15:00"]}],"total":16},"leaf":true,"children":null,"parentId":"1"}],"parentId":null},{"Id":3,"Name":"Night shift","DaysPerMonth":20,"DaysPerWeek":5,"HoursPerDay":8,"WeekendFirstDay":6,"WeekendSecondDay":0,"DefaultAvailability":["00:00-06:00","22:00-24:00"],"WeekendsAreWorkdays":false,"Days":{"rows":[],"total":0},"leaf":true,"children":null,"parentId":null}],"metaData":{"projectCalendar":1}},"resources":{"rows":[{"CalendarId":"","Id":1,"Name":"Mats"},{"CalendarId":"","Id":2,"Name":"Nickolay"},{"CalendarId":"","Id":3,"Name":"Goran"},{"CalendarId":"","Id":4,"Name":"Dan"},{"CalendarId":"","Id":5,"Name":"Jake"},{"CalendarId":"","Id":6,"Name":"Kim"}],"total":6},"tasks":{"rows":[{"Segments":[],"CalendarId":null,"leaf":false,"children":[{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":8,"Name":"Research","StartDate":"2012-09-17T08:00:00","EndDate":"2012-10-30T17:00:00","Duration":32.00,"DurationUnit":"d","PercentDone":60.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":0,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"2"},{"Segments":[],"CalendarId":null,"leaf":true,"children":null,"Id":9,"Name":"Test implementation","StartDate":"2012-10-30T17:00:00","EndDate":"2012-10-30T17:00:00","Duration":0.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":1,"expanded":false,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":"2"}],"Id":2,"Name":"Second project","StartDate":"2012-09-17T08:00:00","EndDate":"2012-10-30T17:00:00","Duration":32.00,"DurationUnit":"d","PercentDone":0.00,"SchedulingMode":null,"BaselineStartDate":null,"BaselineEndDate":null,"BaselinePercentDone":null,"Cls":"","index":1,"expanded":true,"Effort":null,"EffortUnit":null,"Note":null,"ConstraintType":null,"ConstraintDate":null,"ManuallyScheduled":false,"Draggable":true,"Resizable":true,"Rollup":false,"ShowInTimeline":false,"Color":null,"parentId":null}]},"assignments":{"rows":[{"Id":1,"Units":50,"TaskId":"4","ResourceId":"1"},{"Id":2,"Units":50,"TaskId":"4","ResourceId":"2"}],"total":2},"dependencies":{"rows":[{"Id":1,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"8","To":"9"},{"Id":2,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"13","To":"14"},{"Id":3,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"14","To":"15"},{"Id":4,"Type":0,"Cls":"","Lag":0.00,"LagUnit":"d","From":"16","To":"17"},{"Id":5,"Type":0,"Cls":"","Lag":0.00,"LagUnit":"d","From":"15","To":"16"},{"Id":6,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"17","To":"18"},{"Id":7,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"7","To":"3"},{"Id":8,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"7","To":"18"},{"Id":9,"Type":2,"Cls":"","Lag":0.00,"LagUnit":"d","From":"10","To":"11"},{"Id":10,"Type":0,"Cls":"","Lag":0.00,"LagUnit":"d","From":"11","To":"12"}],"total":10},"revision":1,"success":true,"requestId":815482598589}

this is the error i get as error
CrudManager: sync failed, please inspect the server response {"success":false,"message":"'Z.EntityFramework.Plus.EF6, Version=1.7.15.0, Culture=neutral, PublicKeyToken=59b66d028979105b' dosyasını veya bütünleştirilmiş kodunu ya da bağımlılıklarından birini yükleyemedi. Konumlandırılan bütünleştirilmiş kodun bildirim tanımı bütünleştirilmiş kod başvurusuyla eşleşmiyor. (HRESULT özel durum döndürdü: 0x80131040)","code":null,"requestId":1274727436962}

edit: I fixed the error I deleted and reinstalled ef.plus but the data is still unchanged.


User avatar
fabio.policeno
Core Developer
Core Developer
Posts: 171
Joined: Sun Jul 12, 2020 8:22 pm

Re: fetching data from an external value.

Post by fabio.policeno »

Hi ce.alicanonal,

I realised you are creating a new instance for your crudManager that isn't linked to your gantt.

I just created a very simple example that load a project and you click in a button and it will load the second project. The projects are exactly your jsons you posted here.

Code: Select all

<!DOCTYPE html>
<html>
    <head>
        <!--Ext JS styles and scripts -->
        <script src="./ext/7.1.0.46/build/ext-all.js"></script>
        <script src="./ext/7.1.0.46/build/classic/theme-triton/theme-triton.js"></script>
        <link rel="stylesheet" href="./ext/7.1.0.46/build/classic/theme-triton/resources/theme-triton-all.css" />

    <!--Bryntum Gantt styles and scripts -->
    <link href="../Bryntum-6.x-45d-trial/gantt-6.1.8-trial/resources/css/sch-gantt-triton-all.css" rel="stylesheet" type="text/css" />
    <script src="../Bryntum-6.x-45d-trial/gantt-6.1.8-trial/gnt-all-debug.js" type="text/javascript"></script>

    <script>
        Ext.onReady(function() {
            Ext.create('Gnt.panel.Gantt', {
                height   : 400,
                width    : 900,
                renderTo : document.body,
                itemId   : 'gantt',
                tbar     : [{
                    text    : 'Load Second Project',
                    handler : btn => {
                        const crudMgr = btn.up('#gantt').getCrudManager();
                        
                        crudMgr.transport.load.params.id = 2;
                        crudMgr.load();
                    }
                }],
                crudManager : {
                    autoLoad  : true,
                    transport : {
                        load : {
                            method  : 'GET',
                            url     : 'server.php',
                            params  : {
                                id: 1
                            }
                        }
                    }
                },
                columns : [
                    {
                        xtype : 'namecolumn',
                        width : 200
                    }
                ]
            });
        });
    </script>
</head>
<body>

</body>
</html>

This is just to simulate de server to return different project according with id:

Code: Select all

<?php
$proj1 = <<<EOD
{
	"calendars": {
		"rows": [{
			"Id": 1,
			"Name": "General",
			"DaysPerMonth": 20,
			"DaysPerWeek": 5,
			"HoursPerDay": 8,
			"WeekendFirstDay": 6,
			"WeekendSecondDay": 0,
			"DefaultAvailability": ["08:00-12:00", "13:00-17:00"],
			"WeekendsAreWorkdays": false,
			"Days": {
				"rows": [{
					"Id": 1,
					"Name": "Some big holiday",
					"Type": "DAY",
					"Date": "2010-01-14T00:00:00",
					"Weekday": null,
					"OverrideStartDate": null,
					"OverrideEndDate": null,
					"Cls": "gnt-national-holiday",
					"IsWorkingDay": false,
					"calendarId": "1",
					"Availability": null
				}],
				"total": 1
			},
			"leaf": false,
			"children": [{
				"Id": 2,
				"Name": "Holidays",
				"DaysPerMonth": 20,
				"DaysPerWeek": 5,
				"HoursPerDay": 8,
				"WeekendFirstDay": 6,
				"WeekendSecondDay": 0,
				"DefaultAvailability": ["08:00-12:00"],
				"WeekendsAreWorkdays": false,
				"Days": {
					"rows": [{
						"Id": 2,
						"Name": "Mats's birthday",
						"Type": "DAY",
						"Date": "2010-01-13T00:00:00",
						"Weekday": null,
						"OverrideStartDate": null,
						"OverrideEndDate": null,
						"Cls": "gnt-national-holiday",
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 3,
						"Name": "Bryntum company holiday",
						"Type": "DAY",
						"Date": "2010-02-01T00:00:00",
						"Weekday": null,
						"OverrideStartDate": null,
						"OverrideEndDate": null,
						"Cls": "gnt-company-holiday",
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 4,
						"Name": "Bryntum 1st birthday",
						"Type": "DAY",
						"Date": "2010-12-01T00:00:00",
						"Weekday": null,
						"OverrideStartDate": null,
						"OverrideEndDate": null,
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 5,
						"Name": "Half working day",
						"Type": "DAY",
						"Date": "2012-03-27T00:00:00",
						"Weekday": null,
						"OverrideStartDate": null,
						"OverrideEndDate": null,
						"Cls": null,
						"IsWorkingDay": true,
						"calendarId": "2",
						"Availability": ["08:00-12:00"]
					}, {
						"Id": 6,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": -1,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 7,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 0,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 8,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 1,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": true,
						"calendarId": "2",
						"Availability": ["08:00-12:00"]
					}, {
						"Id": 9,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 2,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": true,
						"calendarId": "2",
						"Availability": ["13:00-15:00"]
					}, {
						"Id": 10,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 3,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 11,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 4,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": true,
						"calendarId": "2",
						"Availability": ["08:00-12:00"]
					}, {
						"Id": 12,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 5,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 13,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 6,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 14,
						"Name": "Non standard feb week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": -1,
						"OverrideStartDate": "2012-02-25T00:00:00",
						"OverrideEndDate": "2012-02-28T00:00:00",
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 15,
						"Name": "Non standard feb week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 0,
						"OverrideStartDate": "2012-02-25T00:00:00",
						"OverrideEndDate": "2012-02-28T00:00:00",
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 16,
						"Name": "Non standard feb week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 1,
						"OverrideStartDate": "2012-02-25T00:00:00",
						"OverrideEndDate": "2012-02-28T00:00:00",
						"Cls": null,
						"IsWorkingDay": true,
						"calendarId": "2",
						"Availability": ["08:00-12:00"]
					}, {
						"Id": 17,
						"Name": "Non standard feb week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 2,
						"OverrideStartDate": "2012-02-25T00:00:00",
						"OverrideEndDate": "2012-02-28T00:00:00",
						"Cls": null,
						"IsWorkingDay": true,
						"calendarId": "2",
						"Availability": ["13:00-15:00"]
					}],
					"total": 16
				},
				"leaf": true,
				"children": null,
				"parentId": "1"
			}],
			"parentId": null
		}, {
			"Id": 3,
			"Name": "Night shift",
			"DaysPerMonth": 20,
			"DaysPerWeek": 5,
			"HoursPerDay": 8,
			"WeekendFirstDay": 6,
			"WeekendSecondDay": 0,
			"DefaultAvailability": ["00:00-06:00", "22:00-24:00"],
			"WeekendsAreWorkdays": false,
			"Days": {
				"rows": [],
				"total": 0
			},
			"leaf": true,
			"children": null,
			"parentId": null
		}],
		"metaData": {
			"projectCalendar": 1
		}
	},
	"resources": {
		"rows": [{
			"CalendarId": "",
			"Id": 1,
			"Name": "Mats"
		}, {
			"CalendarId": "",
			"Id": 2,
			"Name": "Nickolay"
		}, {
			"CalendarId": "",
			"Id": 3,
			"Name": "Goran"
		}, {
			"CalendarId": "",
			"Id": 4,
			"Name": "Dan"
		}, {
			"CalendarId": "",
			"Id": 5,
			"Name": "Jake"
		}, {
			"CalendarId": "",
			"Id": 6,
			"Name": "Kim"
		}],
		"total": 6
	},
	"tasks": {
		"rows": [{
			"Segments": [],
			"CalendarId": null,
			"leaf": false,
			"children": [{
				"Segments": [],
				"CalendarId": null,
				"leaf": true,
				"children": null,
				"Id": 8,
				"Name": "Research",
				"StartDate": "2012-09-17T08:00:00",
				"EndDate": "2012-10-30T17:00:00",
				"Duration": 32.00,
				"DurationUnit": "d",
				"PercentDone": 60.00,
				"SchedulingMode": null,
				"BaselineStartDate": null,
				"BaselineEndDate": null,
				"BaselinePercentDone": null,
				"Cls": "",
				"index": 0,
				"expanded": false,
				"Effort": null,
				"EffortUnit": null,
				"Note": null,
				"ConstraintType": null,
				"ConstraintDate": null,
				"ManuallyScheduled": false,
				"Draggable": true,
				"Resizable": true,
				"Rollup": false,
				"ShowInTimeline": false,
				"Color": null,
				"parentId": "2"
			}, {
				"Segments": [],
				"CalendarId": null,
				"leaf": true,
				"children": null,
				"Id": 9,
				"Name": "Test implementation",
				"StartDate": "2012-10-30T17:00:00",
				"EndDate": "2012-10-30T17:00:00",
				"Duration": 0.00,
				"DurationUnit": "d",
				"PercentDone": 0.00,
				"SchedulingMode": null,
				"BaselineStartDate": null,
				"BaselineEndDate": null,
				"BaselinePercentDone": null,
				"Cls": "",
				"index": 1,
				"expanded": false,
				"Effort": null,
				"EffortUnit": null,
				"Note": null,
				"ConstraintType": null,
				"ConstraintDate": null,
				"ManuallyScheduled": false,
				"Draggable": true,
				"Resizable": true,
				"Rollup": false,
				"ShowInTimeline": false,
				"Color": null,
				"parentId": "2"
			}],
			"Id": 2,
			"Name": "First project",
			"StartDate": "2012-09-17T08:00:00",
			"EndDate": "2012-10-30T17:00:00",
			"Duration": 32.00,
			"DurationUnit": "d",
			"PercentDone": 0.00,
			"SchedulingMode": null,
			"BaselineStartDate": null,
			"BaselineEndDate": null,
			"BaselinePercentDone": null,
			"Cls": "",
			"index": 1,
			"expanded": true,
			"Effort": null,
			"EffortUnit": null,
			"Note": null,
			"ConstraintType": null,
			"ConstraintDate": null,
			"ManuallyScheduled": false,
			"Draggable": true,
			"Resizable": true,
			"Rollup": false,
			"ShowInTimeline": false,
			"Color": null,
			"parentId": null
		}]
	},
	"assignments": {
		"rows": [{
			"Id": 1,
			"Units": 50,
			"TaskId": "4",
			"ResourceId": "1"
		}, {
			"Id": 2,
			"Units": 50,
			"TaskId": "4",
			"ResourceId": "2"
		}],
		"total": 2
	},
	"dependencies": {
		"rows": [{
			"Id": 1,
			"Type": 2,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "8",
			"To": "9"
		}, {
			"Id": 2,
			"Type": 2,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "13",
			"To": "14"
		}, {
			"Id": 3,
			"Type": 2,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "14",
			"To": "15"
		}, {
			"Id": 4,
			"Type": 0,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "16",
			"To": "17"
		}, {
			"Id": 5,
			"Type": 0,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "15",
			"To": "16"
		}, {
			"Id": 6,
			"Type": 2,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "17",
			"To": "18"
		}, {
			"Id": 7,
			"Type": 2,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "7",
			"To": "3"
		}, {
			"Id": 8,
			"Type": 2,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "7",
			"To": "18"
		}, {
			"Id": 9,
			"Type": 2,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "10",
			"To": "11"
		}, {
			"Id": 10,
			"Type": 0,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "11",
			"To": "12"
		}],
		"total": 10
	},
	"revision": 1,
	"success": true,
	"requestId": 1246967558769
}
EOD;

$proj2 = <<<EOD
{
	"calendars": {
		"rows": [{
			"Id": 1,
			"Name": "General",
			"DaysPerMonth": 20,
			"DaysPerWeek": 5,
			"HoursPerDay": 8,
			"WeekendFirstDay": 6,
			"WeekendSecondDay": 0,
			"DefaultAvailability": ["08:00-12:00", "13:00-17:00"],
			"WeekendsAreWorkdays": false,
			"Days": {
				"rows": [{
					"Id": 1,
					"Name": "Some big holiday",
					"Type": "DAY",
					"Date": "2010-01-14T00:00:00",
					"Weekday": null,
					"OverrideStartDate": null,
					"OverrideEndDate": null,
					"Cls": "gnt-national-holiday",
					"IsWorkingDay": false,
					"calendarId": "1",
					"Availability": null
				}],
				"total": 1
			},
			"leaf": false,
			"children": [{
				"Id": 2,
				"Name": "Holidays",
				"DaysPerMonth": 20,
				"DaysPerWeek": 5,
				"HoursPerDay": 8,
				"WeekendFirstDay": 6,
				"WeekendSecondDay": 0,
				"DefaultAvailability": ["08:00-12:00"],
				"WeekendsAreWorkdays": false,
				"Days": {
					"rows": [{
						"Id": 2,
						"Name": "Mats's birthday",
						"Type": "DAY",
						"Date": "2010-01-13T00:00:00",
						"Weekday": null,
						"OverrideStartDate": null,
						"OverrideEndDate": null,
						"Cls": "gnt-national-holiday",
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 3,
						"Name": "Bryntum company holiday",
						"Type": "DAY",
						"Date": "2010-02-01T00:00:00",
						"Weekday": null,
						"OverrideStartDate": null,
						"OverrideEndDate": null,
						"Cls": "gnt-company-holiday",
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 4,
						"Name": "Bryntum 1st birthday",
						"Type": "DAY",
						"Date": "2010-12-01T00:00:00",
						"Weekday": null,
						"OverrideStartDate": null,
						"OverrideEndDate": null,
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 5,
						"Name": "Half working day",
						"Type": "DAY",
						"Date": "2012-03-27T00:00:00",
						"Weekday": null,
						"OverrideStartDate": null,
						"OverrideEndDate": null,
						"Cls": null,
						"IsWorkingDay": true,
						"calendarId": "2",
						"Availability": ["08:00-12:00"]
					}, {
						"Id": 6,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": -1,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 7,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 0,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 8,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 1,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": true,
						"calendarId": "2",
						"Availability": ["08:00-12:00"]
					}, {
						"Id": 9,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 2,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": true,
						"calendarId": "2",
						"Availability": ["13:00-15:00"]
					}, {
						"Id": 10,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 3,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 11,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 4,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": true,
						"calendarId": "2",
						"Availability": ["08:00-12:00"]
					}, {
						"Id": 12,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 5,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 13,
						"Name": "Non standard week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 6,
						"OverrideStartDate": "2012-03-25T00:00:00",
						"OverrideEndDate": "2012-03-31T00:00:00",
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 14,
						"Name": "Non standard feb week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": -1,
						"OverrideStartDate": "2012-02-25T00:00:00",
						"OverrideEndDate": "2012-02-28T00:00:00",
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 15,
						"Name": "Non standard feb week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 0,
						"OverrideStartDate": "2012-02-25T00:00:00",
						"OverrideEndDate": "2012-02-28T00:00:00",
						"Cls": null,
						"IsWorkingDay": false,
						"calendarId": "2",
						"Availability": null
					}, {
						"Id": 16,
						"Name": "Non standard feb week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 1,
						"OverrideStartDate": "2012-02-25T00:00:00",
						"OverrideEndDate": "2012-02-28T00:00:00",
						"Cls": null,
						"IsWorkingDay": true,
						"calendarId": "2",
						"Availability": ["08:00-12:00"]
					}, {
						"Id": 17,
						"Name": "Non standard feb week",
						"Type": "WEEKDAYOVERRIDE",
						"Date": null,
						"Weekday": 2,
						"OverrideStartDate": "2012-02-25T00:00:00",
						"OverrideEndDate": "2012-02-28T00:00:00",
						"Cls": null,
						"IsWorkingDay": true,
						"calendarId": "2",
						"Availability": ["13:00-15:00"]
					}],
					"total": 16
				},
				"leaf": true,
				"children": null,
				"parentId": "1"
			}],
			"parentId": null
		}, {
			"Id": 3,
			"Name": "Night shift",
			"DaysPerMonth": 20,
			"DaysPerWeek": 5,
			"HoursPerDay": 8,
			"WeekendFirstDay": 6,
			"WeekendSecondDay": 0,
			"DefaultAvailability": ["00:00-06:00", "22:00-24:00"],
			"WeekendsAreWorkdays": false,
			"Days": {
				"rows": [],
				"total": 0
			},
			"leaf": true,
			"children": null,
			"parentId": null
		}],
		"metaData": {
			"projectCalendar": 1
		}
	},
	"resources": {
		"rows": [{
			"CalendarId": "",
			"Id": 1,
			"Name": "Mats"
		}, {
			"CalendarId": "",
			"Id": 2,
			"Name": "Nickolay"
		}, {
			"CalendarId": "",
			"Id": 3,
			"Name": "Goran"
		}, {
			"CalendarId": "",
			"Id": 4,
			"Name": "Dan"
		}, {
			"CalendarId": "",
			"Id": 5,
			"Name": "Jake"
		}, {
			"CalendarId": "",
			"Id": 6,
			"Name": "Kim"
		}],
		"total": 6
	},
	"tasks": {
		"rows": [{
			"Segments": [],
			"CalendarId": null,
			"leaf": false,
			"children": [{
				"Segments": [],
				"CalendarId": null,
				"leaf": true,
				"children": null,
				"Id": 8,
				"Name": "Research",
				"StartDate": "2012-09-17T08:00:00",
				"EndDate": "2012-10-30T17:00:00",
				"Duration": 32.00,
				"DurationUnit": "d",
				"PercentDone": 60.00,
				"SchedulingMode": null,
				"BaselineStartDate": null,
				"BaselineEndDate": null,
				"BaselinePercentDone": null,
				"Cls": "",
				"index": 0,
				"expanded": false,
				"Effort": null,
				"EffortUnit": null,
				"Note": null,
				"ConstraintType": null,
				"ConstraintDate": null,
				"ManuallyScheduled": false,
				"Draggable": true,
				"Resizable": true,
				"Rollup": false,
				"ShowInTimeline": false,
				"Color": null,
				"parentId": "2"
			}, {
				"Segments": [],
				"CalendarId": null,
				"leaf": true,
				"children": null,
				"Id": 9,
				"Name": "Test implementation",
				"StartDate": "2012-10-30T17:00:00",
				"EndDate": "2012-10-30T17:00:00",
				"Duration": 0.00,
				"DurationUnit": "d",
				"PercentDone": 0.00,
				"SchedulingMode": null,
				"BaselineStartDate": null,
				"BaselineEndDate": null,
				"BaselinePercentDone": null,
				"Cls": "",
				"index": 1,
				"expanded": false,
				"Effort": null,
				"EffortUnit": null,
				"Note": null,
				"ConstraintType": null,
				"ConstraintDate": null,
				"ManuallyScheduled": false,
				"Draggable": true,
				"Resizable": true,
				"Rollup": false,
				"ShowInTimeline": false,
				"Color": null,
				"parentId": "2"
			}],
			"Id": 2,
			"Name": "Second project",
			"StartDate": "2012-09-17T08:00:00",
			"EndDate": "2012-10-30T17:00:00",
			"Duration": 32.00,
			"DurationUnit": "d",
			"PercentDone": 0.00,
			"SchedulingMode": null,
			"BaselineStartDate": null,
			"BaselineEndDate": null,
			"BaselinePercentDone": null,
			"Cls": "",
			"index": 1,
			"expanded": true,
			"Effort": null,
			"EffortUnit": null,
			"Note": null,
			"ConstraintType": null,
			"ConstraintDate": null,
			"ManuallyScheduled": false,
			"Draggable": true,
			"Resizable": true,
			"Rollup": false,
			"ShowInTimeline": false,
			"Color": null,
			"parentId": null
		}]
	},
	"assignments": {
		"rows": [{
			"Id": 1,
			"Units": 50,
			"TaskId": "4",
			"ResourceId": "1"
		}, {
			"Id": 2,
			"Units": 50,
			"TaskId": "4",
			"ResourceId": "2"
		}],
		"total": 2
	},
	"dependencies": {
		"rows": [{
			"Id": 1,
			"Type": 2,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "8",
			"To": "9"
		}, {
			"Id": 2,
			"Type": 2,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "13",
			"To": "14"
		}, {
			"Id": 3,
			"Type": 2,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "14",
			"To": "15"
		}, {
			"Id": 4,
			"Type": 0,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "16",
			"To": "17"
		}, {
			"Id": 5,
			"Type": 0,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "15",
			"To": "16"
		}, {
			"Id": 6,
			"Type": 2,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "17",
			"To": "18"
		}, {
			"Id": 7,
			"Type": 2,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "7",
			"To": "3"
		}, {
			"Id": 8,
			"Type": 2,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "7",
			"To": "18"
		}, {
			"Id": 9,
			"Type": 2,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "10",
			"To": "11"
		}, {
			"Id": 10,
			"Type": 0,
			"Cls": "",
			"Lag": 0.00,
			"LagUnit": "d",
			"From": "11",
			"To": "12"
		}],
		"total": 10
	},
	"revision": 1,
	"success": true,
	"requestId": 815482598589
}
EOD;

echo $_GET['id'] == 1 ? $proj1 : $proj2;
ext-gantt.gif
ext-gantt.gif (527.26 KiB) Viewed 160 times

Please let me know if this helps you and any question let me know.

Fabio Jr. Policeno
Core Developer


User avatar
ce.alicanonal
Posts: 89
Joined: Wed Sep 09, 2020 11:56 am

Re: fetching data from an external value.

Post by ce.alicanonal »

thank you very much it worked for me and it looks nice. one more thing, I want to create this button somewhere else, I want to capture the gant id in the dropdown menu on the left, but it doesn't catch it, do I need to do anything?
Video : https://youtu.be/ObiLdLGjAqU


User avatar
fabio.policeno
Core Developer
Core Developer
Posts: 171
Joined: Sun Jul 12, 2020 8:22 pm

Re: fetching data from an external value.

Post by fabio.policeno »

I'm glad it solved your problem. As is a different problem, could you please create a new post?

Also, on the new post, please paste part of your javascript code using the "code" button on forum editor, then will be easy to we try and identify the problem.

Thank you!

Fabio Jr. Policeno
Core Developer


User avatar
ce.alicanonal
Posts: 89
Joined: Wed Sep 09, 2020 11:56 am

Re: fetching data from an external value.

Post by ce.alicanonal »

Thank you very much for your nice answer and solution.


Post Reply