Is Enabled hook

Use this hook to disable custom form commands in the session. This hook can use actual values of the form fields.

Example:

function extern boolean function.publish.item.is.enabled()
{
|* Publishing only enabled for manufactured items
        if tcibd001.kitm = tckitm.manufacture then
                return(true)
        endif
        return(false)
}

This hook only applies if the custom form command is defined with the One Record Selected option. In case the custom form command allows selecting multiple records, the command remains enabled. In that case, you must use the Before Command hook to skip the processing if required.