We have an XML DataSource being loaded from a file into a ListGrid but the ListGrid is empty - we don't understand why. Here's the case -
DataSource.create({
ID: "topDealDS",
//cacheData: topDealData,
dataURL: "topdeal.data.xml",
dataFormat: "xml",
fields: dealFields,
//clientOnly: true
})
Note that this worked when we loaded from an Array (topDealData) with clientOnly=true. It is a blank grid now with or without clientOnly=true.
ListGrid.create({
ID:"dealList",
dataSource: topDealDS,
autoFetchData: true,
...
})
Here is the message in the DevelopersConsole indicating the data is being loaded - at least it found the file and this is the data in the file
15:00:27.501:XRP6:WARN:Log:Getting item for key: {"dataSource":"topDealDS","sortBy":["salesStage"],"operationType":"fetch","startRow":0,"endRow":75}
15:00:27.502:XRP6:WARN:Log:Storing item: {"status":0,"data":"<List>\n\n<topdeal>\n\t<opportunityName>HP Pavilion D4790Y</opportunityName>\n\t<accountName>Video On Demand</accountName>\n\t<salesStage>salesStage</salesStage>\n\t<revenueAmount>1999999</revenueAmount>\n\t<status>Won</status>\n</topdeal>\n<topdeal>
... etc...
DataSource.create({
ID: "topDealDS",
//cacheData: topDealData,
dataURL: "topdeal.data.xml",
dataFormat: "xml",
fields: dealFields,
//clientOnly: true
})
Note that this worked when we loaded from an Array (topDealData) with clientOnly=true. It is a blank grid now with or without clientOnly=true.
ListGrid.create({
ID:"dealList",
dataSource: topDealDS,
autoFetchData: true,
...
})
Here is the message in the DevelopersConsole indicating the data is being loaded - at least it found the file and this is the data in the file
15:00:27.501:XRP6:WARN:Log:Getting item for key: {"dataSource":"topDealDS","sortBy":["salesStage"],"operationType":"fetch","startRow":0,"endRow":75}
15:00:27.502:XRP6:WARN:Log:Storing item: {"status":0,"data":"<List>\n\n<topdeal>\n\t<opportunityName>HP Pavilion D4790Y</opportunityName>\n\t<accountName>Video On Demand</accountName>\n\t<salesStage>salesStage</salesStage>\n\t<revenueAmount>1999999</revenueAmount>\n\t<status>Won</status>\n</topdeal>\n<topdeal>
... etc...
Comment