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

Display detail screen according to the user input

Hello all,

Is there any way of displaying the detail screen according to the user inputs? For example I have several edit forms in my app with several fields that the app user has to fill in. So I want to display the user selected values in the Detail screen once the forms have been submitted. What should I set the Items property of the detail screen?

 

P.S. I'm not using the Browse screen and my I've arranged my app such that the Edit form opens first and then the Detail screen

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Display detail screen according to the user input

Hi @PrashantIyer,

How do you submit your form data? Using SubmitForm function or Patch function?

Do you want to display the Form1 data and Form2 data within one Display form?

Further, does the Edit form 1 connect to same data source with the Edit form 2?

If you want to display the Edit Form1 data and Edit Form2 data within one Display form, I afraid that the SubmitForm function could not achieve your needs.

I assume that the Edit form 1 connects to same data source with the Edit form 2, you could consider take a try to use the Patch function to submit the Edit Form1 data and Edit Form2 data into your SP list, and store the submitted form data (Form1 data & Form2 data) into a global variable, then set the Item property of the Display form control to the global variable.

I have made a test on my side, please take a try with the following workaround:

Set the OnSelect property of the "Submit" button within the Edit form 2 screen to following:

Set(
SubmittedRecord,
Patch(
'YourDataSource',
Defaults('YourDataSource'),
EditForm1.Updates, /* <-- EditForm1 represents your Edit Form 1 */
EditForm2.Updates /* <-- EditForm2 represents your Edit Form 2 */
)
)

Set the Item property of the Display form to following:

SubmittedRecord

More details about the Patch function in PowerApps, please check the following article:

Patch function

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Display detail screen according to the user input

Hi @PrashantIyer,

How do you submit your form data? Using SubmitForm function or Patch function?

Do you want to display the Form1 data and Form2 data within one Display form?

Further, does the Edit form 1 connect to same data source with the Edit form 2?

If you want to display the Edit Form1 data and Edit Form2 data within one Display form, I afraid that the SubmitForm function could not achieve your needs.

I assume that the Edit form 1 connects to same data source with the Edit form 2, you could consider take a try to use the Patch function to submit the Edit Form1 data and Edit Form2 data into your SP list, and store the submitted form data (Form1 data & Form2 data) into a global variable, then set the Item property of the Display form control to the global variable.

I have made a test on my side, please take a try with the following workaround:

Set the OnSelect property of the "Submit" button within the Edit form 2 screen to following:

Set(
SubmittedRecord,
Patch(
'YourDataSource',
Defaults('YourDataSource'),
EditForm1.Updates, /* <-- EditForm1 represents your Edit Form 1 */
EditForm2.Updates /* <-- EditForm2 represents your Edit Form 2 */
)
)

Set the Item property of the Display form to following:

SubmittedRecord

More details about the Patch function in PowerApps, please check the following article:

Patch function

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

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

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,763)