Hi ,
I have any issue displaying the data in list grid ,
when the list grid is displayed the dataSource fetching goes to infinite loop, by investigating i found that "xsi:type" attribute in response (test.xml) is causing the issue, when i remove xsi:type="ns4:CtacType" attribute in the test.xml then the data is displayed without any issue. I cann't remove the xsi:type attribute as it is the response from webservice provider.
Even i tried with RestdataSource it is the same issue please help
I have any issue displaying the data in list grid ,
when the list grid is displayed the dataSource fetching goes to infinite loop, by investigating i found that "xsi:type" attribute in response (test.xml) is causing the issue, when i remove xsi:type="ns4:CtacType" attribute in the test.xml then the data is displayed without any issue. I cann't remove the xsi:type attribute as it is the response from webservice provider.
Code:
##List grid definition isc.ListGrid.create({ alternateRecordStyles:true, autoDraw:false, ID:"ListGrid0" ,dataSource:addressUsageTypeDS ,autoFetchData: true }) ##DataSource definition isc.DataSource.create({ ID:"addressUsageTypeDS", dataFormat : "xml", recordXPath:"/MDMObjectLists/MDMObject", autofetchData: false, fields:[ {name:"id", title:"id"}, {name:"standardCode", title:"standardCode"}, {name:"standardName", title:"standardName"}, {name:"standardDescription", title:"standardDescription"}, {name:"standardAbbrevationCode", title:"standardAbbrevationCode"}, {name:"effectiveStartDate", title:"effectiveStartDate"}, {name:"effectiveEndDate", title:"effectiveEndDate"} ], dataURL:"/test.xml" }); ##test.xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <MDMObjectLists xmlns:ns2="http://www.xtp.com/masterdata" uri="http://xabc:80/RDServices/resources/CtacType"> <MDMObject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns4="http://xabc/services/ref/types/ctactype" xsi:type="ns4:CtacType" uri="http://xabc:80/RDRServices/resources/CtacType/1/"> <id>1</id> <standardCode>MCC</standardCode> <standardName>Contact</standardName> <locale>xte</locale> <standardDescription>Contact</standardDescription> <standardAbbreviationCode>MCC</standardAbbreviationCode> <effectiveStartDate>2010-01-09-05:00</effectiveStartDate> <effectiveEndDate>2099-12-31-05:00</effectiveEndDate> </MDMObject> </MDMObjectLists>