0
votes

I have created a standalone app in Powerapps. It is basically just a dashboard with a text input box, a number of toggle switches and radio buttons.

The dashboard will be used just to confirm a list of actions have been started or completed. There is no requirement to save the data as such, but I need the option to keep the toggle selections and radio buttons etc as they were previously when a user opens the app.

At present the app works great however when closed and reopened the options revert to their default selections.

I have a button that resets the selections if required but I need them to remain unchanged unless reset manually.

Any help would be appreciated.

1

1 Answers

1
votes

You need to persist the data somewhere, whether that is in locally on the device (more difficult, does not work for apps in-browser; mobile only) or in a data table somewhere (easy).

On-device example

Data table (Sharepoint) example:

  • When user clicks "Save", Patch() the data to a Sharepoint list
  • OnStart of the app, set a variable for the logged in user, then lookup in the Sharepoint list, all settings for varUser.
  • ClearCollect these into a local collection.
  • Use UpdateIf on each field to update the Collection
  • When user clicks "Save", Patch() the Sharepoint list, repeat.