Set or return the following modes
You can choose 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 is changed, Beas starts the update process. See form.save form.mode.ok Old: edit.end |
cancel |
change to OK mode (1) If data is changed, Beas does not start update process form.mode.cancel Old: edit.cancel |
update |
Beas goes to edit / update mode (2) and change the Button "OK" to "Update" If the user does not have access or update mode is not possible, Beas returns a failure. form.mode.update Old: edit.start |
add |
Beas goes to add mode and changes the "OK" Button. If the user does not have access or update mode is not possible, Beas returns a failure. Attention If you change to add without changing the primary key, a duplicate SQL error may occur. |
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,