Skip to main content

Notifications

Community site session details

Community site session details

Session Id : KC4J74e/3HqQT5LHnZpgRe
Power Apps - Building Power Apps
Unanswered

Gallery not showing the Collection table

Like (1) ShareShare
ReportReport
Posted on 5 Jul 2024 03:18:38 by 117

Hello Everyone!

 

Currently, I am building the company expense claim app where I have 2 screens. Screen 1 is for just the basic information and screen 2 is the detailed information. On screen 2 there a save button where i want the user to click on the button first then it will store in collection table so that they can view or edit before clicking submit to submit those requests to the SharePoint list. The code for the onselect property of the button is like this:

Collect(Information, {CategoryGroup: DataCardValue69.Selected.Value,
        CategoryName: DataCardValue70.Selected.Value,
        InvoiceDate: DataCardValue74.SelectedDate,
        InvoiceName: DataCardValue57.Text,
        TypeOfClaim: DataCardValue78.Selected.Value,
        Amount: DataCardValue45.Text,
        Description: DataCardValue50.Text,
        GLLocalAccount: DataCardValue53.Text,
        'BU/GLAccount': DataCardValue46.Text,
        TotalKM: DataCardValue64.Text,
        Vehicle: DataCardValue79.Selected.Value,
        RateOfKM: DataCardValue59.Text,
        AllowanceType: DataCardValue68.Selected.Value,
        Country: DataCardValue49.Text,
        GoogleMapURL: DataCardValue54.Text,
        StandbyFrom: DataCardValue75.SelectedDate,
        StandbyTo: DataCardValue76.SelectedDate,
        StandbyInHours: DataCardValue61.Text,
        From: DataCardValue72.SelectedDate,
        To: DataCardValue77.SelectedDate,
        RateOfAllowance: DataCardValue58.Text,
        TotalStandbyAllowance: DataCardValue65.Text,
        InternalPersonInvolved: DataCardValue73.Selected.DisplayName,
        ExternalPersonInvolved: DataCardValue71.Selected.DisplayName,
        CreatedBy: User().Email})
 
Seth18_0-1720149245650.png

and for the gallery on the left i want it to show the user request queue when they clicked save button above. But somehow it not showing the data on the right when i tested submit it just said no item to display. How can i make sure that when the user click on their request on the left when they saved it will also appear the collection table? How can i make the gallery to show that information? And how can i also make it editable for user before they submit the form to the SharePoint as well? I’ve been struggling on this. 

  • Seth18 Profile Picture
    117 on 05 Jul 2024 at 15:18:11
    Re: Gallery not showing the Collection table

    This is what is in the datasource property. It all the sharepoint that i will be working on. 

    Seth18_0-1720192635766.png

     

  • Michael E. Gernaey Profile Picture
    41,193 Super User 2025 Season 1 on 05 Jul 2024 at 13:34:51
    Re: Gallery not showing the Collection table

    What is in the DataSource property show that

  • Seth18 Profile Picture
    117 on 05 Jul 2024 at 12:41:46
    Re: Gallery not showing the Collection table

    Hi @FLMike 

    It seems we might have a miscommunication somewhere let restart. Based on my screenshot above what i mean is that in the item property that you have mentioned to put Gallery4.Selected i did do the same as that but it error as the image below. 

    Seth18_0-1720183288622.png

     

  • Michael E. Gernaey Profile Picture
    41,193 Super User 2025 Season 1 on 05 Jul 2024 at 05:27:33
    Re: Gallery not showing the Collection table

    I don't know what you are doing. I said just put Gallery4.Selected in the Item property not the datasource property.

     

    Oye.. sorry man I gotta hit the bed you are leaving out so much information and i cant seem to get it from you.

     

    I will say it again. You must set the DataSource, of the Form, to be something that has the data in it, that you want.

     

    Then the item property will the Query OR Record that you want to display.

     

    Do you want to Display the Data thats in the Collection? If so, then in the DataSource, put the Collection name and put the Gallery4.Selected in the ITem property and now you will see it.


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Seth18 Profile Picture
    117 on 05 Jul 2024 at 05:20:08
    Re: Gallery not showing the Collection table

    Hi @FLMike 

     

    Thank you so much for your clarification on this. As followed, it still require me for a datasource while the datasource would just be from the column of the form.

    Seth18_0-1720156712800.png

    Seth18_1-1720156775642.png

     

     

  • Michael E. Gernaey Profile Picture
    41,193 Super User 2025 Season 1 on 05 Jul 2024 at 05:10:15
    Re: Gallery not showing the Collection table

    Hi @Seth18 

     

    That is become your Item property is blank

     

    for a Test set it to

    GalleryName.Selected, where GalleryName is the name of your gallery, and make sure you select a row in the Gallery Don't click the arrow you have etc, just click the row.

     

    As long as the Form has the Same datasource as the Gallery, it will load that data in it.

     

    Thats why you dont see it, you haven't assigned any data to it.


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Seth18 Profile Picture
    117 on 05 Jul 2024 at 05:08:01
    Re: Gallery not showing the Collection table

    Hi @FLMike 

    Below is the item property of the gallery in which show the collection

    Seth18_1-1720155948832.png

    while for the form as below does not have any data on it

    Seth18_2-1720156026477.png

    And yes the gallery is setup to have multiple rows as long as the user click on the save button as there are different type of claims in which user can claim. 

  • Michael E. Gernaey Profile Picture
    41,193 Super User 2025 Season 1 on 05 Jul 2024 at 05:00:53
    Re: Gallery not showing the Collection table

    Hi @Seth18 

     

    Please provide the other questions, show me the Items Property of the Gallery itself and the Form.

     

    If the Gallery is selected (which I don't see anything selected), so I cannot tell what you selected. I am guessing those Arrows you have on each Row, is supposed to make it display that record on the Form???

     

    Validate the code in the Arrow

    Also, on the Form, please Check the DataSource and the Item property. Because thats the only things left to look at.

     

    Please copy an image of the datasource and Item property please of the form. thanks

     

    I see that you have 2 rows in the Gallery, not 1. Is the gallery setup to have multiple rows? If so I would expect to see them all, I see none.

  • Seth18 Profile Picture
    117 on 05 Jul 2024 at 04:52:04
    Re: Gallery not showing the Collection table

    okay my bad on this but on the problem as above how can we fix it or make it display? Since the Gallery Items property are populated with the proper Collection already yet it not showing! 

  • Michael E. Gernaey Profile Picture
    41,193 Super User 2025 Season 1 on 05 Jul 2024 at 04:48:20
    Re: Gallery not showing the Collection table

    The steps I gave you are not for Desktop its for web.. why do you think its on desktop?

     

    Please go do the steps and come back with the answers.

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