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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Share input data between view scenes

PabloCastilla
8-Gravel

Share input data between view scenes

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

 

However, thank you.

View solution in original post

2 REPLIES 2

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.

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

 

However, thank you.

Top Tags