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

offline one drive excel does not work

Surprisingly we only have one offline twitter example available online.

 

I would like to develop an app to allow field users to reference a sharepoint excel file that is updated requently.

 

in the app , I created two datasource , one for the table in the excel file , one for a collection updated from the excel file when online. I have a tabledata control linked to the collection to show data to users.

 

when connected online,  invision func, I copy the table from excel datasource to the collection , and then save the collection to a local file, when not connected it will loaddata from the local file to the collection. 

 

I run the app without problems when online.  after I run the app online successfully, I close the app and then turn the mobile into airplain mode, and then start the app. then app report an error stating excel table data source if not available and failed to connect, which is understandable. it is suppose to load the local file to the collection and continue to run. however, it failed to get the data in the tabledata control.

 

any ideas?

 

thanks.

2 REPLIES 2
Community Support Team
Community Support Team

Re: offline one drive excel does not work

Hi @PoweruserBris,

 

Offline feature is still under developing.

The Twitter example should be considered as a little step.

Build offline apps with new PowerApps capabilities

 

Could you please share more details about the App you created, specially for the Load data source code?

Similar to the following part(Onvisible property of the first screen):

 

 If(Connection.Connected,
      ClearCollect(LocalTweets, Twitter.SearchTweet("PowerApps", {maxResults: 100}));
      UpdateContext({statusText: "Online data"});
SaveData(LocalTweets, "Tweets") , LoadData(LocalTweets, "Tweets", true); UpdateContext({statusText: "Local data"}) )

Are there any error messages when it failed to load the data?

Besides, if you have configured the formula with the OnVisible property of the first screen, then please take a try to naviagte to another screen and then back to the first screen to check.

See if that would help.

 

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PoweruserBris
Level: Powered On

Re: offline one drive excel does not work

Thanks, I got it working, I used the wrong function! however , I need to update some records back to the source dataset. I downloaded the dataset and updated some of , which is saved in a local collection/file, and need to patch the records back to the orignial data source, I know patch can batch update table records, but failed to do so. my table have mulitple fields as table primary key. tried Patch(sourcedata,localupdedrecordstable) but did not work.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Demo Extravaganza Championship Voting Open

Voting Ends: October 30, 2019!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 372 members 4,941 guests
Please welcome our newest community members: