31.01.2013 Views

InterForm Manual - System & Method

InterForm Manual - System & Method

InterForm Manual - System & Method

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. PDF File Name Composition<br />

Select this option to state how the PDF file name is determined:<br />

Create PDF Filename Composition PNM330D<br />

Definition name . . . . : DEMO_MAN Demo for manual<br />

Type choices and then press Enter. Press F3 or F12 to exit.<br />

PDF output path/file . . . /Invoices/*KEY1/Inv *VB.pdf_____________________><br />

Composition, *USEREXIT<br />

Create directory . . . . . N (Y=Yes, N=No)<br />

Replace file method . . . G Y=Always, N=Never, G=*Gen when dupl.<br />

Available variables<br />

Var. Type Description Len Info<br />

*KEY1 Keydef. Customer Numbers 4 Numeric, Allow blanks=N<br />

*VA SpoolVar Customer name 40 Inputlen.: 40, Position (-)<br />

*VB SpoolVar Invoice number 10 Inputlen.: 10, Position (-)<br />

*VC AutoNum Global counter 6 *SYS, Len=6, Str=0, Incr=0, *FIXED<br />

F3=Exit F4=Prompt F5=Refresh F9=Expand F12=Cancel F14=Test<br />

Bottom<br />

In the top of the screen you state either the composition of the PDF file names to be created or<br />

*USEREXIT to let a user exit program determine the names of the PDF files.<br />

As a part of the path you can use the keys and variables, that you have already defined. They<br />

are all listed in the bottom of the screen.<br />

If you specify *USEREXIT for the PDF file name(s) you should call a program simular to the<br />

source in file APF3812/APISRC and member PNMEXIT. The program will be called with<br />

&EntryStep = *NAME.<br />

You can press F4 to get the list of the defined variables to select from (when typing the<br />

path/file name), F9 to get access to the full length available for the PDF file name composition<br />

or F14 to test the composition with a specific spooled file and see what PDF file names it will<br />

create.<br />

Other options are:<br />

Create directory: Specify if you want <strong>InterForm</strong>400 to create the necessary<br />

directories or not.<br />

Replace file method: Use 'Y' if you want to replace existing PDF files if found. 'N'<br />

will result in an error message if the file exists and 'G= *Gen'<br />

will append a number to the filename if it already exists. Note,<br />

that this number will be appended after e.g. '.pdf' as the very<br />

last of the file name.<br />

<strong>InterForm</strong> A/S 223

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

Saved successfully!

Ooh no, something went wrong!