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 / Power Apps Modern Table
Power Apps
Suggested Answer

Power Apps Modern Table

(1) ShareShare
ReportReport
Posted on by 350
I'm using modern table in my power apps application. 
When I bring up my application for the first time in my browser the form come up empty.  
What I'd like to do instead is this. Have the form bring up the first record in my datasource.  
Categories:
I have the same question (1)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,969 Moderator on at
    Hi,
     
    I am not sure you have it working correctly.
     
    You said, you are using a Modern Table in your Subject, but then say the Form is empty.
     
    So you are confusing the question and provided no pictures so you have to explain alot more.
  • Suggested answer
    HawkOps Profile Picture
    2 on at
    Hi,
     
    It has been a minute since you posted this question, but I believe I understand your question. Are you using a modern table to populate a modern form, where the table acts kind of like a gallery?
     
    If so, I encountered the same issue and found a quasi-work around. I'll share below, since I haven't seen anyone else post a solution other than modern controls are terrible, don't use them. 😅
     
    This is my first post in this forum, so bear with me if I make any errors in formatting my response.
     
    Solution:
     
    If you have filters acting on your data source, this is the path that worked best for me:
     
    On the OnVisible property for the screen, I added a variable for the table's data:
     
    Set(varTable1, DataSource with filters);
      
    Then you can use this for the Items property in your table and to create a second variable (which you may already be using) called CurrentItem.

    In the OnVisble property for the screen, also add a context variable:
     
    UpdateContext({CurrentItem: First(varTable1)})
     
    and add this into the OnSelect for the Table:
     
    UpdateContext({ CurrentItem:Table1.Selected })
     
    and, finally, add this into the Item property for the Form:
     
    CurrentItem
     
    If you don't have filters on your solution, then you can skip most of these steps and just set your Item property for your form to:
     
    First( DataSource )
     
    This doesn't auto-select the first record (like you can in a gallery), but it ensures that the first record is populated when the screen loads.
     
    Quick Note: If the list is sorted, it won't update the order. So, there are drawbacks to this method. Otherwise, it's great to ensure the first record is visible when they view the page, especially given the limits with modern controls.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard