Forum

Andreas Dallner
Participant
    Has successfully completed the online course Introduction
    Has successfully completed the online course Intermediate (200)
    Has successfully completed the online course Advanced (300)
    Has successfully completed the online course Basics (100)
    Has successfully completed the online course Advanced (310)
    Has successfully completed the online course Advanced (320)
    Has successfully completed the Intermediate Certification
    Has successfully completed the Advanced Certification
1 year, 7 months ago #40670
Up
1
Down
::

Hi Jan,

the variables of your module are stored in module context -> If you unload the module the context is destroyed as well. Values are stored in sap.ui.getCore().byId(“MODULENAME”).getModel(“variableHolder”).getProperty(“/”).

If you want to keep the values in app context you have to send the values via interface to the app and store it in the apps variables.

We do not recommend to reading/write data directly to the apps variable holder to have consistent api usage via the modules interfaces.

Kind regards,
Andreas

  • This reply was modified 1 year, 7 months ago by Vitali Kurdasov. Reason: replaced "getId(" with "byId("