You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: data/api/gantt_exporttomsproject.md
+11-27Lines changed: 11 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,33 +33,17 @@ gantt.exportToMSProject({
33
33
The **exportToMSProject()** method takes as a parameter an object with a number of properties (all of the properties are optional):
34
34
35
35
-**name** - (*string*) the name of the obtained file ('gantt.xml' by default).
36
-
-**auto_scheduling** - (boolean) indicates the scheduling mode for tasks in the exported project. **true** will mark tasks as auto scheduled, **false** will mark tasks as manually scheduled (the default state).
37
-
-**skip_circular_links** - (boolean) indicates whether the circular links will be removed or not (true - will be removed (the default mode), false - will not be removed).
38
-
-**project** - (object) allows setting custom properties to the exported project entity.
39
-
-**tasks** - (object) allows setting custom properties to the exported task items.
40
-
-**data** - (object) allows setting a custom data source that will be presented in the output Gantt chart. It is expected that the **start_date** and **end_date** properties will be specified in the format which includes both the date and time (*%d-%m-%Y %H:%i*).
41
-
-**callback** - (function) if you want to receive an url to download a generated XML, the *callback* property can be used. It receives a JSON object with the *url* property.
42
-
-**resources** - (array) allows exporting the list of resources into an MS Project file.
43
-
-**server** - (string) the API endpoint for the request. Can be used with the local install of the export service. The default value is **https://export.dhtmlx.com/gantt**.
44
-
45
-
### Response
46
-
47
-
The response will contain a JSON of the following structure:
48
-
49
-
~~~js
50
-
{
51
-
data: {},
52
-
config: {},
53
-
resources: [],
54
-
worktime: {}
55
-
}
56
-
~~~
57
-
58
-
-**data** - a gantt [data object](desktop/supported_data_formats.md#json). Each task has the following properties: *id*, *open*, *parent*, *progress*, *start_date*, *text*, *resource*.
59
-
Dates are stringified in the "%Y-%m-%d %H:%i" format.
60
-
-**config** - a gantt [configuration](api/refs/gantt_props.md) object with settings retrieved from the project file.
61
-
-**resources** - an array of objects (each having the following properties: {*id: string, name:string, type:string*}) that represent the list of resources from the project file.
62
-
-**worktime** - an object containing the working time settings from the project calendar.
36
+
-**auto_scheduling** - (*boolean*) indicates the scheduling mode for tasks in the exported project. **true** will mark tasks as auto scheduled, **false** will mark tasks as manually scheduled (the default state).
37
+
-**skip_circular_links** - (*boolean*) indicates whether the circular links will be removed or not (true - will be removed (the default mode), false - will not be removed).
38
+
-**project** - (*object*) allows setting custom properties to the exported project entity.
39
+
-**tasks** - (*object*) allows setting custom properties to the exported task items.
40
+
-**data** - (*object*) allows setting a custom data source that will be presented in the output Gantt chart. It is expected that the **start_date** and **end_date** properties will be specified in the format which includes both the date and time (*%d-%m-%Y %H:%i*).
41
+
-**callback** - (*function*) if you want to receive an url to download a generated XML, the *callback* property can be used. It receives a JSON object with the *url* property.
42
+
-**resources** - (*array*) allows exporting the list of resources into an MS Project file. If the resource calendars are used, you need to specify -1 for a task in the *CalendarUID* property during the export (in the **tasks** object).
43
+
Then the task will use the resource calendar.
44
+
-**server** - (*string*) the API endpoint for the request. Can be used with the local install of the export service. The default value is **https://export.dhtmlx.com/gantt**.
45
+
46
+
Check the detailed descriptions of the export settings in the [related section](desktop/export_msproject.md#exportsettings).
Copy file name to clipboardExpand all lines: data/api/gantt_exporttoprimaverap6.md
+11-27Lines changed: 11 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,33 +33,17 @@ gantt.exportToPrimaveraP6({
33
33
The **exportToPrimaveraP6()** method takes as a parameter an object with a number of properties (all of the properties are optional):
34
34
35
35
-**name** - (*string*) the name of the obtained file ('gantt.xml' by default).
36
-
-**auto_scheduling** - (boolean) indicates the scheduling mode for tasks in the exported project. **true** will mark tasks as auto scheduled, **false** will mark tasks as manually scheduled (the default state).
37
-
-**skip_circular_links** - (boolean) indicates whether the circular links will be removed or not (true - will be removed (the default mode), false - will not be removed).
38
-
-**project** - (object) allows setting custom properties to the exported project entity.
39
-
-**tasks** - (object) allows setting custom properties to the exported task items.
40
-
-**data** - (object) allows setting a custom data source that will be presented in the output Gantt chart. It is expected that the **start_date** and **end_date** properties will be specified in the format which includes both the date and time (*%d-%m-%Y %H:%i*).
41
-
-**callback** - (function) if you want to receive an url to download a generated XML, the *callback* property can be used. It receives a JSON object with the *url* property.
42
-
-**resources** - (array) allows exporting the list of resources into a Primavera P6 file.
43
-
-**server** - (string) the API endpoint for the request. Can be used with the local install of the export service. The default value is **https://export.dhtmlx.com/gantt**.
44
-
45
-
### Response
46
-
47
-
The response will contain a JSON of the following structure:
48
-
49
-
~~~js
50
-
{
51
-
data: {},
52
-
config: {},
53
-
resources: [],
54
-
worktime: {}
55
-
}
56
-
~~~
57
-
58
-
-**data** - a gantt [data object](desktop/supported_data_formats.md#json). Each task has the following properties: *id*, *open*, *parent*, *progress*, *start_date*, *text*, *resource*.
59
-
Dates are stringified in the "%Y-%m-%d %H:%i" format.
60
-
-**config** - a gantt [configuration](api/refs/gantt_props.md) object with settings retrieved from the project file.
61
-
-**resources** - an array of objects (each having the following properties: {*id: string, name:string, type:string*}) that represent the list of resources from the project file.
62
-
-**worktime** - an object containing the working time settings from the project calendar.
36
+
-**auto_scheduling** - (*boolean*) indicates the scheduling mode for tasks in the exported project. **true** will mark tasks as auto scheduled, **false** will mark tasks as manually scheduled (the default state).
37
+
-**skip_circular_links** - (*boolean*) indicates whether the circular links will be removed or not (true - will be removed (the default mode), false - will not be removed).
38
+
-**project** - (*object*) allows setting custom properties to the exported project entity.
39
+
-**tasks** - (*object*) allows setting custom properties to the exported task items.
40
+
-**data** - (*object*) allows setting a custom data source that will be presented in the output Gantt chart. It is expected that the **start_date** and **end_date** properties will be specified in the format which includes both the date and time (*%d-%m-%Y %H:%i*).
41
+
-**callback** - (*function*) if you want to receive an url to download a generated XML, the *callback* property can be used. It receives a JSON object with the *url* property.
42
+
-**resources** - (*array*) allows exporting the list of resources into a Primavera P6 file. If the resource calendars are used, you need to specify -1 for a task
43
+
in the *CalendarUID* property during the export (in the **tasks** object). Then the task will use the resource calendar.
44
+
-**server** - (*string*) the API endpoint for the request. Can be used with the local install of the export service. The default value is **https://export.dhtmlx.com/gantt**.
45
+
46
+
Check the detailed descriptions of the export settings in the [related section](desktop/export_primavera.md#exportsettings).
Copy file name to clipboardExpand all lines: data/api/gantt_importfrommsproject.md
+22-6Lines changed: 22 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,9 @@ The method takes as a parameter an object with configuration properties of an im
49
49
-**projectProperties** - specifies an array of project properties that should be put into the response.
50
50
-**taskProperties** - specifies an array of additional task properties to be imported.
51
51
52
-
###Response
52
+
Check the detailed descriptions of the import settings in the [related section](desktop/export_msproject.md#importsettings).
53
+
54
+
### Response
53
55
54
56
The response will contain a JSON of the following structure:
55
57
@@ -58,15 +60,29 @@ The response will contain a JSON of the following structure:
58
60
data: {},
59
61
config: {},
60
62
resources: [],
61
-
worktime: {}
63
+
worktime: {},
64
+
calendars: []
62
65
}
63
66
~~~
64
67
65
-
-**data** - a gantt [data object](desktop/supported_data_formats.md#json). Each task has the following properties: *id*, *open*, *parent*, *progress*, *start_date*, *text*, *resource*.
68
+
-**data** - (*object*) a gantt [data object](desktop/supported_data_formats.md#json). Each task has the following properties: *id*, *open*, *parent*, *progress*, *start_date*, *text*, *resource*.
66
69
Dates are stringified in the "%Y-%m-%d %H:%i" format.
67
-
-**config** - a gantt [configuration](api/refs/gantt_props.md) object with settings retrieved from the project file.
68
-
-**resources** - an array of objects (each having the following properties: {*id:string, name:string, type:string*} that represent the list of resources from the project file.
69
-
-**worktime** - an object containing the working time settings from the project calendar.
70
+
-**config** - (*object*) a gantt [configuration](api/refs/gantt_props.md) object with settings retrieved from the project file.
71
+
-**resources** - (*array*) an array of objects (each having the following properties: {*id: string, name: string, type: string, calendar: string*} that represent the list of resources from the project file.
72
+
-**worktime** - (*object*) an object containing the working time settings from the project calendar. It can contain the following attributes:
73
+
-**id** - (*string | number*) optional, the calendar id
74
+
-**hours** - (*array*) an array with global working hours, sets the start and end hours of the task
75
+
-**dates** - (*array*) an array of dates that can contain:
76
+
- 7 days of the week (from 0 - Sunday, to 6 - Saturday), where 1/true stands for a working day and 0/false - a non-working day
77
+
- other records are dates
78
+
-**calendars** - (*array*) an array containing calendar configuration objects for creating a new calendar.
79
+
-**calendarConfig** - (*object*) a calendar configuration object that can contain the following attributes:
80
+
-**id** - (*string | number*) optional, the calendar id
81
+
-**name** - (*string*) the calendar name
82
+
-**hours** - (*array*) an array with global working hours, sets the start and end hours of the task
83
+
-**dates** - (*array*) an array of dates that can contain:
84
+
- 7 days of the week (from 0 - Sunday, to 6 - Saturday), where 1/true stands for a working day and 0/false - a non-working day
Copy file name to clipboardExpand all lines: data/api/gantt_importfromprimaverap6.md
+22-5Lines changed: 22 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,8 @@ The method takes as a parameter an object with configuration properties of an im
49
49
-**projectProperties** - specifies an array of project properties that should be put into the response.
50
50
-**taskProperties** - specifies an array of additional task properties to be imported.
51
51
52
+
Check the detailed descriptions of the import settings in the [related section](desktop/export_primavera.md#importsettings).
53
+
52
54
### Response
53
55
54
56
The response will contain a JSON of the following structure:
@@ -58,15 +60,30 @@ The response will contain a JSON of the following structure:
58
60
data: {},
59
61
config: {},
60
62
resources: [],
61
-
worktime: {}
63
+
worktime: {},
64
+
calendars: []
62
65
}
63
66
~~~
64
67
65
-
-**data** - a gantt [data object](desktop/supported_data_formats.md#json). Each task has the following properties: *id*, *open*, *parent*, *progress*, *start_date*, *text*, *resource*.
68
+
-**data** - (*object*) a gantt [data object](desktop/supported_data_formats.md#json). Each task has the following properties: *id*, *open*, *parent*, *progress*, *start_date*, *text*, *resource*.
66
69
Dates are stringified in the "%Y-%m-%d %H:%i" format.
67
-
-**config** - a gantt [configuration](api/refs/gantt_props.md) object with settings retrieved from the project file.
68
-
-**resources** - an array of objects (each having the following properties: {*id:string, name:string, type:string*} that represent the list of resources from the project file.
69
-
-**worktime** - an object containing the working time settings from the project calendar.
70
+
-**config** - (*object*) a gantt [configuration](api/refs/gantt_props.md) object with settings retrieved from the project file.
71
+
-**resources** - (*array*) an array of objects (each having the following properties:
72
+
{*id: string, name: string, type: string, calendar: string*} that represent the list of resources from the project file.
73
+
-**worktime** - (*object*) an object containing the working time settings from the project calendar. It can contain the following attributes:
74
+
-**id** - (*string | number*) optional, the calendar id
75
+
-**hours** - (*array*) an array with global working hours, sets the start and end hours of the task
76
+
-**dates** - (*array*) an array of dates that can contain:
77
+
- 7 days of the week (from 0 - Sunday, to 6 - Saturday), where 1/true stands for a working day and 0/false - a non-working day
78
+
- other records are dates
79
+
-**calendars** - (*array*) an array containing calendar configuration objects for creating a new calendar.
80
+
-**calendarConfig** - (*object*) a calendar configuration object that can contain the following attributes:
81
+
-**id** - (*string | number*) optional, the calendar id
82
+
-**name** - (*string*) the calendar name
83
+
-**hours** - (*array*) an array with global working hours, sets the start and end hours of the task
84
+
-**dates** - (*array*) an array of dates that can contain:
85
+
- 7 days of the week (from 0 - Sunday, to 6 - Saturday), where 1/true stands for a working day and 0/false - a non-working day
0 commit comments