cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
paulbrelin
Frequent Visitor

Does locally save data persist on device after using Savedata() ?

I haven't been able to confirm that the data saved on phone/tablet using Savedata() is persistant.

 

I'm trying to write an app that when offline will use local data cached as local files on the deivce to populate the apps various screens. I've been able to do that but after quitting the app then restarting it in offline mode, the locally stored data is empty.

 

So my question: Does the locally saved data persist after shutting down the app?

 

On my "OnStart" trigger I have the following:

 

If (Connection.Connected && tglH_OnlineStatus.Value,

/* If connection true then pull data from database and save to local file */
ClearCollect(collectPaAudit, '[dbo].[vw_paAudit]');
SaveData(collectPaAudit,"vw_paAuditLocalStorage");
ClearCollect(collectPaQAAuditPicture, '[dbo].[tblPA_QAAuditPicture]');
SaveData(collectPaQAAuditPicture,"tblPA_QAAuditPictureLocalStorage")
,  

/* If connection false then just use the locally stored data */

LoadData(collectPaAudit,"vw_paAuditLocalStorage", true);
LoadData(collectPaQAAuditPicture,"tblPA_QAAuditPictureLocalStorage", true)
)

 

Am I missing something on a conceptual basis here?

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
paulbrelin
Frequent Visitor

OK, well I ansered my own question. The data is persistent.

View solution in original post

1 REPLY 1
paulbrelin
Frequent Visitor

OK, well I ansered my own question. The data is persistent.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (75,305)