Warning: In WebDocs iSeries version 3.x, use 7. Lookups on either the Document Types or the Document Type Keys Maintenance pages.
To set up WebDocs iSeries search-page filters:
- Open the Document Custom Lookup Pulldown SQL Table for editing:
UPDDTA FILE(RJSIMAGE/DOCLS00)
- To set up a new filter for a document title or or search key, press Page Down and enter the following parameters in a new record:
- LSDOCTYPE - The Document Type code. Leave this parameter blank to include all Document Types.
- LSKEYVAL - Which field the filter is for. Use TITLE for the document title or USERKEY1 through USERKEY10 for search keys 1-10.
- LSSQLSTM - Any custom predefined SQL WHERE criteria.
For example: CUSNUM >= 300000 and CUSNUM <= 399999
- LSTABLE - The iSeries library and file name in the format LIBRARY/FILENAME.
For example: QIWS/QCUSTCDT
- LSLOOKUP1 - The first column to display in the look-up window. This may be a description or a code number. For numeric values, use CHAR( ) to display the data in character format.
For example (a character field): LSTNAM
For example (an expression):'Timesheet for ' concat strip(init) concat ' ' concat strip(lstnam)
For example (a numeric field displayed as a character field): CHAR(CUSNUM)
- LSLOOKUP2 - The second column to display in the look-up window. This may be a description or a code number. For numeric values, use CHAR( ) to display the data in character format.
For example (a character field): LSTNAM
For example (an expression):'Timesheet for ' concat strip(init) concat ' ' concat strip(lstnam)
For example (a numeric field displayed as a character field): CHAR(CUSNUM)
Note: You must have a value for at least one of LSLOOKUP1 or LSLOOKUP2.
- (Optional) Enter any of the optional parameters you need to:
Sample
The following example creates a look-up using the document title when all Document Types are selected. This look-up accesses the QCUSTCDT customer sample file in library QIWS, selects customer numbers 1 through 999999, and only allows the user to select the customer number.
LSDOCTYPE:
LSKEYVAL: TITLE
LSSQLSTM: CUSNUM >= 1 AND CUSNUM <= 999999
LSTABLE: QIWS/QCUSTCDT
LSLOOKUP1: CHAR(CUSNUM)
LSLOOKUP2: LSTNAM
LSLOOKTYP1:
LSLOOKTYP2: N
Testing the Sample Look-Up Setting
- Log in to the WebDocs iSeries web interface and go to the document search page.
- In Document Type, choose All Document Types.
- Click the button on the right side of the search screen.
A list of customer selections displays for custom information.
Last Modified On:
No, open a new Support Case