Hello. Thank you for your help.
This is my problem: I have a Javascript Button with this code
var caal = [wcaal];
enable(caal);
enable_prom(caal);
nm_atualiza(‘alterar’);
Enable, and enable_prom are javascript routines.
But now I need to update an other table, different from the application’s one. Something like this, with php code:
[I]// Check for record
$check_sql = “SELECT cerr1”
. " FROM materias"
. " WHERE ord = ‘" . [glo_ord] . "’";
sc_lookup(rs, $check_sql);
if (isset({rs[0][0]})) // Row found
{
$cerrado = {rs[0][0]};
}
else // No row found
{
// {other_field} = ‘’;
}
//******[/I]
How can I do that? Can I change to an ajax buttom? But how can I call the nm_atualiza(‘alterar’) from an ajax Button ?
Anybody can open my mind to find a way?
Thank you
Prof. Sergio Rassino