Map spooled file data from a specific page

Map spooled file data from a specific page

Map spooled file data from a specific page

You can map the spooled file contents, after you have loaded a sample spooled file in the designer.

If you want to iterate across all pages in the spooled file to have an output, that is as many pages as the input spooled file, then you should refer to the section below.

 

The procedure is described below and also covered in this video:



You can do that with the text element, and here you need to click Expression in the top:

 

NG2MapSplfs0003

 

Now you click the magnifying glass on the right to see the contents of the loaded sample spooled file:

 

NG2MapSplfs0004

 

On the top left (as shown above) you can now select a specific page instead of Auto. (Auto is reserved for mapping of the current page as described below).

 

After you have selected a specific page number, you can now map spooled file data simply by dragging the mouse over the lines and positions, that you want to map:

 

NG2MapSplfs0005

 

You can move and drag the blue frame to select the positions and lines of your choice. When done you click OK on the bottom right to add the built-in function, that refers to the spooled file (ng:spoolMap):

The expression can e.g. be: ng:spoolMap(//page[1], 2, 25, 6, 11)

as shown below:

 

NG2MapSplfs0006


    • Related Articles

    • Map spooled file data from current page

      Map spooled file data from current page This section covers the normal way of mapping spooled file data. This section explains e.g. what to do, if you want InterFormNG2 to iterate across all pages in the input spooled file and generate the same ...
    • Map spooled files in the designer

      You can map spooled file data in the designer, after you have loaded a spooled file. Mapping is done with the either ng:spoolMap or the ng:spoolMapRel built-in functions. This section covers this: •How to view the spooled file contents •Spooled file ...
    • Switch between different page layouts within a spooled file

      Within a spooled file you may have so different formats of the pages, so that you would prefer to switch between different templates or just different layouts/designs through a spooled file. (This is the function labeled as overlay selector in ...
    • Change page breaks of a spooled file

      When you merge an input spooled file with a template in InterFormNG2 e.g. for PDF or print output, then you normally want the same page breaks in the output as in the original input spooled file. You are however not necessarily limited by that and ...
    • Spooled file support

      InterFormNG2 is able to process spooled files, if you install InterFormNG2 on the IBM i platform. Please notice, that spooled file support, as well as Spool2XML, are modules for InterFormNG2, that are purchased separately. You can also use the ...