Mohammad1911
14th February 2014, 11:37
Hello,
I hava 1 field with free or final status.
I want the functionality that if status is final then record should not be deleted for work top.
I have tried (choice.mark.delete and choice.mark.occur).It works fr worktop but does not work for webtop.
Is ther any way to disable delete command when status is final in my session
for WEBTOP
bhushanchanda
14th February 2014, 12:26
Hi,
Refer similar threads:-
Thread (http://www.baanboard.com/baanboard/showthread.php?t=65216)
...
#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)
}
Mohammad1911
15th February 2014, 05:24
Hi,
Ya I tried this.and after writing following code its done.I have to write choice.again().
Otherwise record is allowed to delete.
So choice.again() is compulsory.
Or u can directly write delete condition in before.choice of choice.mark.occur:....
choice.mark.occur:
before.choice:
retval = mark.delete.is.allowed()
if retval = false then
choice.again()
endif
function extern boolean mark.delete.is.allowed()
{
if no.delete.condition then
return(false)
endif
return(true)
}