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

Select(Parent) is not working after data filter in the gallery

Hi Experts,

I have developed an app. It contains several screens of gallery with different filters used.
My All tickets screen is working fine. But other screens (Pending tickets, rejected tickets and approved tickets) are not working.

All tickets screen

All tickets.pngAll tickets screen
 
Pending Tickets screen
Pending tickets.pngPending Ticket screen

When I select an item in the pending tickets screen, the detail view is same for all the selected items. This issue is same for my other screens except all tickets.
 
Query which is used in pending tickets:
SortByColumns(
Filter(
[@'Pay Parking'],
StartsWith(
Title,
TextSearchBox1_1.Text
),
'Created By'.Email = email,
Status.Value = "Pending for 1st Approval" ||
Status.Value = "Pending for 2nd Approval"
),
"Title",
If(
SortDescending1,
Descending,
Ascending
)
)
Please advice me!
Thanks
13 REPLIES 13
Super User
Super User

Re: Select(Parent) is not working after data filter in the gallery

@Musthaque
You will want to take a look at the Item property of your form on the Pay Parking screen. It is what determines which record to show.

You should put this code in the Item property of the Form on the Pay Parking screen. Let’s assume your gallery on the Tickets screen is called Gallery1.

Gallery1.Selected

Now whatever is selected in the Gallery will show on the pay tickets screen.

—-
Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.
kbilakanti
Level 8

Re: Select(Parent) is not working after data filter in the gallery

As I can see from the screenshot's posted. You are using different gallery screens(Let's say Screen A - Gallery A , Screen B - Gallery B, Screen C - Gallery C with different filter conditions) and using single details screen for all different galleries.

To make your use case scenario work  please define a variable on galleries(A,B,C) ">"click and in onselect property use Set(RecordId, <GalleryName>.Selected) which loads selected record information dynamically into RecordId Variable. You can now use "RecorId" in Item property of your details screens. This makes your details screen to show data dynamically based on your selected gallery.

Please Accept this as solution , if it solves your problem.

 

Musthaque
Level: Powered On

Re: Select(Parent) is not working after data filter in the gallery

 

Dear @mdevaney

 

 

Musthaque
Level: Powered On

Re: Select(Parent) is not working after data filter in the gallery

Dear @kbilakanti,

Do you know how to make this Details screen as dynamic. Because the the detail screen is common for the all screens (All, Pending, Approved and Pending tickets). And in this Details screen item element is set to BrowseGallery1.Selected.
Gallery issue.pngGallery issue

 

Please advice me.

Thanks.!

kbilakanti
Level 8

Re: Select(Parent) is not working after data filter in the gallery

On each screen where you have galleries, on arrow icon or greater than icon(">") on select property use this formula(Set(RecordId, <GalleryName>.Selected)). Then in browse screen as per your screenshot in item property just use this variable("RecordId"). It will work.

Musthaque
Level: Powered On

Re: Select(Parent) is not working after data filter in the gallery

@kbilakanti, I tried as you said. but it's not working as expected. I just wanted to make my details screen as a dynamic screen for all the screen. And when I create duplicates of Details screen, it worked. But I want to avoid duplication.

kbilakanti
Level 8

Re: Select(Parent) is not working after data filter in the gallery

I created a sample and it worked for me . Attached sample images for the same.

kbilakanti
Level 8

Re: Select(Parent) is not working after data filter in the gallery

Attaching one more image.

Yadagiri
Level: Powered On

Re: Select(Parent) is not working after data filter in the gallery

@kbilakanti , Its work for me, You saved lot of my time

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

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