update

execute standard update / add process with complete workflow

support only dw_1, but it's possible to manage the update/add process for complete window

 

if (window.update() == -1) return -1; // cancel process, if update not possible

 

- execute beas usability package DataAdd or DataUpdate Event

- execute dw_1_update

- execute form_update

- send "preupdate" to all objects

- check all mandatory fields

- execute standard update function (crtl+NB)

  Follow special commands
  max=field=<sql> == fill this field with this result
  isnull  / default / primaryfield=<field> -- set default or check

  dwupdate == make update on dw_1

- send "update" to all objects

- update dw_1, if defined

-  insert "N" in field "new" (in all rows)

-  change e_modify from Y to "no" (RFT handlung)

- execute dw_1_updateend

- execute form_update

- execute beas usability DataUpdated

- Change Button "ADD/UPDATE" to "ok"

 

 

Note: if you need update on other datawindows or elements, use

global function form_update
// your update Script
end global