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

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

How to connect different thing's property to a 3d-Label dynamic(thingworx studio)

friend0165
3-Visitor

How to connect different thing's property to a 3d-Label dynamic(thingworx studio)

hi,

  i am a new user of thingworx studio, i am trying to let a 3d-label showing text from different thing's property in thingworx when different button click. is there any way to do it?
  thanks for helping.

ACCEPTED SOLUTION

Accepted Solutions
dupatel
19-Tanzanite
(To:friend0165)

@friend0165 You can write JavaScript function code in <View>.js and call it on different press of button click event.

svc (ThingWorx service) InfoTable result set can be referenced in Javascript. The svc (ThingWorx service) InfoTable result set can be Bound to a Widget for quick loading. Load service and Bind “All Items” to Widget.

Sample code:

//Get Result set attribute “Name” for currently selected data

$scope.app.mdl['MyThing'].svc['GetThingWorxServiceData'].data.current['Name']

GetThingWorxServiceData is the ThingWorx Service and Name is the  property

 

-Durgesh

 

 

View solution in original post

1 REPLY 1
dupatel
19-Tanzanite
(To:friend0165)

@friend0165 You can write JavaScript function code in <View>.js and call it on different press of button click event.

svc (ThingWorx service) InfoTable result set can be referenced in Javascript. The svc (ThingWorx service) InfoTable result set can be Bound to a Widget for quick loading. Load service and Bind “All Items” to Widget.

Sample code:

//Get Result set attribute “Name” for currently selected data

$scope.app.mdl['MyThing'].svc['GetThingWorxServiceData'].data.current['Name']

GetThingWorxServiceData is the ThingWorx Service and Name is the  property

 

-Durgesh

 

 

Announcements

Top Tags