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 / No items to display
Power Apps
Answered

No items to display

(0) ShareShare
ReportReport
Posted on by 8

I have created an app from Excel with a home screen gallery view. When I create a view form or edit form I cannot get any record to display. I know I have to set the Item property but I cannot seem to get the right syntax. Any help???Home Screen.JPGNoItemsToDisplay.JPGEventDetails.JPG

Categories:
I have the same question (0)
  • Verified answer
    SpencerLynn Profile Picture
    Microsoft Employee on at

    Hi!
     
    As you mentioned, it appears in the third screen shot you provided, Item property is not set. The schema for Item should be the same as the DataSource property (except the DataSource property is a table of that schema).
     
    For example, you should be able to set Item to "First(Employees_DataSheet)" and have things render. If you are using that same data source to connect to a gallery to view each record in the data source, you can view the selected record in the gallery in the form control by setting the form's Item property to "Gallery.Selected".
     
    I hope that helps. If you have any follow up question, do ask!
     
    Thanks,
    Spencer

  • rms359 Profile Picture
    8 on at

    Hi Spencer,

     

    I set the item to First(Employee_Datasheet) in the form view but it shows the first record only and not the selected record from the gallery. Is there a way to set the selected record to show in the form view?

  • Verified answer
    SpencerLynn Profile Picture
    Microsoft Employee on at

    The gallery control has an output property `Selected`. `<GalleryControl>.Selected` should work, assuming the gallery is bound to the same data source as the form control.

  • rms359 Profile Picture
    8 on at

    Hi SpencerLynn,

     

    I tried Gallery.Selected and received an error of "Invalid name". Any ideas??

     

    Screen shot

  • SpencerLynn Profile Picture
    Microsoft Employee on at

    Hi rms359,

     

    I could not view your screen shot. I think it is a link to your sharepoint site, which I do not have access.

     

    When you type the name of the gallery control into the Item property of the form and type ".", does it prompt you with any suggestions? Double check you have the name of the control correct.

     

    Thanks,

    Spencer

  • genomma Profile Picture
    12 on at

     

    Hello rms359, try changing a property of the form: defualtMode = FormMode.Edit I changed it to FormMode.New in this way and the application behaves as expected.

     

  • ppei Profile Picture
    256 on at

    This solved my problem. Thank you!

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard