Skip to content

Commit b3e3a3b

Browse files
committed
files v0.6.0
1 parent b1929bf commit b3e3a3b

11 files changed

+3241
-3058
lines changed

README.md

Lines changed: 43 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Please do not download directly this code - this is the development version and can be unstable. You can find the [latest stable version here][1].
2-
1+
[Download latest version][1] | [Online demo app][5] | [Issues][4]
32

43
# Oracle APEX Region Type Plugin: dhtmlxGantt
54

@@ -9,30 +8,23 @@ Please do not download directly this code - this is the development version and
98
* I was asked to create this plugin and I have nothing to do with the company DHTMLX, so please do not complain ;-)
109
* Currently supported is only APEX 5.1
1110
* 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)
1312
* For the XML format there is an own parser integrated to support easy SQL queries - see example below
1413
* The plugin delivers sample data, if no query is defined
1514
* 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
1615
* 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
1716
* Everything else can be done with the extensive JavaScript API available from DHTMLX - please refer to the [docs][3]
1817

1918

20-
## Links
21-
22-
* [Download][1]
23-
* [Issues][4]
24-
* [Online Demo App][5]
25-
26-
2719
## How To Use
2820

29-
### The Recommended First Way
21+
### The Recommended Way
3022

3123
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
3325
3. Run the demo app and inspect, how it was implemented
3426

35-
### The DIY Second Way
27+
### The DIY Way
3628

3729
1. Download the [latest version][1]
3830
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
4537

4638
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.
4739

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.
4941

5042
The result of the query should look like this example (prepared URL's are removed for better readability):
5143

@@ -62,9 +54,17 @@ The result of the query should look like this example (prepared URL's are remove
6254
<link id="3" source="3" target="4" type="1"/>
6355
<link id="4" source="4" target="5" type="0"/>
6456
<link id="5" source="5" target="6" type="0"/>
57+
<holiday date="2017-04-04"/>
58+
<holiday date="2017-12-25"/>
59+
<holiday date="2017-12-26"/>
60+
<task_create_url_no_child url="f?p=103328:2:399391190576:::2::"/>
6561
</data>
6662
```
6763

64+
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+
6868
```sql
6969
WITH tasks AS ( --> START YOUR TASKS QUERY HERE
7070
SELECT
@@ -115,6 +115,16 @@ WITH tasks AS ( --> START YOUR TASKS QUERY HERE
115115
) AS link_xml
116116
FROM
117117
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
118128
), special_urls AS ( --> START SPECIAL URL's (optional)
119129
SELECT
120130
XMLELEMENT(
@@ -136,6 +146,7 @@ WITH tasks AS ( --> START YOUR TASKS QUERY HERE
136146
"data",
137147
(SELECT XMLAGG(task_xml) FROM tasks),
138148
(SELECT XMLAGG(link_xml) FROM links),
149+
(SELECT XMLAGG(holiday_xml) FROM holidays),
139150
(SELECT XMLAGG(special_url_xml) FROM special_urls)
140151
)
141152
) INDENT) AS single_clob_result
@@ -150,9 +161,26 @@ This project uses [semantic versioning][6].
150161

151162
Please use for all comments and discussions the [issues functionality on GitHub][4].
152163

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
179+
180+
153181
### 0.5.0 (2017-03-14)
154182

155-
* First public release
183+
- First public release
156184

157185
[1]: https://github.com/ogobrecht/apex-plugin-dhtmlx-gantt/releases/latest
158186
[2]: https://dhtmlx.com/docs/products/dhtmlxGantt/

apexplugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "dhtmlxGantt",
3-
"version" : "0.5.1",
3+
"version" : "0.6.0",
44
"description" : "HTML5 gantt chart based on a dhtmlx.com library",
55
"keywords" : ["JavaScript", "chart", "gantt"],
66
"homepage" : "https://github.com/ogobrecht/apex-plugin-dhtmlx-gantt",

0 commit comments

Comments
 (0)