cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

Real-time debug looping in thingworx complier without using loggers

Hrishabh.Sharma
13-Aquamarine

Real-time debug looping in thingworx complier without using loggers

var productionData = [];

for (var i = 0; i < 10; i++) {

productionData.push({

"CurrentIteration": i,

"Value": i + 1             //Change it as per your requirement. Like infotable columns names etc. 

});
}

throw JSON.stringify(productionData);

//For Specific columns and values/items in array use this: "productionData[0].Value"

HrishabhSharma_0-1742558195809.png

 

1 REPLY 1

Hi Hrishabh.Sharma
 

I just tested your code on ThingWorx 9.6 and it worked fine.

What's the version of your Thingworx server?

Is it possible to export and share the Thing entity file(xml) here?

 


 

Announcements


Top Tags