Hi!
I need my app to save a value (false) when it's offline. The app will close. Once opened again the app this value must be loaded and change the "visible" property of the buttons to "false". (visible = varGespeichert)
I save the variable using..
I initialize the variable so that, in case there are no saved data, the buttons are visible
and to load the data and change the "visible" property I have used several formulas, for example:
If(!IsBlank(VAsavedData); LoadData(VAsavedData; "isGespeichertFile"; true);;
If(!IsBlank(VAsavedData); UpdateContext({varGespeichert: First(VAsavedData).varGespeichert});;
I can't get it to work. I would be very grateful for your help.
Solved! Go to Solution.
Thank you very much for your answer @v-xida-msft!!
So I finally got it to work with the following code:
Hi @Anonymous ,
Do you want to save the global variable as a cached data within your PowerApps Mobile App?
Based on the formula that you mentioned, I think there is something wrong with it. I have made a test on my side, please take a try with the following workaround:
When your app is offline, save your global variable as cache data using following formula:
Set(varGespeichert; false);; ClearCollect( VAsavedData; varGespeichert );; SaveData(VAsavedData; "isGespeichertFile")
When you load the cached data into your app, please take a try with the following formula (Set the OnVisible property of the first screen of your app to following😞
LoadData(VAsavedData; "isGespeichertFile"; true);;
Set(varGespeichert; First(VAsavedData).Value)
then you could use the global varGespeichert variable within your app.
Best regards,
Thank you very much for your answer @v-xida-msft!!
So I finally got it to work with the following code:
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.
User | Count |
---|---|
203 | |
106 | |
56 | |
51 | |
41 |
User | Count |
---|---|
267 | |
156 | |
83 | |
81 | |
56 |