If you are using DAL scripts during Documaker Server SetRecip trigger processing, use this function to return the form name of the current SetRecipTb entry being processed.
TriggerFormName ( )
There are no parameters for this function.
Here is an example:
Assume your SETRECIPTB.DAT file has the following entries and a loaded DAL library file contains the DAL subroutine function, ILDSChk. The forms are triggered if the conditions in the DAL script are met.
Here is an example of the SETRECIPTB.DAT file:
…
;Docu;CP;ILDS498;S004H;XLC;Agent(1);;0;0;0;1;;DALTrigger;ILDSChk;
;Docu;CP;ILDS598;S004L;XLC;Agent(1);;0;0;0;1;;DALTrigger;ILDSChk;
…
Here is an example of the DAL library file:
*** If driver's age, insured state, and form name are the specified
*** conditions then trigger the form.
BeginSub ILDSChk
trig_f_name = TriggerFormName()
If trig_f_name = "ILDS498" AND \
?("driver_age") <= 25 AND \
?("insure_st") = "CA" Then
Return(1)
ElseIf trig_f_name = "ILDS598" AND \
?("driver_age") > 25
?("insure_st") = "FL" Then
Return(1)
Else
Return(0)
End
EndSub
© Copyright 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices