Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Power Apps nested Gallery, Issue selecting data(SharePoint List) in childGallery dependent of parentGallery

(0) ShareShare
ReportReport
Posted on by 60

Hi,

 

I want to create a table to find/display/edit the content of a SharePoint List. The table consists of 2 nested Gallery, parent Gallery is the header and the child Gallery displays the data of the table.

 

I have Issues selecting a column in the SharePoint List (depending on the value of the parentGallery(header) Label) and feeding it in the Items of childGallery, childComboBox and parentComBox.

 

DonLimpio_1-1644862433517.png

DonLimpio_0-1644861814129.png

 

 

-The parent Gallery is composed of a ComboBox and a Button(consider it's a Label) displaying the column name.

DataSource for the parent Gallery is a Collection created OnStart of the App. It maps the column of the SharePoint List that I want to display and contains other info for formatting the columns, control behaviour, etc. The Items for the ComboBox come from the SharePoint List corresponding column.

 

-The child Gallery is composed of ComboBox in view mode.  DataSource of the child Gallery is the SharePoint List filtered with the selection of the ComboBox in the parent Gallery. 

 

What I have tried to filter the Items in childGallery, childComboBox and parentComBox: 

  • parent Gallery: ComboBox.Items issues
    • parentGallery.Items =  headerCollection [OK]
      • parentComboBox.Items = ShowColums(SP_List, ThisItem.HeaderLabel) [ERROR]
      • parentComboBox.Items = childGallery.AllItems [ERROR]
  • child Gallery: childGallery.Items & ComboBox.Items issues
    • childGallery.Items = SP_List [OK, but it's going no were]
      • childComboBox.Items =ShowColums(ThisItems, Text(parentLabel.ThisItem.Text)) [ERROR]
    • childGallery.Items = ShowColums(SP_List, ThisItem.HeaderLabel) [ERROR]
      • childComboBox.Items = ShowColums(SP_List, ThisItem.HeaderLabel) [ERROR]

DonLimpio_2-1644866811659.png

 

How can I select a column in a Collection(ThisItem, galleryControl.AllItems) and/or SharePoint List from galleryControl.ThisItem."txt value" and feed it in the Items for a Gallery and ComboBox?

Or is there another way to achieve the behaviour I'm looking for?

 

Thanks,

 

  • alde_zaw Profile Picture
    13 on at
    Re: Power Apps nested Gallery, Issue selecting data(SharePoint List) in childGallery dependent of parentGallery

    I could sort out this issue creating a gallery in a gallery, but I have next step issue not being able to link with selected data in another form or gallery. As you may see in the picture, the green pane would be a form that shows the record of selected item from the menu on orange pane.

    Anyone who knows how to solve this, please help. My issue post >> Nested Gallery and SP List Connection  

     

    Thanksss ❤️

     

    Screenshot 2022-08-26 at 08.31.58.png

  • sajidakram Profile Picture
    104 on at
    Re: Power Apps nested Gallery, Issue selecting data(SharePoint List) in childGallery dependent of parentGallery

    First

  • DonLimpio Profile Picture
    60 on at
    Re: Power Apps nested Gallery, Issue selecting data(SharePoint List) in childGallery dependent of parentGallery

    @PowerRanger I inserted a new ComboBox and that fixed my issue. I think I initially copied the ComboBox from a Form and they were not behaving like standard one?

     

    I don't really understand the logic/general concept behind PowerApps, It seems like every situation has an exception or a unique way of being treated. I have the feeling my learning curve is pretty linear as I don't find the way to leverage what I already know and apply it to new concepts.

    Is it normal?

    Do you have good resources you recommend (apart from Microsoft doc and forum) to help me figure out how to work with PowerApps and how the app creation should be approached? 

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at
    Re: Power Apps nested Gallery, Issue selecting data(SharePoint List) in childGallery dependent of parentGallery

    @DonLimpio please have a look at the edit fields command in the property pane on the right side when selecting your combobox. Here you can define what fields should be shown. It could be that powerapps has selected a column with no values.

     

    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.

  • DonLimpio Profile Picture
    60 on at
    Re: Power Apps nested Gallery, Issue selecting data(SharePoint List) in childGallery dependent of parentGallery

    @PowerRanger referencing column dynamically would be a more elegant solution but I can work around that using a switch for the childrenGallery.Items .

    DonLimpio_0-1644879799501.png

    I still have issues, with the parentComboBox and childenComboBox I can't figure out how to have them display the SP_List value of the corresponding column. 

    I used the same switch (see childrenGallery.Items) for the parentComboBox.Items

    DonLimpio_1-1644880619016.pngJob ComboBox show 4/5 of the available choices

    DonLimpio_2-1644880645814.pngID and ParentID ComboBox show 4/4 of the SP_List line but they are empty.

    I tried childrenComboBox.Items = ThisItems

    I also tried to hard code it childrenComboBox.Items = Jobs.ID

    DonLimpio_3-1644881003723.pngComboBox's are empty in both situation

     

    Is there a reason why the ComboBox's are not displaying the value correctly what can be done to fix this?

     

    Thanks for your answer

     

     

     

     

     

  • Verified answer
    PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at
    Re: Power Apps nested Gallery, Issue selecting data(SharePoint List) in childGallery dependent of parentGallery

    @DonLimpio If I get it right you do want to reference a column dynamically. That's not possible in powerapps. Sorry 😔

     

    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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard