cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

With ACL, How to get multiple rows selected from an XUI table control

dgopois
12-Amethyst

With ACL, How to get multiple rows selected from an XUI table control

Hello,

The function "dlgitem_get_table_selection" returns the selected row when the selection type of the table control is row selection,

But if multiple rows are selected, how to get the rows selected ?

David

1 ACCEPTED SOLUTION

Accepted Solutions

I have found a solution, I have used the "dlgitem_get_select_array" function.

 

Sample code:

local selArr[];
dlgitem_get_select_array(win, 'tablecontrol', selArr)
local arrValues[];
if (count(selArr)>0) {
for (i in selArr) {
local row = selArr[i];
arrValues[i] = dlgitem_get_table_cell_at(win, 'tablecontrol', row,1); #get the content of the first cell
}
}

View solution in original post

1 REPLY 1

I have found a solution, I have used the "dlgitem_get_select_array" function.

 

Sample code:

local selArr[];
dlgitem_get_select_array(win, 'tablecontrol', selArr)
local arrValues[];
if (count(selArr)>0) {
for (i in selArr) {
local row = selArr[i];
arrValues[i] = dlgitem_get_table_cell_at(win, 'tablecontrol', row,1); #get the content of the first cell
}
}

Top Tags