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 / Unable to access selec...
Power Apps
Answered

Unable to access selected gallery item detail on next screen Text input control

(0) ShareShare
ReportReport
Posted on by 45

I have 2 screen app.

1. User select an item from gallery, clicks on button to navigate on screen 2

2. on screen 2, in text label I want to show selected item detail. and aslo have a gallery control which is working fine.

 

Gallery 1 has distinct filter : Distinct(GalVar, Resource_Group_Name)

Gallery 2 has filter to show selected item detail on screen 2 : Filter(GalVar, Resource_Group_Name = Gallery2_3.Selected.Value)

 

on screen 2 text labels are not showing selected items information. I have tried using Gallery1.selected.column_name but its not working.

screen1.PNG
screen2.PNG
Categories:
  • NZ0090 Profile Picture
    317 on at

    Hi @zainab1 ,

     

    Can you share the error message?

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @zainab1 ,

     

    It seems you have several text labels connected to Gallery1. However, Gallery1 only includes unique Resource_Group_Name column values from GalVar. If you need item details, the items of Gallery1 need to be GalVar as well. 

     

    Best regards,

  • zainab1 Profile Picture
    45 on at

    Now I have error in Patch function, when I am patching values from both gallery items.

     

    My patch function is not patching all the items(from gallery2). It only saves Gallery3 column values in sahrepoint list

     

    I have this function on my save response button. The collered ones are from Gallery2 values and normal ones are from Gallery3.

     

    ClearCollect(
    col_names,
    Filter(
    Gallery3.AllItems,
    Toggle1.Value = true
    )
    );
    ForAll(
    col_names,
    Patch(
    exportanswers,
    Defaults(exportanswers),
    {
    Subscription_Name: subval.Text,
    Azure_Subscription_ID: IDval.Text,
    Resource_Group_Name: RGval.Text,
    Disk_Size_Gb: Value(exDisksize.Text),
    Disk_Name: name.Text,
    SHS_Technical_Responsible_1: rep1.Text,
    SHS_Technical_Responsible_2: rep2.Text,
    SHS_Application_Owner: ApOwner.Text,
    Cost: Value(DCost.Text),
    Delete_disk: Toggle1_2,
    Comment: comm.Text
    }
    )
    );
    Notify(
    "Your response has been saved!",
    NotificationType.Success,
    0
    )

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @zainab1 ,

     

    What is the Gallery2? What's the Items? I didn't see anything in the Patch function related to Gallery2.

     

    Best regards,

  • zainab1 Profile Picture
    45 on at

    The collered ones are from Gallery2 values and normal ones are from Gallery3.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @zainab1 ,

     

    Then where is the button?

     

    BR,

  • zainab1 Profile Picture
    45 on at

    The whole function is onSelect property of the button. when I click button only item values of gallery3 are being patched in sharepoint list and galeery2 item values are missing in list.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @zainab1 ,

     

    I know the function is OnSelect of the button, however, if the button is out of Gallery2, you cannot get values from each Gallery2 item in the Patch function at all. Gallery2 contains a table data, so is Gallery3, there is no way to patch each Gallery3 item with entire Gallery2 items to data source.

     

    BR,

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard