appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug]: Unable to use currentRow within a menu item of a Menu Button of a Table widget

Open narhzih opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

I have a table with a column which is a menu button. I want to use the "currentRow" variable in that menu button's actions but I'm unable to use it.

Steps To Reproduce

  1. Drag a table to the canvas.
  2. Add a column with a Menu Button
  3. Add a menu Item to the button, and try to use the currentRow property

Public Sample App

No response

Environment

Production

Issue video log

No response

Version

1.9.30

narhzih avatar Aug 04 '23 12:08 narhzih

in my case I tried to write currentRow.id.startsWith() and it is not recognized.

justinzyw avatar May 11 '24 09:05 justinzyw

Also just found this problem. Is there a work around or ETA when this might be fixed? Thanks

tazmaniax avatar Jun 20 '24 08:06 tazmaniax

Hi @tazmaniax @justinzyw @narhzih Is this issue still exists? Iam unable to reproduce the issue.

SaiCharanChetpelly31 avatar Jul 31 '24 07:07 SaiCharanChetpelly31

HI @Nikhil-Nandagopal @tazmaniax @justinzyw @narhzih Below is the attached video demonstrating the issue. Could you please confirm if this is valid or not? Can I pick this issue? 0d6af2f1-e3ad-4223-9be3-a2df5f202fa1.webm

SaiCharanChetpelly31 avatar Jul 31 '24 09:07 SaiCharanChetpelly31

yes. it is my problem

justinzyw avatar Jul 31 '24 10:07 justinzyw

yes. it is my problem

@justinzyw Did you checked the video in above comment? Could you please confirm if this is valid or not? Can I pick this issue?

SaiCharanChetpelly31 avatar Jul 31 '24 10:07 SaiCharanChetpelly31

yes. it is my problem

@justinzyw Did you checked the video in above comment? Could you please confirm if this is valid or not? Can I pick this issue?

checked the video. it shows exactly the problem. the currentrow is not available in Menu Button. as the result, I could not refer to the id of the current(where Menu Botton is used) row in my program, which is a problem.

justinzyw avatar Jul 31 '24 11:07 justinzyw

@SaiCharanChetpelly31 -https://zemoso.atlassian.net/browse/TNOSB-458 created ticket in Jira

daaliachhak17 avatar Jul 31 '24 11:07 daaliachhak17

@justinzyw I have made fix in Table widget. Im sharing screen recording, can you confirm if this is the fix you are looking for? a42b499a-83fd-49f3-9e2b-7d0f244abbe9.webm

Thank you.

SaiCharanChetpelly31 avatar Aug 01 '24 11:08 SaiCharanChetpelly31

@justinzyw I have made fix in Table widget. Im sharing screen recording, can you confirm if this is the fix you are looking for? a42b499a-83fd-49f3-9e2b-7d0f244abbe9.webm

Thank you.

yes. it looks good to me. thanks

justinzyw avatar Aug 01 '24 11:08 justinzyw

Hi @justinzyw @rahulbarwal @Nikhil-Nandagopal @tazmaniax @narhzih I raised pr fixing this issue. Please take this pr forward for review.

Thank you.

SaiCharanChetpelly31 avatar Aug 02 '24 12:08 SaiCharanChetpelly31