News

How to generate a Gantt diagram with GeneXus on the Web

By Oscar Gamboa in the new blog of the GeneXus developers’ community in Colombia.


How To article written by Oscar Gamboa, promoter of Colombia GUG.

Download link:
http://www.gxopen.com/gxopen/servlet/projectversioninformation?813,4
If the above link is not available, try this Gantt Project.zip

Steps to draw a Gantt diagram with GeneXus and fusion chart 100% free:

1. Download GanttProject.rar
2. Unzip it
3. Consolidate the Gantt.xpz file in a Web KB
4. Copy the Gantt folder to the WEB folder of the model generated with GeneXus
5. Specify, generate and execute the 'Gantt' Web Panel
6. That's it, now you have your first sample to draw Gantt Diagrams on Web Panels in GeneXus
7. In the Gantt folder there is a file called Gantt.xml that you can change as you want in order to change the information on the Diagram
8. Give it a try and get surprised!

Steps to change the Gantt diagram from GeneXus to show your data:

1. Give permissions to the Gantt folder by right-clicking on it and selecting Properties, Security tab, Control
2. Design a procedure that changes the XML file
3. To change the file use only 3 GeneXus functions:

&xml.Open(trim("Gannt\Gantt.xml")) // to open and delete the xml
&xml.WriteRawText("..........") // to add 1 line of text in the xml
&xml.Close() // to close the xml file
&xml is a variable DataType XMLWriter

4. Important... you should enter the data in the structure already defined by the file.

* Published by Oscar Gamboa in the blog of GUG Colombia.