web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Search in nested galle...
Power Apps
Unanswered

Search in nested galleries

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Search issue on inner gallery.

I have nested gallery. I was implementing Search but the formula which I implemented searches on the outer gallery but not inner gallery.

The backend is the webapi service which gives me data in this format -

"alerts": [
{
"plantName": "aaaaa",
"areaId": 1,
"areaName": "bbbbbb",
"processGroupId": 1,
"processGroupName": "cccccc",
"id": 1,
"name": "xyz",
"date": "5/15/2018 12:00:00 PM",
"signalDuration": 6,
"status": "NEW",
"isObserved": false,
"intensity": 0.243681192,
"causes": null,
"tags": [
{
"id": 17298,
"name": "abc",
"description": "new sensory tag",
"state": "Critical",
"unit": "PPM"
}

Outer gallery is binded to collection "AllAlerts" which displays process group name.
Inner sub gallery is binded to ThisItem.tags (to get names under tags list as shown in above format) in inner gallery.

Outer gallery items are binded to the below formula

Search(
AllAlerts,
PlantAlertSearchBox.Text,"name")

Inner gallery items are binded to the below formula

Search(ThisItem.tags,PlantAlertSearchBox.Text,"name")

Label inside the inner gallery's Text property is set to name.

When I type in PlantAlertSearchBox , Search always happens on outer gallery i.e it checks in the outer gallery name and does not search on inner gallery.What am I missing here ? Can someone help . Thanks.

 

image.png
Categories:
I have the same question (0)
  • v-zhta-msft Profile Picture
    Microsoft Employee on at

    Hi, @RoopaPendyala

     

    Could you please share more details about you data structure?

     

    Because there are two additional records in the screen shot “def” and “mno”.

     

    And what data do you want to display in the outer gallery and inner gallery?

     

    I have created a PowerApp based on your data and the formula worked fine.

     

    If you type nothing the outer gallery will display “xyz” and inner displayed all “tags”.

     

    If you type “xyz” in search box the outer gallery will display the match record “xyz” included in “Alerts”.

     

    If the “tags” don’t contain  “xyz” the inner gallery will display nothing otherwise display only the tags contains “xyz”.

     

    Regards,

    Zheng

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard