Hi,
I’m trying to setup an “Edit” action on a simple Table.
The issue is that if I click “Edit” on the Table I don’t see how to get any reference to the row where the button is clicked.
If you look at the attached screenshot, row 1 is selected, but if then I click on “Edit” on row 2, the selectedRow state is still set to row 1.
How could I get the correct row reference for the clicked action?
Thanks
1 Like
I’m facing the exact same issue
What is weird is that things work in the expected way when using a menu and adding my action as a subitem
but that is not very convenient
Thanks for your help
Please share your project id
Thanks
My project Id is sUydMPyjb6gnSR55KC4qQf
Not sure what you can do with it as I am using local components, not yet published, and I am still in the evaluation phase trying to understand if Plasmic is a good fit
I now have an even weirder behavior with different results with the exact same page between “interactive” mode and “Preview” mode
UPDATE: found the issue, I was rendering the form and using a code snippet for the initial value of a field, instead of hiding it and rendering it only the modal opening
THanks a lot
Hello @christophe_noel, Thank you for letting us know! I’m glad to hear you were able to resolve the issue on your own.
If you have further questions, please don’t hesitate to reach out.
Hi Christophe,
I’m currently trying to get this working as well, I have a hidden modal but can’t get clicked row information to pass into it. could you (or anyone else) point out what I’m missing?

$state.table.selectedRows[0][“First Name”]
Hey @trevor_ciminelli, can you specify your project ID and component that his is happening?
Sure my project ID is cPjwzWycfswqWeX5wehPro and component is the table on the activity page.
@trevor_ciminelli,
After taking a look into your project, I couldn’t find any issues. The data is being passed correctly to the modal, your selected row has the “firstName” equal to 3.
Hi Icaro,
Reading my post again I did not explain it very well.
If a have a row clicked the details work correctly
Then other rows when clicking on details displays the info only from the clicked row. What I’m after is the details button to show the first name from the row details was clicked regardless of what row is selected.
