Is Visible hook
Use this hook to remove standard form commands from the session.
This hook should not use actual values of the form fields. The code in
the hook is processed before actual data is read from the database or the form.
If you must control the availability of the form command based on data on the
screen, you can use the
Is Enabled
hook. You can use data that is not related
to actual contents of the screen, for example parameter data.
Example:
function extern boolean function.create.bp.easy.is.visible()
{
|* Quick creation of business partners not allowed for users
|* of department 300
select tccom001.cwoc
from tccom001
where tccom001.loco = :logname$
as set with 1 rows
selectdo
if strip$(tccom001.cwoc) = "300" then
return(false)
endif
endselect
return(true)
}