Transfer of parameters in Axiant reports/qtp-runs
Ole Hansen
oh@scanconsult.dk
Wed, 13 Nov 2002 10:43:41 +0100
Hi!
I am trying to execute a report from an Axiant screen. The report requires a parameter, e.g. :
access sometable
choose keyitem parm prompt "Enter key : "
In PowerHouse we put the value of 'keyitem' (and values for any other prompted items) in a flat file, and runs the report through a run command :
run command "quiz auto=compiledreport < flatparameterfile"
If we try the same in Axiant, we get the following run time error : 'Invalid or unrecognized keyword in program arguments : (<)'.
I do not want the user to be prompted by Axiant for the value of 'keyitem', since this is just an arbitrary number, unknown to the user.
My present work-around is to have a local, user specific (XBASE-file) with the value of keyitem, and the report modified as follows :
access xbasefile link xbasefileline to keyitem of sometable
This works satisfactorily for report with a choose parameter, but if other parameters is to be transferred, the following is required :
access xbasefile link xbasefileline to keyitem of sometable &
link to record 1 of otherxbasefile &
link to record 2 of otherxbasefile alias record2
define parm1 char*10 = xbasefileline of otherxbasefile
define parm2 char*10 = xbasefileline of record2
... and this is of course not very efficient
Mange hilsner / With kind regards
Ole Hansen
===========================================================
E-mail: oh@scanconsult.dk Cell Phone: +45 4040 1150
===========================================================
ScanConsult IT-Partners ApS Voice : +45 8738 7474
Jegstrupvej 96A Fax : +45 8738 7475
DK-8361 Hasselager Support : support@scanconsult.dk
Denmark Sales : sales@scanconsult.dk
http://www.scanconsult.dk
= ParaSuite : A Suite of Air Cargo Handling solutions =
= ParaSafe : A Suite of IT-Security solutions =
= Partners : Hewlett-Packard, Cognos, Microsoft and more =