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

Multiple galleries - set focus depending on which gallery has results

I have broken my excel data into 3 tables (due to PA limits) - each with unique data.  I created one search input field on, computername.  Then I created 3 identical galleries that all occupy the same space.  But only the gallery that has a match will show results so it appears as if there's only one gallery.  That is only ONE gallery will have filtered results based on the search value.

 

Here's the problem:  the results require scrolling, but only the gallery in "front" has a working scrollbar.

Is there a way to set focus on the gallery based on which gallery has values?

 

1 ACCEPTED SOLUTION

Accepted Solutions
cwebb365
Super User
Super User

You need to set variables based on if statements for countrows() against the datasets. SO you hide the emtpy ones which essientially treat them as not there. 

 

However I would highly recommend getting your data into something that has delegation instead like a SharePoint list. Or worse case create a local collection from all the pages by doing utilizing collect's into a collection for each of the 3 pages, then utilizing one gallery using that collection as it's datasource instead would yeild easier to work with results if the excel file is a must have. 

View solution in original post

1 REPLY 1
cwebb365
Super User
Super User

You need to set variables based on if statements for countrows() against the datasets. SO you hide the emtpy ones which essientially treat them as not there. 

 

However I would highly recommend getting your data into something that has delegation instead like a SharePoint list. Or worse case create a local collection from all the pages by doing utilizing collect's into a collection for each of the 3 pages, then utilizing one gallery using that collection as it's datasource instead would yeild easier to work with results if the excel file is a must have. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,996)