Skip to main content
12-Amethyst
November 4, 2022
Solved

Share input data between view scenes

  • November 4, 2022
  • 1 reply
  • 1314 views

Hi,

 

I'm trying to get data from QR codes (string data) using Scan widgwet. It works as it showld in the view scene where was deployed. But what I want to achieve is to share this data between view scenes.

 

For context, Users have to scan their QR-ID, Need this ID to be shown over all the view Scenes.

 

I tried with a function:

 

$scope.view.wdg['label-name1']['text']= $scope.view.wdg['label-name2']['text'];

 

Also i tried adding "view.(viewname).wdg," But nothing seems to work.

 

 Thank you.

Best answer by PabloCastilla

I found a different way just binding it to an app parameter in different views. 

 

However, thank you.

1 reply

12-Amethyst
November 4, 2022

To continue,

 

I bind the scan to a label in home view. I have another label in a different view. What I'm trying is to share the data storaged in the first label to the second.

PabloCastilla12-AmethystAuthorAnswer
12-Amethyst
November 4, 2022

I found a different way just binding it to an app parameter in different views. 

 

However, thank you.