I have a form, and do some code when I call a PHP button on toolbar.
In this method, I do some task, and have to redirect to the new document created, all is ok, but before redir, I need to put a value on a field and save.
What is the way to go?
P.S.: Basically is a Quote->Bill generate. When you are on a quote, you can generate a bill, but before redir to the bill created, I need to put the new id to {billAssigned} and then redir.
{facturado} = $idDocumentoGenerado;
sc_redir("form_documentocomercial", id=$idDocumentoGenerado; generarReferencia=true);
Obviously, this works like a charm, but without saving {facturado} field.
