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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

How to share data between different view

leonardosella
12-Amethyst

How to share data between different view

Hi everyone,

I'm developing some Vuforia Studio Projects that includes three or more different view.

For example: 

  • Home
  • Service
  • Technical Drawing

In Home view I want to be able to set languages and some other parameters, that could be accessible also for Service and Technical Drawing. At the moment I'm not able to connect each view but only navigate from one to another. 

 

For the languages selection,  I use a flag that change value and select a "predefined" set of label (used for example to translate the buttons). 

 

 

Any suggestions? 

 

Thank you, Leonardo 

1 ACCEPTED SOLUTION

Accepted Solutions

You can use application parameters for this. Create an application parameter for each bit of data you want to pass between views. Every view will have access to those values. You can set them in JS using 

$scope.app.param['<paramname>'] = "<paramvalue>"

 

 

View solution in original post

1 REPLY 1

You can use application parameters for this. Create an application parameter for each bit of data you want to pass between views. Every view will have access to those values. You can set them in JS using 

$scope.app.param['<paramname>'] = "<paramvalue>"

 

 

Top Tags