Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I want to write an application with multiple pages for different user dialogs and views. How do I exchange information/data between pages?

0
Posted

I want to write an application with multiple pages for different user dialogs and views. How do I exchange information/data between pages?

0

You should use the DataDictionary class to maintain application-wide, cross-page objects and data values. For an example of this have a look at the DynaDb example. I recommend the following procedure: Find all data objects you want to share across pages. If all pages use the same set of information, you can simply group all data into on object (this is the way the DynaDb example works). Otherwise store two or more different data objects in the dictionary. You can then access (and change) this data objects from any page within the application. For more information on the DataDictionary usage, see the appropriate section in the tutorial. Whenever a page is about to be activated, its perform() method is called. This is the place where you can access the shared data to initialize the page before it is displayed. For more information on the perform() method see the DynaPage tutorial.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.