Executing a DAL Script from a Menu

You can use the AFEBatchDalProcess MEN.RES option to execute any DAL script from a menu option. For instance, you can use this option to run a script which batch processes all of the current WIP for the current user.

To use this option, include a line similar to the one shown here in your MEN.RES file:

MENUITEM  "Batch DAL..." 294 "AFEW32->AFEBatchDalProcess""Process DAL in Batch"

This line tells the system that when a user selects the Batch DAL option, it should execute the script identified in the following INI option. Make sure your FSIUSER.INI or FSISYS.INI file includes this control group and option:

< Batch_DAL >
ScriptFile = xxx.DAL

Where xxx is the name of the DAL script you want the system to execute. You must use the extension DAL.

Here are some examples:

Script name

Content

Results

COMPLETE.DAL

Complete ();

Completes each entry in WIP. This is the same result as if you chose the File, Complete option.

ASSIGN.DAL

AssignWIP (Janelli);

Assigns each entry in WIP to the user ID Janelli. This is the same result as if you chose the Formset, Assign option.

ASSIGN1.DAL

If WIPKey1()="Account" then AssignWIP (Brown);end;

For each entry in WIP whose WIPKey1 equals Account, the script assigns the documents to the user ID Brown. This is the same result as if you chose the Formset, Assign Document option.