baantl
12th November 2008, 06:16
Dear All expert
I want to disable certain lines during load the session, how to make it at the script? Example each record have 3 category, FREE,USED,RESERVE. when the line of record USED = tick, then i want to disable the line. please refer my attachment.

wiggum
12th November 2008, 15:58
You can use function method.is.allowed in the DAL of your table:

function extern boolean method.is.allowed(long method)
{
if method = DAL.NEW
then

else
if <table.field> = <ticked>
then
return(false)
endif
endif
}

baantl
13th November 2008, 05:45
Hi Wiggum
Can you give me more detail on the coding? Coding start from
field.USED:
before.layout:

because i not really know to use the above function. If using this standard function does me need to include <any header> ?