cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
zachm
Microsoft
Microsoft

Display updates from 3 Forms from 3 pages on a Review and Submit page

I am trying to create a Review and Submit page the shows all the changes from the previous pages. The patch function on the submit button successfully updates the data verse table, but doesn't display all the changes on the final page.

 

The flow that is currently implemented is as follows:

Screenshot 2022-11-15 160006.png

Question: How can i update the varNewJDData variable to contain the changes from the first 3 screens and display them to the user?

 

What I have tried:

On each screen, i used the Patch() function on the "next page" button. See the example below. This change did not work.

Patch(varNewJDData,jdScreenForm1.Updates);Navigate('JD Details Screen Pt 2')

I tried the Set function (similar to above), which did display the data but only from the last time i called Set(). So on the Review and Submit screen, i only saw data from the 3rd screen. It was adding the data to the global variable, but it was overriding itself each time i called set()

 

 

Set(varNewJobData,RollSumForm1.Updates);Navigate(‘Job Details Pt 2')

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @zachm ,

 

Form modes are New except for the last one is View, just the same as yours.

 

Blow is the result after the second button selected:

vjefferni_0-1668664133526.png

 

And after the third button selected:

vjefferni_1-1668664232934.png

 

Working perfectly as you can see. On your end, you can check the collection details every time selected the buttons by selecting the collection name, to help you find out if the collection is working:

vjefferni_2-1668664640483.png

 

I found that the Defaults function will generate a blank record, so I use Remove function to delete and clear the first blank/default item. Please check the collection status button by button.

 

BTW, I cannot be contacted except for this community, because of the compliance policy. Sorry about that.

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

3 REPLIES 3
v-jefferni
Community Support
Community Support

Hi @zachm ,

 

You can leverage a collection to achieve your need. I made a test for your reference:

vjefferni_1-1668595292578.png

 

For the button on main screen, initialize a collection:

ClearCollect(VAR1,Defaults('Your List'))

 

Next button on the Role summary screen, OnSelect to update this collection with inputs in first form, and REMOVE the Defaults item (first item):

Patch(VAR1,First(VAR1),Form1.Updates);Remove(VAR1,First(VAR1))

 

Next buttons, update the first item Form by Form, and at last get all the updates

Patch(VAR1,First(VAR1),Form2.Updates)

 

Be noted that Item of all Forms are First(collection), so all the item are the same.

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

So after making those adjustments(below), i still dont see anything populating the final screen. Could you explain how to managed the FormMode?

 

Also, why do we need to use Remove()?

 

Main Screen

On Select: 

ClearCollect(colNewJD,Defaults('Job Description Verifications')); Navigate('Role Summary Screen')

 

Screen 1

On Select:

Patch(colNewJD,First(colNewJD),RoleSumForm.Updates);Remove(colNewJD,First(colNewJD)) ;Navigate('JD Details Screen Pt 1'); 

Item: First(colNewJD)

DefaultMode: FormMode.New

 

Screen 2

Onselect:

Patch(colNewJD,First(colNewJD),jdReviewForm1.Updates);Navigate('JD Details Screen Pt 2')

Item: First(colNewJD)

DefaultMode: FormMode.New

 

Screen 3

Onselect:

Patch(colNewJD,First(colNewJD),jdScreenForm2.Updates); Navigate('Review And Submit Screen')

Item: First(colNewJD)

DefaultMode: FormMode.New

 

Review Screen

Item = First(colNewJD)

DefaultMode: FormMode.View

Hi @zachm ,

 

Form modes are New except for the last one is View, just the same as yours.

 

Blow is the result after the second button selected:

vjefferni_0-1668664133526.png

 

And after the third button selected:

vjefferni_1-1668664232934.png

 

Working perfectly as you can see. On your end, you can check the collection details every time selected the buttons by selecting the collection name, to help you find out if the collection is working:

vjefferni_2-1668664640483.png

 

I found that the Defaults function will generate a blank record, so I use Remove function to delete and clear the first blank/default item. Please check the collection status button by button.

 

BTW, I cannot be contacted except for this community, because of the compliance policy. Sorry about that.

 

Best regards,

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,718)