You are here: Function Reference > Alphabetical Listing > T > TriggerSectionName

TriggerSectionName

TriggerImageName

TriggerImageName has been replaced with TriggerSectionName. TriggerImageName and TriggerSectionName have same functionality; the only change is to the function name. The existing TriggerImageName scripts will continue to function and will not require any modification

If you are using DAL scripts during Documaker Server SetRecip trigger processing, use this function to return the section (FAP file) name of the current SetRecipTb entry being processed.

Syntax

TriggerSectionName ( )

There are no parameters for the function.

Example

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 section name are the specified 
***  conditions then trigger the section.

 

BeginSub ILDSChk
 
trig_f_name  = TriggerSectionName()
If trig_f_name = "S004H" AND \
        ?("driver_age") <= 25 AND \
        ?("insure_st")  = "CA" Then
             Return(1)
 
   ElseIf trig_f_name = "S00L" AND \
        ?("driver_age") > 25
        ?("insure_st")  = "FL" Then
             Return(1)
 
         Else 
             Return(0)
End
 
EndSub

See also