kevalghelani
25th November 2013, 17:56
can i disable updating/deleting based on certain condition through program script
bhushanchanda
25th November 2013, 19:08
Hi,
Do you mean update or insert into a table? Then yes, you can do it via program script as well as using DAL. If its a standard table, you can use UE Dll.
vahdani
26th November 2013, 12:06
Hi,
this can be done with so called "UI Template". This allows automatic disabling of field and commands (both standard and or form commands)
You include <bic_4gl2> in your UI script and write external functions using the naming conversion:
...
#include <bic_4gl2>
...
|Standard Command Example
function extern boolean mark.delete.is.allowed()
{
if no.delete.condition then
return(false)
endif
return(true)
}
|Form Command example
function extern boolean my.command.name.is.allowed()
{
if disable.command.condition then
return(false)
endif
return(true)
}
|Field example:
function extern boolean ppmm999.ffff.is.readonly()
{
if readonly.condition then
return(true)
endif
return(false)
}