Form Generator

OBJECTIVE

The Form Generator option is used to create custom forms using system variables.

 

The variables available depend on the type of form chosen at the outset.

All form files are available in the General Settings option. They can be modified by clicking on the Form Configuration icon.

 

PREREQUISITEs

  • Training on the creation of forms is required.

 

Steps

 

maestro* > Maintenance > General Maintenance > Miscellaneous > Form Generator

 

Create a form

  1. Click File, New.
  2. Choose a form type and click Accept.
  3. Click the available buttons as required:
 

You can configure the properties by double-clicking the selected item.

 

Field

Description

Text

Used to add a text field.

Var

Used to add a system variable.

NOTE: You can select the variable by double-clicking on the box and by selecting it from the Variable Name field.

Line

Used to draw a line.

Box

Used to draw a box.

PageNo

Used to insert a page number.

Image

Used to insert an image.

File

Used to insert a variable from a file other than the one available from the type initially chosen.

  1. Click Add Condition to add a condition to the form.

Field

Description

IF

Checks a header (top section) condition.

NOTE: Possible conditions include: ">", "<", "=", "<>".

ELSE

If the header condition is invalid.

NOTE: This command must be used after an IF command.

ELSEIF

Additional header conditions.

NOTE: This command must be used after an IF command.

TIF

Confirms a table condition (Details section).

NOTE: Possible conditions include: ">", "<", "=", "<>".

TELSE

If the details condition is invalid.

NOTE: This command must be used after an IF command.

TELSEIF

Additional details condition.

NOTE: This command must be used after an IF command.

 

Examples of using conditions

IF CLIENT_CODE="CASH"

TEXT 7.59,3,"PAYMENT TERMS - CASH",,G,Arial10,RED,,8

ELSE

TEXT 7.59,3,"PAYMENT TERMS - NET 30 DAYS",,G,Arial10,RED,,8

ENDIF

TIF DISCRATE=0

TVAR 5.3,"###########,.##",((AMOUNT/UNIT)/QTY*100)/(100-DISCRATE),,D,Arial8,WHITE,,0.75,0

TTEXT 6.105,"$",Arial8,WHITE,,0.05,0,0

TENDIF

TIF NOCAT="PENCIL"

TELSE

TVAR 0.3201389,"\ \",NOCAT,,G,Arial8,BLACK,,1.5,0

TVAR 1.159722,"\ \",INCAT_DESCFR1,,G,Arial8,BLACK,,1.85,0

TVAR 2.140278,"\ \",QUANT,,C,Arial8,BLACK,,1.85,0

TVAR 2.855,"\ \",SPECIF1,,C,Arial8,BLACK,,1.85,0

TVAR 4.5,"#########.,##",UNIT*QTY,,D,Arial8,BLACK,,0.6,0

TVAR 7.3,"\ \",INCAT_COMPUNIT,,C,Arial8,BLACK,,0.6,0

TVAR 7.829861,"#########",INCAT.DON_WEIGHTM2*((QTY-QPREC)*UNIT)*2.2045855,,D,Arial8,BLACK,,0.4,0

TENDIF

 

Last modification: August 04, 2026