Set the initial record in a Grid

Hello…
In a grid, in each record, i have a code form with a submit button.
Work fine, but i need return to originar register after press submit button
Some know the code necessary to make this?
Thanks!!!

Hello.
Do you open a form or control application? Opens in a modal window? Is there something to update in the grid record when the form closes?
If you just want to close the form in modal, try something like this after saving the record:
sc_ajax_javascript(‘parent.tb_remove’, array());
I recommend using sc_commit_trans() to make sure that the data was actually written to the database.

If the grid needs to be updated, you can try this after saving the record:
//Updates the grid that called the modal
sc_ajax_javascript(‘parent.nm_gp_submit_ajax’,array(‘equal’, ‘reload’));
//Close the active modal
sc_ajax_javascript(‘parent.tb_remove’, array());

[Sorry for google translate, I’m in Brazil]

Hola
Muchas gracias por la data!!!
Esta tarde pruebo!
Nos vemos!!!

Hola…
Funcionó! Muchas gracias!!!