cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
blue_lotus
Helper III
Helper III

offline - dropdown list - pulling data form SharePoint list

Dear community,

 

I made an app that I want to use offline.
There is a form to enter data, with a dropdown list on it, pulling data form a SharePoint list.

When I am offline, the dropdown list doesn't pull the data anymore.

I guess I ahve to put it in  collection and the cache, but Im not sure how to do that.

Can anyone guide me through that?

Many thanks in advance for your help

2 ACCEPTED SOLUTIONS

Accepted Solutions
Anonymous
Not applicable

Hey,

 

Check the link below for the details

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/offline-apps

 

You'll need to put your code in the first screen "OnVisible" property, this way it'll always run when you launch the app.

 

The code might be tweaked this way for your use :

 

If(Connection.Connected,
    ClearCollect(LocalSPList, SPList) ,
    LoadData(LocalSPList, "SPList", true) 
)&&
SaveData(LocalSPList, "SPList")

I hope I didn't mess anything in it while translating from french.

 

Tell me how it goes !

View solution in original post

v-xida-msft
Community Support
Community Support

Hi @blue_lotus,

Do you want to create a offline app using PowerApps?

Based on the needs that you mentioned, I think the SaveData function and LoadData function could achieve your needs.

I have made a test on my side, please take a try with the following workaround:

Set the OnVisible property of the first screen of your app to following:

If(
    Connection.Connected,
    ClearCollect(DropdownCollection, 'YourSPList'),
    LoadData(DropdownCollection, "DDCollection")
);
SaveData(DropdownCollection, "DDCollection")

then you could use the DropdownCollection to populate the Drop down control within your app.

More details about the SaveData function and LoadData function in PowerApps, please check the following article:

SaveData function, LoadData function

More details about creating a offline app in PowerApps, please check the following blog:

https://powerapps.microsoft.com/en-us/blog/build-offline-apps-with-new-powerapps-capabilities/

 

Best regards,

Kris

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.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hey,

 

Check the link below for the details

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/offline-apps

 

You'll need to put your code in the first screen "OnVisible" property, this way it'll always run when you launch the app.

 

The code might be tweaked this way for your use :

 

If(Connection.Connected,
    ClearCollect(LocalSPList, SPList) ,
    LoadData(LocalSPList, "SPList", true) 
)&&
SaveData(LocalSPList, "SPList")

I hope I didn't mess anything in it while translating from french.

 

Tell me how it goes !

v-xida-msft
Community Support
Community Support

Hi @blue_lotus,

Do you want to create a offline app using PowerApps?

Based on the needs that you mentioned, I think the SaveData function and LoadData function could achieve your needs.

I have made a test on my side, please take a try with the following workaround:

Set the OnVisible property of the first screen of your app to following:

If(
    Connection.Connected,
    ClearCollect(DropdownCollection, 'YourSPList'),
    LoadData(DropdownCollection, "DDCollection")
);
SaveData(DropdownCollection, "DDCollection")

then you could use the DropdownCollection to populate the Drop down control within your app.

More details about the SaveData function and LoadData function in PowerApps, please check the following article:

SaveData function, LoadData function

More details about creating a offline app in PowerApps, please check the following blog:

https://powerapps.microsoft.com/en-us/blog/build-offline-apps-with-new-powerapps-capabilities/

 

Best regards,

Kris

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.

thank you very much it works very well 

merci beaucoup. ca marche parfaitement!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,033)