cfuzihara
24th November 2005, 23:22
Hi

I defined in Dal2 a function field.enum.is.applicable() but when I compiled it with debbug, the program doesn´t call this function.
How can I resolve it? This problem occurs in some programs, but in others it is ok.

Thanks

Example:

dal.field.depends.on("tdrec940.rfdt.l", HOOK_IS_APPLICABLE, "tdrec940.doty.l", "tdrec940.mfre.l")
.
.
.
function extern boolean tdrec940.rfdt.l.purchase.is.applicable(long mode)
{
if tdrec940.mfre.l = tcyesno.yes then
return(false)
endif
return(true)
}

ARijke
25th November 2005, 10:03
I think you used the function correctly. In the cases where it worked were you also using customization fields with the extension ".l"?

Evert-Jan Bosch
29th November 2005, 10:29
you need to set this:
#include <bic_dal2>
to get dal 2 working.

The old code can be removed:
| #include <bic_dal>

cfuzihara
30th November 2005, 19:00
Thanks all, but my problem continue ... :confused:

JustaPackfan
1st March 2008, 06:18
Why does the function name have "purchase" in it?
tdrec940.rfdt.l.purchase.is.applicable()
should it not be
tdrec940.rfdt.l.is.applicable()

Evert-Jan Bosch
3rd March 2008, 14:50
probably the field rfdt is an enumerate.
one of the options is 'purchase'.
when returning true the option appears in the enum list
when returning false the option disappears from the enum list.