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

Is there any way to make the meeting capture offline capable?

My problem is, if I use this app and I want to export at the end but there is no connection, all my data gets lost.

 

I edited the ExportConfirm Button that it saves all collections if there is no connection.

Also I changed the onStart of the WelcomeScreen that it checks if there are any saved collections.

If there are, it navigates to the ExportScreen so that the data export can be tried again.

But there isn't any data.
Is there any way to save all that what I have seleceted and edited? 

1 ACCEPTED SOLUTION

Accepted Solutions
Leander
Frequent Visitor

Thank you samuelJ, but that didn't work either. 

 

I have solved it now on a different way.

 

At the ExportScreen the App checks now if the user is connected or not.

If there is no connection the User is only allowed to click a save button. The selected meeting gets saved in a new collection, which is only yused for saving offline. Also the pictures, skatches, tasks and the personal notes are saved. All these collections are then stored into the device storage.

 

Also I have dublicated the WelcomeScreen for showing the unsuccessful export.

 

So if the User have saved the meeting the app will navigate to the screen with the unsuccessful exported meeting.

Now the User can try directly again or PowerApps can get closed for trying läter with connection.

When the App then gets started again the onStart loads the Data of that collection where definitely has to be some value if the User have had to save at the last session. 

If there isn't any data the app starts normal.

If there is some data, the gallery of meetings gets disabled and a usually unvisible and disabled button gets visible and selectable. This button navigates then to the screen with the unsuccessful exported meeting.

 

I was also trying to save more then one meeting but I had problems with the saving of pictures and sketches.

For one Meeting I was able to save all pictures and Sketches but when there gets a other meeting saved with pictures the old ones are overwritten.

 

View solution in original post

6 REPLIES 6
alsabea
Advocate III
Advocate III

have you used savedata loaddata?

Leander
Frequent Visitor

Yes, I save all collections on the ExportConfirm Button with save data and load it at onStart.

could you try to make the app use the save date only,remove the connection.connected condition,so we can make sure you device are able to save and load the data,if it successded,than the problem in you code,your condition not working probably ,i think:)

Leander
Frequent Visitor

I have tryed already. I've made an other app were I tested if my device is able to save collections.

There it works. 

I think the problem is that Powerapps isn't saving which chart I have selected in my collection.

samuelJ
Responsive Resident
Responsive Resident

You can use SaveData() and LoadData().  It will save locally on your phone.  Here is a link: SaveData() LoadData().

 

On an app Start or somewhere, you can check Connection.connected(), use LoadData() to populate a collection, then Patch() that data.  You would then need to use the Clear() function to clear the data you Patched.  

 

I have not been able to get SaveData() to work with picture, just FYI.  So if you are trying to save a file or something, I don't believe that capabllity exists.  

Leander
Frequent Visitor

Thank you samuelJ, but that didn't work either. 

 

I have solved it now on a different way.

 

At the ExportScreen the App checks now if the user is connected or not.

If there is no connection the User is only allowed to click a save button. The selected meeting gets saved in a new collection, which is only yused for saving offline. Also the pictures, skatches, tasks and the personal notes are saved. All these collections are then stored into the device storage.

 

Also I have dublicated the WelcomeScreen for showing the unsuccessful export.

 

So if the User have saved the meeting the app will navigate to the screen with the unsuccessful exported meeting.

Now the User can try directly again or PowerApps can get closed for trying läter with connection.

When the App then gets started again the onStart loads the Data of that collection where definitely has to be some value if the User have had to save at the last session. 

If there isn't any data the app starts normal.

If there is some data, the gallery of meetings gets disabled and a usually unvisible and disabled button gets visible and selectable. This button navigates then to the screen with the unsuccessful exported meeting.

 

I was also trying to save more then one meeting but I had problems with the saving of pictures and sketches.

For one Meeting I was able to save all pictures and Sketches but when there gets a other meeting saved with pictures the old ones are overwritten.

 

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,661)