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
@@ -9,30 +8,23 @@ Please do not download directly this code - this is the development version and
9
8
* I was asked to create this plugin and I have nothing to do with the company DHTMLX, so please do not complain ;-)
10
9
* Currently supported is only APEX 5.1
11
10
* Features of the APEX integration:
12
-
* Data can be delivered as XML or JSON string or as JSON object
11
+
* Data can be delivered as XML (string) or JSON (string or object)
13
12
* For the XML format there is an own parser integrated to support easy SQL queries - see example below
14
13
* The plugin delivers sample data, if no query is defined
15
14
* There are five events available to react on chart actions: Task Create, Task Double Click, Task Drag (change of progress, start date, duration), Link Create, Link Double Click
16
15
* In the region attributes you can configure some aspects of the Gantt chart - for an example the height, the skin, the UI language (30 different delivered by the vendor); There is also the possibility to place custom before and after initialization JavaScript code
17
16
* Everything else can be done with the extensive JavaScript API available from DHTMLX - please refer to the [docs][3]
18
17
19
18
20
-
## Links
21
-
22
-
*[Download][1]
23
-
*[Issues][4]
24
-
*[Online Demo App][5]
25
-
26
-
27
19
## How To Use
28
20
29
-
### The Recommended First Way
21
+
### The Recommended Way
30
22
31
23
1. Download the [latest version][1]
32
-
2. Go to subdirectory `plugin/demo-objects`, unzip demo-app-including-supporting-objects.sql.zip and install this application
24
+
2. Go to subdirectory `plugin/demo-objects` and install demo-app-including-supporting-objects.sql
33
25
3. Run the demo app and inspect, how it was implemented
34
26
35
-
### The DIY Second Way
27
+
### The DIY Way
36
28
37
29
1. Download the [latest version][1]
38
30
2. Install the plugin from the subdirectory `plugin`
@@ -45,7 +37,7 @@ Please do not download directly this code - this is the development version and
45
37
46
38
You can deliver JSON or XML. In both cases you need to create a query that returns a single CLOB result. To support also older databases without JSON functionality the example below is a XML query.
47
39
48
-
No fear, if you look in detail to the example query, you will find out that you have to define only some sort of "standard selects" for the tasks and the links between the tasks. Grab the example, put it in your preferred SQL tool and play around with it.
40
+
No fear, if you look in detail to the example query, you will find out that you have to define only some sort of "standard selects" for the tasks and the links between the tasks - holiday dates are optional as also the prepared URLs. Grab the example, put it in your preferred SQL tool and play around with it.
49
41
50
42
The result of the query should look like this example (prepared URL's are removed for better readability):
51
43
@@ -62,9 +54,17 @@ The result of the query should look like this example (prepared URL's are remove
If you need an JSON example please have a look at the file under `sources/plugin-dhtmlxgantt-helper.js` starting around line 130 - there is the sample data defined for the case that no region query is defined.
65
+
66
+
The following example query runs against demo tables - you can find the used DDL scripts in the subdirectory `plugin/demo-objects`. The shipped demo app in this directory has the scripts also implemented as supporting objects.
67
+
68
68
```sql
69
69
WITH tasks AS ( --> START YOUR TASKS QUERY HERE
70
70
SELECT
@@ -115,6 +115,16 @@ WITH tasks AS ( --> START YOUR TASKS QUERY HERE
115
115
) AS link_xml
116
116
FROM
117
117
plugin_gantt_demo_links --< STOP YOUR LINKS QUERY HERE
118
+
), holidays AS ( --> START YOUR HOLIDAYS QUERY HERE
119
+
SELECT
120
+
XMLELEMENT(
121
+
"holiday",
122
+
XMLATTRIBUTES(
123
+
to_char(h_date, 'yyyy-mm-dd') AS"date"
124
+
)
125
+
) AS holiday_xml
126
+
FROM
127
+
plugin_gantt_demo_holidays --< STOP YOUR HOLIDAYS QUERY HERE
118
128
), special_urls AS ( --> START SPECIAL URL's (optional)
119
129
SELECT
120
130
XMLELEMENT(
@@ -136,6 +146,7 @@ WITH tasks AS ( --> START YOUR TASKS QUERY HERE
136
146
"data",
137
147
(SELECT XMLAGG(task_xml) FROM tasks),
138
148
(SELECT XMLAGG(link_xml) FROM links),
149
+
(SELECT XMLAGG(holiday_xml) FROM holidays),
139
150
(SELECT XMLAGG(special_url_xml) FROM special_urls)
140
151
)
141
152
) INDENT) AS single_clob_result
@@ -150,9 +161,26 @@ This project uses [semantic versioning][6].
150
161
151
162
Please use for all comments and discussions the [issues functionality on GitHub][4].
152
163
164
+
### 0.6.0 (2017-07-24)
165
+
166
+
- New options regarding non working days - thanks to github.com/GasparYYC for the ideas:
167
+
- Option to exclude non working days from time calculation - defaults to true
168
+
- Option to highlight non working days - defaults to true
169
+
- Option for the highlighting color - defaults to #f4f7f4
170
+
- You can deliver additional holidays - see example data and query above
171
+
- Fixed: Tasks (or links) deleted from DB are displayed on chart after region refresh - thanks to github.com/S-Marek to report this issue
172
+
- Some small code refactoring
173
+
174
+
175
+
### 0.5.1 (2017-03-23)
176
+
177
+
- correct LOV (100% not always correct displayed)
178
+
- forgotten code fragment in JavaScript plugin helper function
0 commit comments