cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tuonoman
Helper IV
Helper IV

redirected after saving edit form

Hi

To validate an Edit form I use an icon button with a "SubmitForm(EDIT_PRODUCT_FORM)" function.
After clicking on the button I am sent back to another product.


How can I be redirected after saving the modified values?

 

thanks for your help

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@tuonoman 

Is the Datasource of all the forms PRODUCT?

Also, I was just looking at your Items property of the Gallery again and noticed there are two other added columns beside LineNumber.   We need to drop those as well for the form.

So for your Item property on the form, set to:

Set(glbSelectedItem; First(DropColumns(Table(ThisItem); "LineNumber"; "TAG_NAME"; "PROVIDER_NAME")));;  Navigate('DETAIL PRODUIT'; None)

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

39 REPLIES 39
Drrickryp
Super User II
Super User II

@tuonoman 

In the OnSuccess property of the form, put Back() if you want to go to the previous screen or Navigate(Screen2) to go somewhere else.

JisungHan
Microsoft
Microsoft

Hi @tuonoman ,

 

Would you please share screenshots:

1. Submit button you clicks

2. Another product that you are routed

 

The submit button normally navigate to list view in PowerApps. As @Drrickryp mentioned, please check whether the "OnSuccess" property contain a wrong navigate expression to route to another product.

 

Best regards,
Jisung Han

tuonoman
Helper IV
Helper IV

@Drrickryp @JisungHan 

 

Strangely I don't have any property  "onsucces " on my icon.

 

I must have done something wrong

 

no onsucces.png

 

Drrickryp
Super User II
Super User II

It is a property of the form, not

 the button.

tuonoman
Helper IV
Helper IV

ah "onsucces" is on the form  and not the button ?

tuonoman
Helper IV
Helper IV

@JisungHan @Drrickryp 

OK ! I have tried,  but with "back" and "navigate"  i  back always on the first product on my list. 

I would like  to back  on the detail page of the same product edited.

Apparently I can't add an instruction of type "selected".

Drrickryp
Super User II
Super User II

@tuonoman 

Put ViewForm(EDIT_PRODUCT_FORM) in the OnSuccess property of the form.

tuonoman
Helper IV
Helper IV

@Drrickryp 

 

sorry, same problem ☹️

 

 

 

 

tuonoman
Helper IV
Helper IV

@Drrickryp 

 

I make a video for explain.

 

https://youtu.be/47PD03eKA7g

 

 

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

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (15,125)