I am trying to build my first offline app in which I am facing some issues and I wonder if you can help me find answers to some of these-
1) I am trying to submit a form offline, which I am able to submit but when I try to open the app again, it asks for my login ID and Password. I am not able to figure out is that a Powerapps limitation or something wrong from my side.
2) When I am trying to submit multiple data forms in the same session, either it gives me duplicate of the first entry( if I am not clearing the collection) or just show the last entry (if I am cleaning the collection). Can you help me find the right resource where I can learn to solve this issue?
3) I want to do a verification check, that if the user has not filled all the required field he should not be able to submit the form and get an error for the missing field. Can you tell me what functions I can use to add this functionality?
If possible kindly, answer to my queries. Also, kindly let me know if any further information is required from my side.
Thanking you in Advance!
Shay
Solved! Go to Solution.
Thanks for posting in the community @Shay - can you review the above replies and update the thread if they were helpful?
Thank you,
@Anonymous
I've made my app work offline, but I don't really understand your question. I'm not sure what you mean by "if I am cleaning the collection" for example.
Maybe post some code that illustrates what you are doing, then what is happening when that code runs.
My app copies the relevant records from a sharepoint list (PSO) to a local collection (PSOCache), adds a "Edited" column, then periodically (using a timer) checks to see whether there is connection and if so writes all Edited records back to Sharepoint, then ClearCollect from the data source back to the cache. In my case the number of relevant records is small.
Hi @Shay ,
1)When you use PowerApps offline, the data will be stored locally in fact.
If you want the data to be updated to its data source, you need to enter verification information.
2)After you submiiting the form ,its mode will trun to Edit automaticlly. In the Edit mode, the form will display content about its Item setting.
Here's a doc for your reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-form
3)I recommend you use the function of IsBlank , If, Error.
Here's doc for your reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-isblank-isempty
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-if
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-errors
Best regards,
Community Support Team _ Phoebe Liu
Hi Shay,
I think I may be able to help with your 3rd issue. I am currently creating an application whic has a form. I am not sure about the verification check, but the user cannot submit my form without the data being entered, see image attached. I have highlighted fields.
Hope this helps and apologies if you knew this already.
Thanks for posting in the community @Shay - can you review the above replies and update the thread if they were helpful?
Thank you,
@Anonymous
Hi,
I Have developed an app using rating control,Its an app with offline capabilities in different scenarios-
STEP 1 : User Login In
User : Admin
Status : User Active(Online)
Task : Logins in to the Application
STEP 2: User Moves to Home Screen
User : Admin
Status : User inactive(Offline)
Task : Goes to homeScreen ,starts Performing rating in between the app gets quit.
STEP 3: User re-launch the app(Directly navigated to home screen)
User : Admin
Status : User inactive(Offline)
Task : Again continuing giving Rating
Error: No internet and Rating not able to get ovveride/updated(ex- If user has give 2 stars for some criteria now user wants to make it 5 star its not saving).
Step 4 is happening irrespective of offline or online mode.
code snippet- OnSelect of rating control-
UpdateIf(
Filter(
SavingData,
UserName = userName.Selected.Name,
Some_crit = Gallery.Selected.Result,
Rate_Team = TeamGallery.Selected.Rate_Team
),
Criteria = RateGallery.Selected.Criteria,
{Score: Value(RateGallery.Selected.Rating.Value)}
);
SaveData(
SavingData,
"saving"
);
I am loading it by LoadData on App starts.
User | Count |
---|---|
179 | |
120 | |
87 | |
44 | |
41 |
User | Count |
---|---|
245 | |
156 | |
128 | |
77 | |
73 |