Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

AddColumns() won't allow ModernTable.Selected Control to work on Forms

(1) ShareShare
ReportReport
Posted on by 21
Hello,
 
I added a new column for a Date to a modern table, because the date format is not allowed like this:
AddColumns(
    Project,
    Date,
    Text(
        Zuschalttermin,
        "dd/mm/yyyy"
    )
  )
and this adds an error to a ModernForm Control because Item doesn't recognize the ModernTable.Selected anymore.  Does somebody have had a similar problem and is there any solution?

Thank you and Kind regards!
Categories:
  • Verified answer
    timl Profile Picture
    34,963 Super User 2025 Season 1 on at
    AddColumns() won't allow ModernTable.Selected Control to work on Forms
    Hi aqrj 
     
    The solution to this would be to modify the Item property of your ModernForm control so that it looks up the record based on the unique identifier of the record (for example, ID)
     
    The syntax would look like this:
    LookUp(Project,
           ID = ModernTable.Selected.ID
    )
     
  • Suggested answer
    mmbr1606 Profile Picture
    12,121 Super User 2025 Season 1 on at
    AddColumns() won't allow ModernTable.Selected Control to work on Forms
    hey
     
    modern controls are still in preview and not really there to use in productive apps.
    to all of the issues with modern controls there is not really a solution
     
    try to do the same with classic ones.
     
    cheers if it helped please mark as verified answer

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,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,017 Most Valuable Professional

Leaderboard