Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
I am trying to set a value of a property using SETPROPERTYVTQ by writing code in the service of my thing. I will an API and after the response of the API i will set the value of a particular property. Here is the code I am using:
VTQ vtq = new VTQ();
vtq.setValue(String(events[4].machineCode));
vtq.setTime(new DateTime());
vtq.setQuality(QualityStatus.GOOD);
base.setPropertyVTQ(me.ReasonCode, vtq,true);
While executing the code I am getting the error as: Message :: ReferenceError: "VTQ" is not defined. - See Script Error Log for more details.
Solved! Go to Solution.
Basically I am writing this code in one of the service in a thing which is responsible for getting data from an API. SO I am writing the code in Javascript inside service. In this JS I am trying to get a logic for setPropertyVTQ. I think it is Java Edge SDK.