I have a service that executes the QueryPropertyHistory of a thing. When trying to bind the result data to a grid, or even trying to access the data inside the service, it just wont work.
Does anybody knows how to relate a DataShape to the infoTable resultant of the QueryPropertyHistory service?
More details about the mode:
Hi Josue Serrano,
If I understand your property clearly; you can create a custom service and call QueryPropertyHistory service in it and assign the datashape for Infotable as output as per your requirement.
Thanks,
Ankit Gupta
Hi,
How should I perform assigning the QueryPropertyHistory results to a DataShape of my choice? If I use the "QueryPropertyHistory" snippet under "Me" I assume I get an Infotable that has "undefined" as the DataShape:
// result: INFOTABLE dataShape: "undefined"
var result = me.QueryPropertyHistory(params);
-Risto
Risto, you don't have to set a DataShape. What you can do instead is, after binding 'All Data' to your Grid widget, check 'ShowAllColumns' and then view your Mashup.
Josue,
Any update on this? Was Ankit Gupta's post helpful? If so, could you click on the "correct answer" or "mark as helpful" button and let us know?