The following keywords can be passed with the WebDocs iSeries URL string for searching:

Standard Document Search Fields

* SRCHFOLDER - Folder

* SRCHDOCTYP - Document Type

* BEGDAT - Beginning Document Checkin Date

* ENDDAT - Ending Document Checkin Date

* SRCHTITLE - Search Title

* SRCHFLD01 - Search field 1

* SRCHFLD02 - Search field 2

* SRCHFLD03 - Search field 3

* SRCHFLD04 - Search field 4

* SRCHFLD05 - Search field 5

* SRCHFLD06 - Search field 6

* SRCHFLD07 - Search field 7

* SRCHFLD08 - Search field 8

* SRCHFLD09 - Search field 9

* SRCHFLD10 - Search field 10

AS/400 Report Search Fields

* SRCHSPOOL - Spool file name

* SPBEGDAT - Spool file beginning date

* SPENDDAT - Spool file ending date

* SRCHUSRDTA - Spool user data

* SRCHUSERID - Spool user ID

* SRCHFRMTYP - Spool file form type

* SRCHJOBNAM - Spool file job name

* SRCHOUTQ - Search output queue

* SRCHUSRDFN - Search user defined data

 

Format of Search URL Strings

Beginning of search string (uses your AS/400 web server IP address):

http://1.1.1.1/imageserver/doc100r?action=Search

 

Session ID. This is a unique session login ID (See CL samples in file SOURCE in library RJSIMAGE)

&ISESSION=

 

Additional search keywords (multiple search keywords can be put together with the & symbol)

&srchtitle=Invoice

 

Search Examples

Example search URL looking for all docs with a title of "Invoice":

http://1.1.1.1/imageserver/doc100r?action=Search&ISESSION=<session ID>&SRCHTITLE=Invoice

 

Example search URL looking for all docs with a title of "User Guide" where part number = "123456":

http://1.1.1.1/imageserver/doc100r?action=Search&ISESSION=<session ID>&SRCHTITLE=User Guide&srchfld01=123456

 

Example search URL looking for all docs with a title of "User Guide" where part number contains "123456":

http://1.1.1.1/imageserver/doc100r?action=Search&ISESSION=<session ID>&SRCHTITLE=User Guide&SRCHFLD01=*123456*

 

Sorting Search Results

You may sort search results generated using the method above by appending an &IORDERBY to the query. The format is:

&IORDERBY=&IUPDOWN=

 

For &IUPDOWN, use ASC for ascending order, DESC for descending. Example search URL looking for all docs with a title of "Invoice", sorting by Title, ascending order:

http://1.1.1.1/imageserver/doc100r?action=Search&ISESSION=<session ID>&SRCHTITLE=Invoice&IORDERBY=TITLE&IUPDOWN=ASC

 

Link Search

An alternative of doing a doc search is to do a link search. All the key values are the same accept action=Search is replaced with action=LinkSearch (uses your AS/400 web server IP address):

http://1.1.1.1/imageserver/doc100r?action=LinkSearch

 


Still have questions? We can help. Submit a case to Technical Support.

Last Modified On: December 10, 2016