web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Experimental Features
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!

I have the same question (0)
  • WarrenBelz Profile Picture
    151,895 Most Valuable Professional on at
    Unexpected Behavior in Table Modern Control
    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
    Unexpected Behavior in Table Modern Control
    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
    Unexpected Behavior in Table Modern Control
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 381 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 225

Last 30 days Overall leaderboard

Featured topics