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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

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

Janos1987
11-Garnet

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

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

1 ACCEPTED SOLUTION

Accepted Solutions
ytella
17-Peridot
(To:Janos1987)

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'];

View solution in original post

2 REPLIES 2

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 

 

 

ytella
17-Peridot
(To:Janos1987)

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'];

Top Tags