Getting number of Selected Rows in the g_list

MarkGlen
Kilo Contributor

We have just written our first UI List Action that will Close the Selected Rows in the incident.

However can i get a count of the number of rows that i'm about to update.

The Delete List Action always asks if you want to 'Delete 3 Rows', how can i do that with my update as there does nto appear to be a rowCount option on the g_list object?

Thanks,
Mark

1 REPLY 1

MarkGlen
Kilo Contributor

Never mind got it, did the below to get the number of rows


var v = g_list.getChecked();
var a = new Array();
a = v.split(",");
alert(a.length);