Hi,
I have this example , which is not working as I hoped,
isc.DataSource.create({
ID: "someID",
dataFormat: "xml",
dataURL: "/someXML.xml",
recordXPath:"//xpathName",
fields: [
{name:"name", defaultValue:"xxx"},
{name:"id"}
]
});
docPropDS.fetchData(null, function(dsResponse,data){
alert("objectq "+ data);
});
I get undefined in FF. when I am expecting an object . I also tried alerting data[0] and data[0].propName ( not getting data in it, though the xml file has data in it. is it required to give field names or they are auto populated...
Also when does the data gets fetched in the Datasource, ... when a widget like list,treeGrid accesses it or ....?
Help! Thanks
I have this example , which is not working as I hoped,
isc.DataSource.create({
ID: "someID",
dataFormat: "xml",
dataURL: "/someXML.xml",
recordXPath:"//xpathName",
fields: [
{name:"name", defaultValue:"xxx"},
{name:"id"}
]
});
docPropDS.fetchData(null, function(dsResponse,data){
alert("objectq "+ data);
});
I get undefined in FF. when I am expecting an object . I also tried alerting data[0] and data[0].propName ( not getting data in it, though the xml file has data in it. is it required to give field names or they are auto populated...
Also when does the data gets fetched in the Datasource, ... when a widget like list,treeGrid accesses it or ....?
Help! Thanks
Comment