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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Binding External Data

Jimmy4
6-Contributor

Binding External Data

Hi all,

How can I bind external data manually using JavaScript? I did bind external data to a label by drag and dropping the external data onto the label widget, it seems to be showing data. However, when written in the code stated below, the data did not show and there is also some error that is stated within the console.

 

$scope.view.wdg['label-1']['text'] = $scope.app.mdl['Fan2'].svc['GetPropertyValues'].data.current['RPM']

 

consoleLogError.PNG

Thank You.

 

4 REPLIES 4
sebben
14-Alexandrite
(To:Jimmy4)

Hi,

try it like this:

 

$scope.view.wdg['label-1']['text'] = $scope.app.mdl['Fan2'].properties['RPM'];

 

 

Jimmy4
6-Contributor
(To:sebben)

Its not working too.

sebben
14-Alexandrite
(To:Jimmy4)

Did  you add the property in external data?

Jimmy4
6-Contributor
(To:sebben)

yes i did add the property.

external data properties.PNGconsole error.PNG

Announcements

Top Tags