cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a value that exists in another view

daisuke_hosokawa
Explorer
0 Kudos
181

file-structure.png

Hello.
Unsure how to get a value that exists in another view.
I want to get the number of lists in the list output view from other views.
How can I create a global variable that can be handled between multiple views?
Thank you in advance.
Daisuke Hosokawa

View Entire Topic
agrawalaadhar8
Participant
0 Kudos

Hi,

You can create a global model (with name) in the component -> this.setModel("<name>") It will be available in all controllers.

You can set/get properties in that model and use them using this.getOwnerComponent()

--> get/setProperty("")

For more reference..you can see any SDK sample codes.

Regards