ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: jomeihua on January 21, 2014, 12:34:02 pm

Title: getChanges( { format: format } )
Post by: jomeihua on January 21, 2014, 12:34:02 pm
If datamodel datatype is XML
Can i use this function ?
i see this function in API only  return JSON object

Title: Re: getChanges( { format: format } )
Post by: paramvir on January 21, 2014, 02:29:33 pm
Yes.

dataModel.dataType == xml implies that the response received in dataModel.getData callback is in xml format.
 
You have to convert xml to JSON format in dataModel.getData with the help of xmlToJson method.

http://paramquery.com/pro/api#method-xmlToJson

getChanges can be used after that.