Skip to main content
1-Visitor
July 2, 2020
Question

Binding External Data

  • July 2, 2020
  • 1 reply
  • 1781 views

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.

 

1 reply

14-Alexandrite
July 2, 2020

Hi,

try it like this:

 

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

 

 

Jimmy41-VisitorAuthor
1-Visitor
July 2, 2020

Its not working too.

14-Alexandrite
July 2, 2020

Did  you add the property in external data?