How to get Datagrid2 selected objects via Javascript

0
Hello, I need to create a JavaScript action to get the list of selected objects in a Datagrid2. Do you have an idea of how to do it? Thanks in advance
asked
3 answers
0

Hi Vincent,

I'm curious to your use-case, but I would rather use a nanoflow with the selected items as list input. Isn't that an option?

answered
0

Here is my use case:

I have a list of documents: when the user click on a row, a nanoflow is trigered:

 

image.png

 

the issue is when the user click again on the row and un-select it, the nanoflow isn't triggered because the selected Document is empty...

So I need to remove the "Selected document" argument of the "DisplayDocument" nanoflow if I want to trigger the nanoflow on select and unselect actions...

That is why I need a java action to get selected Document in the nanoflow

answered
0

Hello Vincent,

Can you try on selection change event? i think it would serve your case "I want to trigger the nanoflow on select and unselect actions..."

answered