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 / 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,499 Super User 2025 Season 2 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

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