cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Chicko29
Level: Powered On

Link a display form to a gallery item without having to select the item

I have two screens: Screen1 with Gallery1 and Screen2 with Gallery2

When I click on Item1 from Gallery1, it navigates me to Screen2 with Gallery 2 which displays the info from Item1 (I'm filtering by the selected item from Gallery1). Gallery 2 only has and displays that selected item. Gallery 2 is not selectable, It is just displaying the selected item ID for reference.

 

When Item1 is selected from Gallery1, I would like a Display form of Item1 to be created on Screen2 without having to reselect Item1 on Gallery 2. So far, I have not been able to link the display form on Screen 2 to Gallery1 by using the .selected method because the Display form is not on Screen 1. Can anyone help?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Link a display form to a gallery item without having to select the item

Hi @Chicko29,

Could you please share more details about the formula within the Items property of the Gallery2 control?

On your side, if you want to display the selected item in Gallery1 within the Display form in Screen2, please consider take a try with the following workaround:

Set the Item property of the Display form control to following formula:

LookUp(datasource2, RecordID = Gallery1.Selected.RecordID)       /* Find corresponding record in your datasource2 based on RecordID (Common Column) */

Please take a try with above solution, then check if the issue is solved.

More details about the LookUp function, please check the following article:

LookUp 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

5 REPLIES 5
Chicko29
Level: Powered On

Re: Link a display form to a gallery item without having to select the item

I found a solution that seems to be working. Posting it in case it helps someone else. 

On Screen2, OnVisible I put Select(title). Title here is Item1 from Gallery 2.

Hopefully this keeps working. 

Community Support Team
Community Support Team

Re: Link a display form to a gallery item without having to select the item

Hi @Chicko29,

Have you solved your problem?

If you want to display the selected item in Gallery1 within Display form in Screen2, please take a try with the following workaround:

Set the Item property of the Display form control to following formula:

Gallrey1.Selected

Note: Gallery1 represents the Gallery control within your Screen1. You could use the Gallery1.Selected formula in anywhere of your app, regardless of which screen it is. Please make sure the Display form and Gallery1 are connected to same data source.

If you have solved your problem, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify.

 

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.
Chicko29
Level: Powered On

Re: Link a display form to a gallery item without having to select the item

Thanks so much for your answer.

 

I thought I had solved the problem, but it is persisting. My problem is that the display form on screen 2 and Gallery 1 do not have the same data source. But both data sources have a common column (RecordID). That's why I added Gallery2 on screen2, linked it to data source2 (Gallery1 on screen1 is linked to data source1) and filtered it by the RecordID selected on Gallery1. Then I linked the display form on screen2 to Gallery2, in order to display the fields I want visible, by using the Gallery.Selected method. Unfortunately, I have to be able to select an item on Screen1 and be able to view its details on screen 2. I can't put the display form on Screen1, need to put it on Screen2 and I also have to use these two different data sources.

 

My problem now is that Gallery2 needs to be selected for the display form to display fields. But I would like for it to be automatically selected when item 1 is selected on Screen1, and screen2 is made visible. So what I did is add Select(Title) to Screen2's Onvisible action. This only works when an item is first selected, but when I select a second item, I still have to click on gallery2 for the display form to display fields.

 

Hopefully my description is clear, have any suggestions?

Community Support Team
Community Support Team

Re: Link a display form to a gallery item without having to select the item

Hi @Chicko29,

Could you please share more details about the formula within the Items property of the Gallery2 control?

On your side, if you want to display the selected item in Gallery1 within the Display form in Screen2, please consider take a try with the following workaround:

Set the Item property of the Display form control to following formula:

LookUp(datasource2, RecordID = Gallery1.Selected.RecordID)       /* Find corresponding record in your datasource2 based on RecordID (Common Column) */

Please take a try with above solution, then check if the issue is solved.

More details about the LookUp function, please check the following article:

LookUp 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

Chicko29
Level: Powered On

Re: Link a display form to a gallery item without having to select the item

Perfect. That works! Thank you so much. I didn't know the lookup function could be used with Galleries. I thought it only worked with tables. Thanks so much for your help!!!! You're awesome!!!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 329 members 5,767 guests
Please welcome our newest community members: