Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hello,
I am trying to implement the functionality from the following PTC article:
My code looks like this:
var params = {
infoTableName : "InfoTable",
dataShapeName : "NamedVTQ"
};
var value = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params);
var prop = new Object();
prop.name = "DailyPouchCount";
prop.value = 29907; //hardcoded for testing
prop.time = endDate; //DateTime object from input
prop.quality = "GOOD";
value.AddRow(prop);
me.UpdatePropertyValues(value);
And I get the following error:
Wrapped java.lang.Exception: Invalid parameter type for service : [UpdatePropertyValues] on <ThingName> Cause: Invalid parameter type for service : [UpdatePropertyValues] on <ThingName>
Anyone have any idea why?
Thank you.
Solved! Go to Solution.
Hi Jenna May,
Following blog shoudl resolve your issue: How to use UpdatePropertyValues Service in ThingWorx
In the following line; the value infotable has be passed as part of JSON parameter
me.UpdatePropertyValues(value);
var params2 = {
values: value /* INFOTABLE */
};
me.UpdatePropertyValues(params2);
Hi Jenna May,
Following blog shoudl resolve your issue: How to use UpdatePropertyValues Service in ThingWorx
In the following line; the value infotable has be passed as part of JSON parameter
me.UpdatePropertyValues(value);
var params2 = {
values: value /* INFOTABLE */
};
me.UpdatePropertyValues(params2);
That worked. Thank you!