Code that may help you with Button Run

When you mark a record to execute the button Run, and you want to navigate between the pages, you lose the marked records and you have to mark again, this is because of security.

This code helps you to maintain the records marked even if you navigate between the pages of your grid app:

Put this code in the event ‘onFooter’:
You must enable the Footer in Layout

?>
<script>
len_check = document.FBtn_Run.elements.length;
for (i = 0; i < len_check; i++)
{
tst_obj = “NM_ck_grid” + “[]”;
if (document.FBtn_Run.elements[ i].name == tst_obj)
{
document.FBtn_Run.elements[ i].checked = true;
}
}
</script>
<?php

Regards.

Re: Code that may help you with Button Run

sir how to get row of datagrid form with javascript , i have tried with this sintax but fail
var id=document,F1.id_name,value;
alert(id);

i create field label and code on loadrecord like this:
{id}="<input type=“button” value=“teste” name=“teste” onclick=“tes()”;">";

its work but when clik button dispaly null

regards
fauzia

Re: Code that may help you with Button Run

The above solution is not working.
Does anybody have solution for this?