web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Update issue

(0) ShareShare
ReportReport
Posted on by 80

Hi, I've an app where I start with a button: Navigate(NewScreen_1, ScreenTransition.None); NewForm(Form2_2)

Then I can fill-out the form > when saving the form it navigates to the "open items" screen (Patch(.......);ResetForm(Form2_2);Navigate(OpenItems);

There I can choose another Open item > click on Edit (Set(varItem,DataTable1.Selected.ID); Navigate(NewScreen_1)) and are able to edit the item...

But when I do not fill-out the Form2_2 > directly go to the "OpenItems" screen > select one and click Edit, it doesn't load the item.

 

-> The NewScreen_1 has the item property: LookUp('splist', ID=varItem)

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @buzzen 

    First, you seem to mention that you have a Patch statement to submit your form - this should be removed and you should be submitting your form with SubmitForm(Form2_2)

    Then in the OnSuccess action of your form, you should have:

    Set(varItem, Self.LastSubmit);
    ResetForm(Form2_2); //not needed
    Navigate(OpenItems)

     

    For your Edit OnSelect action, set your formula to:

    Set(varItem, ThisItem); 
    EditForm(Form2_2);
    Navigate(NewScreen_1) 

     

    Change your Form2_2 Item property to:  varItem

     

    I hope this is helpful for you.

  • buzzen Profile Picture
    80 on at

    Hi, sorry for the late reply... Unfortunately that doesn't work... It doesn't accept the "Set(varItem, Self.LastSubmit)"...

    And I need the patch command because there are 2 forms on the screen that needs to be submitted...

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @buzzen 

    The setting of the variable is important in this case, so what is the error you get from that?

  • buzzen Profile Picture
    80 on at

    Was able to figure it out, thanks

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard