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

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,159)