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
PDA
Frequent Visitor

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
PDA
Frequent Visitor

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

thank you very much it works very well 

merci beaucoup. ca marche parfaitement!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,752)