cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Big_S
Level: Powered On

Offline capabilities

Hi Guys,
I have this concern our internet connection sometimes disconnected then users need to submit records from powerapps Is there a way that the user can still submit/saved records to datasources(SQL) even though we experienced disconnection of the internet? how do these powerapps offline capabilities work?
Thank you so much guys! 

5 REPLIES 5
K-A-R-L
Level 10

Re: Offline capabilities

Hi @Big_S ,

 

If you have limited or no connectivity at all, do you still want the app to run when offline?

  1. You need to first determine app connection status by using the Connection function.
  2. Then Collect your data source by using Collection
  3. You can now use the LoadData and SaveData for basic data storage on your device's cahce when offline.

Please check the links:

  1. https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/offline-apps
  2. https://powerapps.microsoft.com/en-us/blog/implementing-offline-capability-in-your-app/
  3. https://powerapps.microsoft.com/ru-ru/blog/build-offline-apps-with-new-powerapps-capabilities/

Also watchShane Young's video:

  1. https://www.youtube.com/watch?v=MclJ_O9HvJQ

Best of luck.

----------------------------------------------------------------------------
Thanks,
K-A-R-L


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you thought this post was helpful, please give it a Thumbs Up.

Big_S
Level: Powered On

Re: Offline capabilities

Hi @K-A-R-L 
What I did first I'm trying to test the connection by adding Circle icon and set Fill property to this If(Connection.Connected, Green, Red) I have a button I wanted to keep it disabled when the Circle is Red this is my formula:
If(And(!IsBlank(ItemDescriptionTxtInput.Text),
!IsBlank(Label1_10.Text),
!IsBlank(SpecialPaymentTxtInput.Text),
!IsEmpty(SupplierComboBox.SelectedItems),
!IsBlank(VATDropdown.SelectedText.Value),
!IsBlank(AttachmentTextInput.Text),
!IsBlank(TeamTextInput_2.Text),
!IsBlank(TeamTextInput.Text),
!IsBlank(Label1_10.Text)) && TotalAmount.Text <> "0.00",Edit,Disabled)

I want to add the formula if Circle is Red button is disabled I always received error how to execute that one?

Thank you so much.

 

Highlighted
K-A-R-L
Level 10

Re: Offline capabilities

Hi @Big_S ,

 

Please try adding this to the Button's DisplayMode() Property:

If(And(!IsBlank(ItemDescriptionTxtInput.Text),
!IsBlank(Label1_10.Text),
!IsBlank(SpecialPaymentTxtInput.Text),
!IsEmpty(SupplierComboBox.SelectedItems),
!IsBlank(VATDropdown.SelectedText.Value),
!IsBlank(AttachmentTextInput.Text),
!IsBlank(TeamTextInput_2.Text),
!IsBlank(TeamTextInput.Text),
!IsBlank(Label1_10.Text)) && TotalAmount.Text <> "0.00",Edit,Connection.Connected = false,Disabled)

Best of luck!

----------------------------------------------------------------------------
Thanks,
K-A-R-L


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you thought this post was helpful, please give it a Thumbs Up.

Big_S
Level: Powered On

Re: Offline capabilities

Hi @K-A-R-L 
It works, however, the IsBlank formula is not working if always Green 😞

Community Support Team
Community Support Team

Re: Offline capabilities

Hi @Big_S ,

Based on the issue that you mentioned, I think the "||" operator could achieve your needs.

I have made a test on my side, please consider modify your formula as below:

If(
IsBlank(ItemDescriptionTxtInput.Text) || IsBlank(Label1_10.Text) || IsBlank(SpecialPaymentTxtInput.Text) || IsEmpty(SupplierComboBox.SelectedItems) || IsBlank(VATDropdown.SelectedText.Value) || IsBlank(AttachmentTextInput.Text) || IsBlank(TeamTextInput_2.Text) || IsBlank(TeamTextInput.Text) || IsBlank(Label1_10.Text) ||
TotalAmount.Text = "0.00" ||
Connection.Connected = false, /* <-- Add formula here */
DisplayMode.Disabled,
DisplayMode.Edit
)

Please consier take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,240)