Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Edit form inefficient delay loading

(0) ShareShare
ReportReport
Posted on by 2
Dear all,

I have been receiving this performance warning about my edit form (screen 2) item having an inefficient delay loading issue.

Here below is a screenshot of the error and the code used in the different properties 
Also I have noticed that after modifying the data and clicking on the submit button, it comes back to screen 1 but the modified information is not displayed right a way and other fields need to be updated a second time so that the modification is taken in consideration. 
 
Properties for the edit form
Item: 
DataTable1.Selected
 
DataSource:
Tableau
 
Properties for the submit button
If(
    IsBlank(Comment_DataCard3.Required && 'Action description_DataCard2'.Required && 'Achievement date_DataCard1'.Required),
    Notify(
        "Please fill the required fields before submitting",
        NotificationType.Error,
        2000
    ),
    SubmitForm(EditForm1) && Notify(
        "You updated successfully your data",
        NotificationType.Success,
        2000
    ) && Navigate(Screen1)
);
 
 
Has anyone an idea on how to solve this ? 

Many thanks.
 
Cheers
Categories:
  • ronaldwalcott Profile Picture
    ronaldwalcott 1,388 on at
    Edit form inefficient delay loading
    Using Datatable1.Selected is generally acceptable for usage in mobile sized apps. What other control properties are you accessing in Screen2 from other screens? If you are accessing other properties from any other screen you should remove those references.
  • Verified answer
    MarkRahn Profile Picture
    MarkRahn 904 on at
    Edit form inefficient delay loading
    Hi,
     
    There are several things you may need to change.
     
    1) Do you have a single Edit Form? It appears that you do and the form is named "EditForm1". If you only have a single form, you don't need to be checking the "Required" properties of these DataCards:
    Comment_DataCard3.Required && 'Action description_DataCard2'.Required && 'Achievement date_DataCard1'.Required

    The "Required" property is a True/False value. If these are set to "True", then the form will handle the error checking for you. With the check you are doing, you are only checking that the fields are Required (and I am not sure if the code you have is correct for that) . You are not checking to see if the user entered any information for those fields. Let me know if you need more of an explanation.

    2) Your Submit button should probably only have "SubmitForm(EditForm1)" in it. You should use other properties of the Form for everything else. The Form has "OnSuccess" and "OnFailure" properties.

    In the OnSuccess, you would set it to:

    OnSuccess runs if the data was able to be saved.

    In the "OnFailure", you would set it to something like this which would be more generic to any error that occurs:

    OnFailure runs if the data was not able to be saved.
     
    This might not resolve the "Inefficient delay loading" as your "EditForm1" is referencing "DataTable1.Selected".  For that, you may need to look at using a Global Variable to store the selected Item, and set your Form to reference that instead of "DateTable1.Selected"

    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a Like.
     
    Thanks
    -Mark
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Kickstarter Events…

Register for Microsoft Kickstarter Events…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #13 Writing Effective Answers…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,858

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,505

Leaderboard