cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JakeLepak
Frequent Visitor

Text Inputs

So I am using a slight variation of the Meeting Capture Template in PowerApps, and I was wondering if there was anyway to fill out text inputs of a selected meeting a few days in advance, leave the app, return a few days later to the selected meeting, and have the text inputs retain the same text that I entered in a few days prior.

 

Sorry if it is a little vague. I would be willing to further clarify if anybody can help me.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @JakeLepak,

 

I agree with @Rebetcha's thought almost, and I think your thought is proper.

 

You could consider take a try to save the text that you filled within the selected meeting into a Collection using Collect function firstly, then use the SaveData function to store the Collection into your local device. 

 

When you open your selected meeting later, using the LoadData function to load the Collection into your app.

 

Please take a try with the following workaround:

 

Set the OnSelect property of a Button control to following formula (Save Collection into a Temporary data😞

Collect(
    TemporaryData,
     {
      Field1:Field1Value,
      Field2:Field2Value,
      ...
     }
);
SaveData(TemporaryData,"TempData")

Note: The Filed1, Field2, ... represents the Text fields (whose value you want to save as a temporary data) within your selected meeting.

 

 

Set the OnStart property of the first screen of your app to following formula:

 

ClearCollect(TemporaryData,{});
LoadData(TemporaryData,"TempData",true)

 

Then when you open the selected meeting later, you could reference the temporary data within the Text fields of your selected meeting from the TemporaryData collection.

 

 

Please check and see if the following blog would help in your scenario:

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

 

 

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

SaveData and LoadData function

 

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

7 REPLIES 7
Rebetcha
MVP

You need to create some place to temporarily store your data and make a reference to the meeting. Data stored in the app in collections and variables and such are erased as soon as you exit the app.

Ok I will try that! I figured that Collect and SaveData would be the functions that I would use, but do you have any idea what functions I would use to reference that temporary data? 

v-xida-msft
Community Support
Community Support

Hi @JakeLepak,

 

I agree with @Rebetcha's thought almost, and I think your thought is proper.

 

You could consider take a try to save the text that you filled within the selected meeting into a Collection using Collect function firstly, then use the SaveData function to store the Collection into your local device. 

 

When you open your selected meeting later, using the LoadData function to load the Collection into your app.

 

Please take a try with the following workaround:

 

Set the OnSelect property of a Button control to following formula (Save Collection into a Temporary data😞

Collect(
    TemporaryData,
     {
      Field1:Field1Value,
      Field2:Field2Value,
      ...
     }
);
SaveData(TemporaryData,"TempData")

Note: The Filed1, Field2, ... represents the Text fields (whose value you want to save as a temporary data) within your selected meeting.

 

 

Set the OnStart property of the first screen of your app to following formula:

 

ClearCollect(TemporaryData,{});
LoadData(TemporaryData,"TempData",true)

 

Then when you open the selected meeting later, you could reference the temporary data within the Text fields of your selected meeting from the TemporaryData collection.

 

 

Please check and see if the following blog would help in your scenario:

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

 

 

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

SaveData and LoadData function

 

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

Hi @v-xida-msft,

 

I tired using the coding that you used, but when I tried to open the meeting again, it said

LoadData(TemporaryData,"TempData",true) 

 had an error message that said

 

"There was a problem loading your data. Data canot be loaded when running in a web browser"

 

Do you have any idea what the problem is?

Awesome! Learned something myself. 🙂

It is not mentioned in the support article, but according to some comments of people on the article these functions do not work using the browser. They probably only work in the Mobile or Windows app.

Hi @JakeLepak,

 

Just an update -- Currently, the SaveData function and LoadData fucntion only works within PowerApps Mobile App of Mobile Device (iOS device, Android device and Windows phone).

 

Please check and see the following thread for more details:

https://powerusers.microsoft.com/t5/General-Discussion/How-can-I-use-SaveData-to-temporarily-hold-co...

 

Please take a try to run your app within PowerApps Mobile App of Mobile Device, then check if the issue is solved.

 

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.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (47,738)