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 / Unexpected Behavior in...
Power Apps
Answered

Unexpected Behavior in Table Modern Control

(0) ShareShare
ReportReport
Posted on by 9

Hi everyone,

I'm encountering an issue with the OnSelect property on a table control in my PowerApps app, and I'd appreciate any help or insights.

I have an OnSelect action on a modern table control that sets a variable and then navigates to another screen.

This has worked fine until recently. Now, when a user selects an item in the table and navigates to the new screen, if they go back to the original screen with the table, they are immediately redirected to the other screen again.

It seems like the table's OnSelect is automatically triggering when they return to the screen.

Has anyone else experienced this, or does anyone know what might be causing it? 

Thanks in advance for any help!

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,755 Most Valuable Professional on at
    Hi  luca 
    A lot of Modern controls experience unexpected behaviour and most are still in preview. I have not turned them on yet for any production apps. If you want reliability and consistency presently, I suggest you revert to Classic controls.
  • vera Profile Picture
    2 on at
    Hello Luca,

    I have same issue as well. It seems that the problem is with the OnSelect action on the modern table. As a temporary solution, I have added a button to navigate to another screen, which has resolved the issue for now.
  • Verified answer
    AB_CHRT Profile Picture
    23 on at
    I think I found a fix/workaround!
    From what I can tell, it all has to do with refreshing the table, so this is my code....
     
    <CODE>
    //TableLost.Onselect    (Working)
    Set(varItem, TableLost.Selected);
    Refresh(nfLCRLog);
    Reset(TextInputCanvas1);
    Set(varRequestSubmittedButton, false);
    If(varAdmin, EditForm(ApprovalForm1), ViewForm(ApprovalForm1));
    Navigate(FormScreen, ScreenTransition.Fade)
    </CODE>
     
    Refreshing the table before navigation clears the TableLost.Selected value. Resetting any search input textbox before navigation prevents old values from remaining on return.
     
    <CODE>
    //FormScreen.ReturnButton.OnSelect   (Working)
    ResetForm(ApprovalForm1); Navigate(HomeScreen, ScreenTransition.Fade)
    </CODE>
     
    The return button doesn't need to call refresh because we did that before we left. In addition, this clears up any "double flashing" of the table due to refreshing a table that is in view. As a note.... I'm using Named Formulas to hold the table name, so that may be a factor.
     
    Sorry so sloppy, I couldn't get the code insert to work so I figured this was the next safest bet.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 482 Most Valuable Professional

#2
11manish Profile Picture

11manish 459

#3
Haque Profile Picture

Haque 331

Last 30 days Overall leaderboard