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 / Datatable OnSelect onl...
Power Apps
Unanswered

Datatable OnSelect only works on some columns

(0) ShareShare
ReportReport
Posted on by 56

I have a datatable with 5 columns,

which with the same formula in "OnSelect" event, like below :

 

Concurrent(
 Reset(Radio1),
 Reset(TextInput1);
)

 

 

And first 2 columns just work fine, but left 3 is not working,

seems like OnSelect event is not trigger at all.

capture.png

capture2.png

Categories:
I have the same question (0)
  • pontusofsweden Profile Picture
    255 on at

    Hi!

     

    with the formula you provided, you only Reset 2 controls...not 5. Or do you have another formula with the other 3?

     

    BR

    Pontus

  • eka24 Profile Picture
    20,923 on at
    Please can you show the full formula. Are you submitting record the the datasource or clear the form.
  • JesperHuang Profile Picture
    56 on at

    Hi @eka24 , @pontusofsweden ,

    i want to do an approval page,

    when user select row on data table, they can approve or reject item.

     

    and i need to reset the radio and textinput control when user select another row.

    So i set same formula to all 5 columns, no matter user click which column, i can reset the control.

     

    but only "ID、Title" worked, when i click on other 3 columns, it's not working.

    exp1.png

  • Verified answer
    WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @JesperHuang ,

    I am not sure why identical column types should act differently and your code seems valid, however are you simply wanting to reset these controls when the user selects an item? If so, put

    Reset(Radio1);
    Reset(TextInput1)

    on the OnSelect of the Gallery. You also don't need Concurrent  - that is more about speed of retrieving data from a data source.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • JesperHuang Profile Picture
    56 on at

    Hi @WarrenBelz ,

     

    Thanks for your help, i'v tried gallery before and it worked fine.

    but i want to use datatable this time, which more friendly to view data.

    if there is another way to reset input when change selected row would be great, thanks again!

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @JesperHuang ,

    I just did a test on a datasheet with both text and yes/no fields (10 of them) and all reset a radio control and a text box.

    Have a go at recreating the datasheet - there is definitely something wrong with yours.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • JesperHuang Profile Picture
    56 on at

    Hi @WarrenBelz ,

    I tried to recreated datatable again, and this time i didn't do any setting of column, just set the reset formula in "OnSelect" event.

    And seems if the column type is "View Selection", the "OnSelect" event won't be triggered, any idea?

     

    cap1.png

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @JesperHuang ,

    I must have a different version of PowerApps - mine looks like the below - what process did you take to get that display?

    DataType1.pngDataType2.png

  • JesperHuang Profile Picture
    56 on at

    Hi @WarrenBelz ,

    Based on your capture, seems you are using "Forms" control instead of "Data table" control ?

    cap2.png

     

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @JesperHuang ,

    I code everything manually, so I must admit I do not explore built-in menus a lot I and also have not set up a data table for a while, however I cannot get the menu you see by clicking on the test data table I inserted. Am I missing something?

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard