updateCheck

Check, if all primary fields filled, return true or false

 

if (window.updateCheck()==false return -1; // don't continue, if mandatory fields not filled.

 

define primary field with

dw_1.item.myField.mandatory=true;