On single click on table row expression value should be get copy to clipboard
Application Type
Reactive

Hi Team,

I'm trying to copy a table row value to clipboard.

Requirement :

How can I get the above approach with the Table values like when I click on second row value as Black and grey headphones that value should be copied to the clipboard.


Similar solution :

I tried to copy the text which we enter into the Input widget by following process.

passing InputName as Input widget Id

used the above JavaScript code on onclick event of copy button.


Thanks in Advance

- Palle Vijay Bhaskar Reddy

TableCopytoClipboard.oml

Hi Vijay,

Please find the attached OML as per your requirements.

Thanks

Vinod

ClippedBoardSample.oml

Thank you for providing the solution, It works.

- Palle Vijay Bhaskar Reddy

Hi @Vijay Bhaskar Reddy Palle,

I would do the following:

1. Add an icon with a link in the columns you need to copy to the clipboard.

2. Add a screen action with an Input "String" and with the following JS:

3. The link in your icon should trigger the screen action created and in the input add the field of the column.


Note: Instead of calling this JS every time the screen action runs, you can just declare a function and then just call that function with the input.


Let me know if this helps,

Pedro




Thank you for sharing the solution, I tried and it works.

- Palle Vijay Bhaskar Reddy

Glad it works! I would suggest to add the icon, because if you put the link in the expression the user has no idea that clicking the expression does something.

Hi Vijay,

Please find the attached OML as per your requirements.

Thanks

Vinod

ClippedBoardSample.oml

Thank you for providing the solution, It works.

- Palle Vijay Bhaskar Reddy

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.