ottena
November 1, 2011, 1:10pm
#1
Maybe a stupid question, but I am not an expert in XML.
Is it possible to init the gantt in an XML file?
By now I load the form.xml in a tab and would like to add the gantt chart to the form.xml
I don’t n know how. On almost every example on the site the containers are defined in the HTML code.
Thanks in advance,
Alex
Fedor
November 1, 2011, 3:02pm
#2
Yes it is possible, please download the archive ant see folder /samples/02_data_load
laplace
November 1, 2011, 3:21pm
#3
When I try to use those samples I am getting “File (data/data2.xml) is not found” for every file. Are they still there?
laplace
November 1, 2011, 3:21pm
#4
When I try to use those samples I am getting “File (data/data2.xml) is not found” for every file. Are they still there?
Fedor
November 1, 2011, 3:27pm
#6
Yes. But you need http server to try, like apache or iis.
laplace
November 1, 2011, 3:35pm
#7
My mistake, I thought I was using the live demo and not a local one.
ottena
November 1, 2011, 3:36pm
#8
Maybe I asked the wrong question, but in the /samples/02_data_load there is also the HTML container definition:
What I meant was something like the combobox definition in form.xml not in the HTML page.
In from.xml the combo is like:
The combo can then be filled by:
Form.loadStruct(“xml/form.xml”,function(){
Combo = Form.getCombo(“combo1”);
Combo.loadXML(“xml/connect.php”);
});
Is there a similair way to init the Gantt chart in from.xml and fill it like the combo?
Alex
Fedor
November 1, 2011, 4:29pm
#9
No, gantt is not a part of form.