I've found an inconsistency that I'm having to address that you might want to be aware of.
In parsing an XML document, if two or more sub-elements with the same name exist, an array is created to store these duplicate elements. This array has ISC enhanced functions like getLength(). If I pass this array as data to a ListGrid. All works fine.
However, if I have only one element, this array is not created. If I pass this element as data to the ListGrid, it throws exceptions because it can't call getLength(). ListGrid doesn't handle DATA IS NOT AN ARRAY case.
I'm not sure how recordsFromXML could know when the data needs to be an array with one record. Perhaps ListGrid could handle this degenerate case automatically.
My workaround is to manually convert this degenerate case into an array because I know by context that the XML element is destined for display in a ListGrid.
In parsing an XML document, if two or more sub-elements with the same name exist, an array is created to store these duplicate elements. This array has ISC enhanced functions like getLength(). If I pass this array as data to a ListGrid. All works fine.
However, if I have only one element, this array is not created. If I pass this element as data to the ListGrid, it throws exceptions because it can't call getLength(). ListGrid doesn't handle DATA IS NOT AN ARRAY case.
I'm not sure how recordsFromXML could know when the data needs to be an array with one record. Perhaps ListGrid could handle this degenerate case automatically.
My workaround is to manually convert this degenerate case into an array because I know by context that the XML element is destined for display in a ListGrid.
Comment