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 looks blank ev...
Power Apps
Unanswered

Gallery looks blank even though I've added some controls in there

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have a gallery with Items property: colNewRow

inside this gallery I've added some controls: 1 textbox and 2 combo-boxes. The first combobox has items property: Office365Users.SearchUser({searchTerm:'cbo2/3SignerDocuManagement_2'.SearchText})

and the second has items property: Office365Users.SearchUser({searchTerm:'cbo2/3BackupDocuManagement_2'.SearchText})

I have also an "add icon" added into this gallery with onselect property: Select(Parent);
Patch(
colNewRow,
ThisItem,{
SignatureLevel: ThisItem.SignatureLevel,
Signer: ThisItem.Signer,
Backup: ThisItem.Backup
}
);
Collect(
colNewRow,
{
SignatureLevel: 0,
Signer: Blank(),
Backup: Blank()
}
)

App in edit mode:

yeahILuvPP_0-1600528327458.png

app in play mode:

yeahILuvPP_1-1600528351689.png

 

Anybody knows why the gallery isn't showing? Or how I can make it show the empty controls ? The purpose is: the controls are shown when the screen is visible, people fill in the first line and must be able to click the add sign to create a new line in the gallery.

Thanks!

Categories:
I have the same question (0)
  • GarethPrisk Profile Picture
    2,828 on at

    What is likely happening is the gallery does not have any records, and is therefore not showing anything when played. Can you confirm the function for the Gallery items has at least 1 row in the Studio, before you play the app?

     

    Galleries will show controls in Studio-Edit, because you need to know how the template row is setup.

    Galleries will only show controls in Studio-Play, or regular app plays, if there is at least 1 record in the table used for the Gallery.

     

    You may need to add a "blank" row for the initial use of the Gallery. This row can then be updated when the user updates the fields. Alternatively, put controls outside of the Gallery and then patch the Gallery's table when they have been filled, and use the Gallery to display/update records only.

  • Pstork1 Profile Picture
    68,725 Most Valuable Professional on at

    As @GarethPrisk said, I suspect its because the collections used are empty.  Do you have the searchtext set to something or is it blank?   If its blank then you aren't finding anything and your collections are null.  The controls show in the editor because you need to be able to see them in the studio to edit the properties or move them around.  But when you run the app they will only show if they have data in them.

  • Community Power Platform Member Profile Picture
    on at

    Hi

     

    Thanks for your response. The collection must be empty until somebody enters information in the gallery controls. But the controls are not visible when the collection is empty, so people don't have the chance enter info.. see my struggle?

  • Pstork1 Profile Picture
    68,725 Most Valuable Professional on at

    Where is the control for entering the search text?  That should be outside the gallery.  I believe its because the search text is blank that you are getting no results.

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard