31.01.2013 Views

InterForm Manual - System & Method

InterForm Manual - System & Method

InterForm Manual - System & Method

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2. Key definitions<br />

206 User’s <strong>Manual</strong> for <strong>InterForm</strong>400 ®<br />

special instructions on page 210.<br />

Change E-mail/Fax key definition MAI310D<br />

Definition name . . . . . : DEMO<br />

Description . . . . . . . : Distribution of the Demo spool file<br />

Length key field-1 . . . . __4 (1 - 30)<br />

Field type key field-1 . . 1 1=Numeric 2=Alfanum. 3=Alfanum. lowercase<br />

Allow blank key field-1 . N (Y N)<br />

Key field-1 description . Customer number_____<br />

Length key field-2 . . . . ___ (1 - 30)<br />

Field type key field-2 . . _ 1=Numeric 2=Alfanum. 3=Alfanum. lowercase<br />

Allow blank key field-2 . _ (Y N)<br />

Key field-2 description . ____________________<br />

Length key field-3 . . . . ___ (1 - 30)<br />

Field type key field-3 . . _ 1=Numeric 2=Alfanum. 3=Alfanum. lowercase<br />

Allow blank key field-3 . _ (Y N)<br />

Key field-3 description . ____________________<br />

Mail exit program . . . . . __________ *NONE, name<br />

Library . . . . . . . . __________<br />

F3=Exit F12=Cancel<br />

Up to 3 keys can be defined. They are identifying the customers by e.g. customer number,<br />

department or name. These are the identifiers, that are looked for in the spool file.<br />

You can decide to call a mail exit program. The finishing definition name, all keys and<br />

variables are transferred to the program, that can return e.g. what e-mail address to send to.<br />

Sources for mail exit programs can be seen in member, MAILEXIT, MAILEXIT02,<br />

MAILEXIT03 and MAILEXIT04 in source file, APISRC in library, APF3812:<br />

MAILEXIT This is the first demo source that was made. (Use format = 01 when calling<br />

this). This program is mainly included backwards compatibility.<br />

MAILEXIT02 This is called with parameter format=02. With this you can return the type of<br />

text for the contents of the e-mail. Refer to the description of 'Text and -<br />

format' on page 208 for more details.<br />

MAILEXIT03 Called with parameter format=03. Includes the functions of MAILEXIT02 and<br />

includes also the possibility to return an additional receiver of the e-mail (CC:).<br />

MAILEXIT04 Called with parameter format=04. Includes the functions of MAILEXIT03 plus<br />

these parameters:<br />

RTNTXTTYP Tells <strong>InterForm</strong>400 how to handle the text found in<br />

&RTNTXT01-10 - or if to use an external html file.<br />

RTNMSGSTMF IF RTNTXTTYP is ‘X’ then the path and name of the<br />

html stream file is to be placed in this parameter.<br />

RTNUSRPWD The user password to the PDF file (The Digital<br />

Signature/PDF Security module is required.)<br />

CODPAG The codepage in which the returned parameters are<br />

written. (For other exit programs the system<br />

codepage must be used.).<br />

RTNTXTVER Return text version. The text version in the<br />

e-mail finishing definition to use (same as<br />

RTNTXTFNT in MAILEXIT03).<br />

Apart from this you can return the name and e-mail address of up to 3<br />

receivers - not counting the CC: and BCC: receivers.<br />

This demo CL-program (MAILEXIT04) can only be compiled in V5R2 or later<br />

because of the number of parameters. Refer to the source member for<br />

additional details.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!