Set or return follow modes
You can chose this in beas forms and SAP B1 Forms. In SAP B1 Forms you can only read the information
Return values <form.mode>
0 = find mode (only SAP Forms)
1 = ok mode
2 = update mode
3 = add mode
Change mode
Mode |
Description |
ok |
change to ok mode (1) if data changed, beas start update process. See form.save form.mode.ok Old: edit.end |
cancel |
change to ok mode (1) if data changed, beas don't start update process form.mode.cancel Old: edit.cancel |
update |
beas go to edit / update mode (2) and change the Button "OK" to "Update" if the user don't have access or update mode not possible, beas return failure form.mode.update Old: edit.start |
add |
beas go to add mode and change the "OK" Button. if the user don't have access or update mode not possible, beas return failure Attention If you change to add and you don't change the primary key, you can have a duplicate sql error |
cancel |
switch from mode 2/3 to mode 1 without trigger update/add command. Only Beas form. beas 9.3 PL 2 |
lock |
cancel update/add process, go to ok mode and lock all fields only Beas form. Beas 2020.02 |
Read current form
<form.formmode>
ib_formmode_new,ib_formmode_update,ib_updatemode,