cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tahir2132
Helper II
Helper II

Navigating and Reseting

Tahir2132_0-1631543074388.pngTahir2132_1-1631543136621.png

 

 

i am Trying to reset the form after its submited and it should navigate to Done page but i get these 2 error please Help.

 

 

 

 

ForAll(
Filter(
BrowseGallery1.AllItems,
Value(QtyInput.Text) > 0
),
Patch(
'Device ordering list',
Defaults('Device ordering list'),
{
Title: ArtInput.Text,
Anzahl: Value(QtyInput.Text),
Comments: CommentsInput.Text,
Standard: DescInput.Text

}
)
)
Reset(ArtInput);
Reset(QtyInput);
Reset(CommentsInput);
Reset(DescInput);
Navigate(Done,None);

11 REPLIES 11
BCLS776
Super User
Super User

The ForAll statement needs a semicolon (;) at the end of it to address the first error. Once fixed, this will probably clear up your second error too.

 

Hope that helps,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.
Tahir2132
Helper II
Helper II

Tahir2132_0-1631544527104.png

i put the ; Now it give error The function expect resettable control as input

BCLS776
Super User
Super User

You can use the Reset() function in that way, as long as it is executed from within the same gallery. I notice the button you are using is outside of the gallery.

 

If you need those controls reset, try putting them into a behavior property (starts with "On") of a control within the gallery itself.

 

Hope that helps,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.
Tahir2132
Helper II
Helper II

how can you please do an example using the code i posted above sorry im new to power apps not much experience

StalinPonnusamy
Super User
Super User

Hi @Tahir2132 

 

Refresh(DataSource); //Master List .Not 'Device ordering list'

Navigate(Done,None);

Tahir2132
Helper II
Helper II

i have used refrest but still not working 

Tahir2132_0-1631710128918.png

 

StalinPonnusamy
Super User
Super User

Hi @Tahir2132 

 

Please change to

Refresh('Device Ordering List') //SP Data source

Tahir2132
Helper II
Helper II

Tahir2132_0-1631710679531.png

you mean like this?

StalinPonnusamy
Super User
Super User

Yes exactly. Test it and let me know. It should work. Already I'm using this command.

You can remove //SP Data source (I specified for reference)

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,230)