Filter RTable using custom script

custom-action

#1

Hi,

I’m using the following script to loop the HTML table(250 rows) and filter the data. Is there any other alternative is available to filter the table data to improve the performance?

@CustomScriptAction(
input = [‘temp_table’,‘srt_findtxt’,‘srt_table’]
)

def customScript() {
for(def row=RNumber.of(1);row<=temp_table.getNumberOfRows();row++){
if(temp_table.get(row,2) != ‘Pending’ && temp_table.get(row,3).contains(srt_findtxt)){
srt_table.addRow(temp_table.get(row,1), temp_table.get(row,2), temp_table.get(row,3))
}
}
}


#2

@anandhan Does this custom action work slowly?


#3

Not sure, but I tried to tune the code


#4