We have implemented load data and save data to handle offline scenario. this will not work in some cases like. when you click on submit button at that time you can check if internet is there or not and based on internet connectivity you store data locally or online.
but what about this case: when you press submit button at that time internet is there and you start transferring the data and immediately internet goes down. here app gets freezeing how to deal with such case? how to handle such scenario?
Thank you,
Tejas
this is for valid if you are using the pro-dev PCF capabilities ie writing TypeScrupt/JavaScript code.
If thats not the case, it would help if you can attach a gif/screen shot so that I can repath the thread to appropriate place.
Hemant
I am not sure you are talking about PowerApps? is so then do you have any sample for this?
Is it for PCF custom controls ? You need to handle the offline disconnections in code for example if you are using HttpClient add a try catch and handle exception. Also 3rd party libraries like offline.js can be used which can capture the AJAX request and replay in case of disconnecion. Transactional behaviour of the data upload might also need validation on server.
Hemant
WarrenBelz
94
Most Valuable Professional
Michael E. Gernaey
72
Super User 2025 Season 1
mmbr1606
71
Super User 2025 Season 1