Skip to main content
Jul 2, 2020 3:57 AM UTC
Question

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

Jul 2, 2020 5:14 AM UTC

Hi,

try it like this:

 

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

 

 

Jimmy4Author
Jul 2, 2020 8:05 AM UTC

Its not working too.

Jul 2, 2020 8:14 AM UTC

Did  you add the property in external data?