Author Topic: getChanges( { format: format } )  (Read 3027 times)

jomeihua

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 7
    • View Profile
getChanges( { format: format } )
« 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


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: getChanges( { format: format } )
« Reply #1 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.
« Last Edit: January 21, 2014, 04:23:04 pm by paramquery »