Skip to main content
1-Visitor
May 30, 2019
Solved

Can I use more data from Thingworx with one 3D-gauge?

  • May 30, 2019
  • 1 reply
  • 2096 views

Hi,

 

Is is possible that I modify the bound data with script? I want to use one model but I would like to change data which is used from Thingworx.

 

Many thanks in advance

Janos

Best answer by ytella

Hi @Janos1987,

One of the ways to change the ThingName with JS is as follows:

 

$scope.view.wdg['3DGauge-1']['text'] = $scope.app.mdl['Your_Thing_Name'].properties['PropertyName'];

1 reply

Janos19871-VisitorAuthor
1-Visitor
May 31, 2019

Hi again, 

 

let me extend better, I have a property and I bind a data from ThingWorx like on attached picture. Is is possible to change the blue underlined text with script? 

 

Thanks

Janos 

 

 

ytella17-PeridotAnswer
17-Peridot
June 4, 2019

Hi @Janos1987,

One of the ways to change the ThingName with JS is as follows:

 

$scope.view.wdg['3DGauge-1']['text'] = $scope.app.mdl['Your_Thing_Name'].properties['PropertyName'];