cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Offline collection keeps returning

Hi,  

I have an offline app with a collection (KBXCollection) as well as a button to upload list to sharepoint (KBXjob). The App"OnStart" is set to 

LoadData(KBXCollection, "KBXCollectKeep")

and the button to upload data is set to;

ForAll(KBXCollection, Patch(KBXoffline, Defaults(KBXoffline), {Site: Site,PO: PO,MachineID: MachineID,Title: Title,Date:Date}));
Reset(TemplateGalleryList1);
RemoveIf(KBXCollection,true);
Navigate(Editscreen);


The problem i have is each time you log back into the app, the submitted data from Collection keeps returning (i have also tried running Clear(KBXCollection)) I would like to have the data from the collection load on startup but only if it hasnt been submitted to sharepoint. Any information would be much appreciated 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Offline collection keeps returning

Normally, once you've synced the data to online you clear the collection and also do a SaveData (to clear the collection that is stored).  Otherwise as you've found the data comes back when you next LoadData.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Highlighted
Helper I
Helper I

Re: Offline collection keeps returning

Thanks Pstork, that was the missing piece. 

View solution in original post

2 REPLIES 2
Highlighted
Dual Super User III
Dual Super User III

Re: Offline collection keeps returning

Normally, once you've synced the data to online you clear the collection and also do a SaveData (to clear the collection that is stored).  Otherwise as you've found the data comes back when you next LoadData.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Highlighted
Helper I
Helper I

Re: Offline collection keeps returning

Thanks Pstork, that was the missing piece. 

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,719)