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

Updating Set( 'variable', ThisItem)

Dear Community, 

 

In a 3 screen app I have the following:

 

GalleryScreen navigation - On Select: Set( 'variable1', ThisItem); Navigate(ViewScreen, ScreenTransition.Fade)

ViewScreen form - Item: 'variable1'

EditScreen form - On Success: Back()

 

The app works fine, however if I make a change in the EditScreen, save and go back to the ViewScreen the item in the form, being 'variable1', still shows the old values before making the change. I realize this is because 'variable1' needs to be set again. Is there a way to accomplish this without requiring the user to start again from GalleryScreen and setting the variable again with it's newest values? 

 

Appreciate all feedback! 

 

Viz.

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User
Super User

@Vizpiration 

Put this code in the OnSuccess property of the form

Set(variable1, Form1.LastSubmit)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

2 REPLIES 2
mdevaney
Super User
Super User

@Vizpiration 

Put this code in the OnSuccess property of the form

Set(variable1, Form1.LastSubmit)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Hat off to you sir! This worked perfectly. 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,584)