Is Enabled hook
Use this hook to disable standard commands in the session. This hook can use actual values of the form fields.
Note: This hook only applies to commands that use the actual data. Commands that are independent of actual data can only be disabled by the
Is Visible
hook. For example; Close (abort.program
), New (add.set
) in a type-2 form, an overview without view fields, etc.
Example:
function extern boolean dupl.occur.is.enabled()
{
|* Don’t allow copying purchased items
return(tcibd001.kitm <> tckitm.purchase)
}