Use Data grid 2 data in js action

0
Greetings,   I need the filtered data from DG2 in javascript to perform same actions mentioned in https://community.mendix.com/link/space/other/questions/104671 , But this method is not working for DG2 and error comes as An error occurred while executing an action of Documents.SelectCompanies_Overview.actionButton2: Cannot read properties of undefined (reading '_datasource') Nanoflow stack:  "Call JavaScript Action: Documents.JavaScript_action" in nanoflow "Documents.Test_nanoflow" Error: An error occurred while executing an action of Documents.SelectCompanies_Overview.actionButton2: Cannot read properties of undefined (reading '_datasource')   went through client API docs but no luck so far. can I know any alternate approach, Thanks. 
asked
0 answers