Download presentation
Presentation is loading. Please wait.
1
Build advanced PowerApps that work offline!
9/12/2018 3:59 AM THR2225 Build advanced PowerApps that work offline! Hemanth Kumar Engineering manager in PowerApps © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
2
Thinking Offline Does your app have to support offline?
9/12/2018 3:59 AM Thinking Offline Does your app have to support offline? What are the different aspects of creating apps that are offline capable. - Fully capable - Partially capable. © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
3
Core components Connection.Connected and Connection.Metered
9/12/2018 3:59 AM Core components Connection.Connected and Connection.Metered SaveData(LocalCollection, “UniqueOfflineFileName") LoadData(LocalCollection, “UniqueOfflineFileName“,/*Ignore If doesn’t exist*/ true) © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
4
Creating an offline sample app
App start? - How do you handle connected data spurce not being present? - When do you decide to cache? Data edits - what do you do with the data edits/inserts when offline? Data synchronization on getting back online. Do you want to handle data conflicts ? © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
5
Start with App From Data (here’s the data I am using )
6
Handling App Start App start when connected and when not connected.
9/12/2018 3:59 AM Handling App Start App start when connected and when not connected. Assumption is that you have started at least once when connected. Take care of initializing not only the source databases, but also the supplemental collections that store the offline edits and conflicts in syncing. © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
7
OnStart Rule: Refresh:
8
You can do something fancy if the source data is too big
You can do something fancy if the source data is too big. Cache the filtered version based on what you would need.
9
Handling offline data edit
9/12/2018 3:59 AM Handling offline data edit The data edits could be: - Delete on details screen. © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
10
Add a new record or update an existing record and submit the form.
9/12/2018 3:59 AM Add a new record or update an existing record and submit the form. - Override the SubmitForm() function and specialize it (Notice how the change is persisted on the device through SaveData function) © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
11
9/12/2018 3:59 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
12
Handling syncing of data when online
Create a screen for reviewing and syncing changed data. You can detect when the device is online and enable the controls to display and sync data.
14
Conflict resolution Create a screen to display the conflicts
9/12/2018 3:59 AM Conflict resolution Create a screen to display the conflicts when there are any. © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
15
References Soon to be released book ‘Beginning PowerApps’ By Tim Leung
9/12/2018 3:59 AM References Soon to be released book ‘Beginning PowerApps’ By Tim Leung Link: © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
16
Please evaluate this session
Tech Ready 15 9/12/2018 Please evaluate this session From your Please expand notes window at bottom of slide and read. Then Delete this text box. PC or tablet: visit MyIgnite Phone: download and use the Microsoft Ignite mobile app Your input is important! © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.