InsertIntoIDRS Class

The InsertIntoIDRS class may be used to easily insert and update reports inside of the IDRS.  It is a commandline program that requires sever parameters to work.

Usage :

 java  InsertToIDRS -options IDRSDriver IDRSConnectionString IDRSUsername|NULL IDRSPassword |NULL [DocID] [DocName] [DocSrcFilePath] [DocGroupsAllowed] [DocVarSrvFilePath] [IsFile(true/false)] [DocParams] [DocConns]

Option List is as follows :
h Displays Help Menu
i Include DocID
n Include DocName
s Include DocSrc
g Include DocGroups
v Include DocVarSrc
f Include isFile
p include DocParams
c include DocConns
u Update a current record instead of creating a new one

For each field that data is to be included with, the corresponding option must be given.  Not All options have to be given nor all fields be given values.  If only certain fields are to be included, give the option and giive the field values in order of the above list.

Example:

To change the DocSrc and DocVarSrc fields of document 1 use the following line :

java InsertIntoIDRS -isvu driver connString username password 1 /html/template.htm /html/form.htm
To create a new document  with the same options but the document number is 5 use the following line :
java InsertIntoIDRS -isv driver connString username password 5 /html/template.htm /html/form.htm