Explain difference between save data and load data in PowerApps
Syntax:-SaveData( Collection, CollectionName )-LoadData( Collection, CollectionName [, IgnoreNonexistentFile ]), where IgnoreNonexistentFile is an optional parameter. It accepts bool value which tells how to behave if provided collection is not found.
SaveData function used to store the provided collection in device’s cache, so that if we close the app and reopen it, the data still persists, whereas, LoadData function is used to load that stored data from device’s cache into the app associated memory pool.
for example:
Creating a collection: Collect( ItemsCollection, { Item: TextInput1.Text, Quatity: txtQuatity.Text } )
Saving the collection: SaveData( ItemsCollection, “LocalSavedItems” )
loading the collection: LoadData( ItemsCollection, “LocalSavedItems” )
We can configure these function on OnSelect action of button control.