JavaScript Action: How do I know which button triggert the action?

0
Hi All, I have several buttons in a datagrid that all trigger the same JavaScript action. But how do I know if the first or the second or the third button was clicked? I dont want to change any data, just do some CSS stuff for the current row. Any Ideas ? -JW
asked
2 answers
0

It could be done, but I’m still wondering why you would do it?

If you would like to reuse the code I would create a SUB_Nanoflow that is reading the string from the variable you created under the specific button. 

Bear in mind that for Mendix to have stable CSS element selectors you need also to do additional things (like setting the Common Class in the Apperance section of the button.

answered
0

You can’t and I believe it was designed this way on purpose. If this is a row in a list view, you can change an attribute on that object which drives conditional styling.

answered