[SOLVED] ADD, SAVE and DELETE button

Hi,

Currently, I have 2 buttons above my form :

ADD, REFRESH

When I click on ADD, I have the ADD button again, then CANCEL and REFRESH.

I would like to have the SAVE, CANCEL, REFRESH button only. How to remove the ADD button (insert another record)?

Every time I want to save my recording, it adds a new one just after save the first.

Thank you

Hi,

I tried changing the name of the button, but there is no macro for it ;-(

Also, onAfterInsert, I use this code :

sc_commit_trans();
sc_redir(formulaire_gouvernement, “_self”);

But i can’t add confirmation message. Do you have a idea ?

I tried adding this code : https://www.scriptcase.net/docs/en_us/v9/manual/14-macros/02-macros/#sc_btn_insert on ValidateSuccess

Thanks

To remove the add button use

sc_btn_display(“new”,‘off’);

Use navigation if you want the form to be close after an insert

You can change the name of button under the toolbar

If you want to change it dynamically you have to do it with jQuery

Thank you ! It’s good

Use navigation if you want the form to be close after an insert

Navigation ?

Actually, my code in onAfterInsert is adequate, except that I no longer have a confirmation message

A+

1 Like

OHHHHHHH I love you Jlboutin60 hihih

THANKS !