Skip to main content
13-Aquamarine
March 21, 2025
Question

Real-time debug looping in thingworx complier without using loggers

  • March 21, 2025
  • 1 reply
  • 434 views

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

16-Pearl
March 25, 2025

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?