You are here: Field Rules Reference > Field Rules Summary > MovTbl

MovTbl

This field level rule works similarly to the Move_It rule, except records are taken from the table list of records stored in memory instead of the extract records list from which many of the other rules get data.

One or more files may be used to keep tables used by this rule. Each table (file) must be listed in the table list file specified in the Data control group with the name TBLFILE. This table file list file must be in the following format:

TABLEFILENAME1.EXT <crlf>

TABLEFILENAME2.EXT <crlf>

Each table file name is listed on a single line followed by a carriage return/line feed. The format of the table itself is a key name followed by key data. The key need not be a specific length nor the data, which allows for a single table or group of table files to contain table entries of varying lengths.

For example, suppose a form contains the names and numbers of agents for calling purposes, but these names and numbers change on a regular basis, this situation lends itself to the use of text tables. A table might be created called AGENTS.TBL that contains table entries such as the following:

AGENT001 JOE MILLER <crlf>

and another table called agentpho.tbl with phone number entries such as:

AGENT001PHONE404 111-2222 <crlf>

You could then make these tables available to Documaker Server by including them in the file specified by the TblFile setting in the FSISYS.INI file.

You specify the table file name in the Data control group of the FSISYS.INI file as follows:

< Data >

TblFile = .\deflib\TblFile.Dat

These tables must first be loaded into memory before the system can use them. To do so, the following rules must be in the AFGJOB.JDT file:

;CreateGlbVar;1;TblLstH,PVOID;

;LoadTblFiles;1;;

See also