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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Gallery/SubGallery Sel...
Power Apps
Unanswered

Gallery/SubGallery Selecting Item to send to Detail Screen

(0) ShareShare
ReportReport
Posted on by 94

I have a Sharepoint List DataSource called Census.

I used a guide to create a nested Gallery: https://www.clinkitsolutions.com/academy/creating-gallery-sections-using-subgallery/ 

I use a Flexible Height Gallery called gallHosp with Items set to:

 

GroupBy(AddColumns(SortByColumns(Filter(Census, Lower(TextSearchBox.Text) in Lower(OwnerMD) ||Lower(TextSearchBox.Text) in Lower(Lastname) || Lower(TextSearchBox.Text) in Lower(Firstname) || Lower(TextSearchBox.Text) in Lower(ClinicalText)), "Hospital", [Concat(Hospitals, name & ", ")]), "grpHosp", Hospital), "grpHosp", "Items")

 

 

I have a nested fixed height Subgallery called gallHosp with Items set to:

 

ThisItem.Items

 

 

Within the subgallery I can reference Data like: 

 

ThisItem.Lastname

 

 

Also in this subgallery, I have a right arrow Icon: originally set to:

 

Select(Parent); Navigate(DetailsScreen)

 

 

My  DetailsScreen DetailForm1.Items is updated to gallHosp.Selected

 

But this setup show blank details, so my question is how do I select/reference the item properly so it links appropriately into the DetailsScreen? 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    @cycle4passion 

    Try adding this to the OnSelect of the Parent gallery

    Set(vRecord, ThisItem)

     

    EDIT: I forgot to mention that in your DetailsScreen set the Form Items property ( I assume you are using a form?) to vRecord.

     

    The LookUp option that @WarrenBelz has set out should also work.

     

    Really though, we are both only guessing at your end needs because we can't see the data you are reshaping. For example, you may need to unravel your GroupBy using UnGroup along with a LookUp to get what you need?

  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @cycle4passion ,

    I cannot test this presently, but if your ID is still in the data group something like

    Lookup(
     Hospital,
     ID=YourSubGalleryName.Selected.ID
    )

    or going a level higher

    Lookup(
     Hospital,
     ID=YourMainGalleryName.Selected.Items.ID
    )

    if you have another unique identifier in your data, you could try this instead of ID.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @cycle4passion ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    cycle4passion Profile Picture
    94 on at

    There were some issues with the forum not showing replies for awhile. @WarrenBelz 

     

    Main Screen:

     

    Navigate(DetailScreen,ScreenTransition.UnCover, {varHospitalMRN: ThisItem.HospitalMRN}) 

     

     

     
    Detail Screen:

     

    DetailForm1.Item set to LookUp(Census, HospitalMRN = varHospitalMRN)

     

  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @cycle4passion ,

    I am not a big fan of passing context variables between screens, so try this.

    Set(vMRN,ThisItem.HospitalMRN);
    Navigate(DetailScreen,ScreenTransition.UnCover)
     

    then the Item of the form

    LookUp(
     Census, 
     HospitalMRN = vMRN
    )

    Call the variable whatever you want - I just suggest a different name initially.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard