Pagina 1 di 1

Controllare se un' operazione è in Inserimento

Inviato: 01 ago 2023, 09:20
da antonio.stampete
Salve a tutti.
Come posso verificare se l'operazione in corso è un inserimento ?
C'è una macro specifica ?
Prima operavo un controllo del tipo
if (id == ' ') {

}

Antonio Stampete

Re: Controllare se un' operazione è in Inserimento

Inviato: 01 ago 2023, 16:00
da rino
poi controllare il bottone (vedi manuale)
Buttons
sc_btn_copy
This macro returns “true” when the “copy” button is selected in a form.
sc_btn_delete
This macro returns “true” when the “Delete” button is selected in a form.
sc_btn_display (“Button_Name”,“on/off”)
This macro activate toolbars buttons on the application in execution time.
sc_btn_insert
This macro returns “true” when the “Add” button is selected in a form.
sc_btn_new
This macro returns “true” when the “Add New” button is selected in a form.
sc_btn_update
This macro returns “true” when the “Save” button is selected in a form.

oppure :
in evento onvalidate event
if (CURRENT_MODE = ‘INSERT’) then …
elseif (CURRENT_MODE = ‘EDIT’) then …

Re: Controllare se un' operazione è in Inserimento

Inviato: 02 ago 2023, 09:27
da antonio.stampete
Grazie Rino.
Buon Lavoro !
;)