OK Button after execution of Run Button

I have a run button with the following code:
ON RECORD

$arr=[i];
[total_chked][$arr]={Discrepancy.ID_Discrepancy};
[i]++;

ONFINISH

$record = implode(’,’,[total_chked]);
sc_redir(test_2,print=$record,’_modal’);

With this option works ok but on grid page appears a OK button

With:
$record = implode(’,’,[total_chked]);
sc_redir(test_2,print=$record,’_modal’);
sc_exit(sel);

The redir does not work, someone can help me

Hello,
I have the same problem. @penguinale do you solve it ?
Thanks
Guy