Sv: Transfer of parameters in Axiant reports/qtp-runs
Ole Hansen
oh@scanconsult.dk
Wed, 13 Nov 2002 16:30:14 +0100
Problem solved!
Thanks to all who replied.
Mark Fry and others suggested the use of SETSYSTEMVAL/GETSYSTEMVAL and Chris Sharman pointed out that there is indeed expression support for the choose verb.
Example showing transfer of both 'choose parameter' and 'other parameter'
In the Quick program :
procedure designer PRNT
begin
if not setsystemval("CHOOSEPARM","1234567890")
then inform "SETSYSTEMVAL failed." now response
if not setsystemval("OTHERPARM","Ordered by OH")
then inform "SETSYSTEMVAL failed." now response
run command "quiz auto=TestSystemVal"
end
In the Quiz program :
access sometable
choose keyitem (getsystemval("CHOOSEPARM")) ; Note outer parentheses
define ordertext char*20 = getsystemval("OTHERPARM")
report .....
This list is truly great!
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 =
-----Original Message-----
From: Chris Sharman <chris.sharman@ccagroup.co.uk>
To: powerh-l@lists.swau.edu <powerh-l@lists.swau.edu>
Date: Wednesday, November 13, 2002 2:49 PM
Subject: RE: Transfer of parameters in Axiant reports/qtp-runs
>
>> Your suggestion to use the SETSYSTEMVAL/GETSYSTEMVAL technique
>> works like a charm for transfer of 'normal' parameters (for
>> select etc.), but I fail to see, how I can make it work with a
>> choose verb. CHOOSE expects a literal string or a number, but
>> does not allow an item.
>
>Expression support for choose was added to Quiz & QTP in 7.10.E (VMS).
>It's not documented as VMS-specific, and is listed as available (without
>qualification) on VMS, MPEix 7.29 & Unix 7.33.
>I'd presume it's all in the common code version (8.30+...) ?
>The syntax, in particular the parentheses, is a bit picky, and hasn't yet
>made it to my documentation, but it's there & it works.
>
>Eg.
>
>choose date-created ((date(-7,sysdate)) to 99991231)
>
>
>
>-----------------------------------------------------------------------
>
>Any views expressed in this message are those of the sender and not
>necessarily those of CCA Group. The unauthorized use, disclosure,
>copying or alteration of this message is forbidden. The contents of
>this message may be confidential and/or privileged, copyright CCA Group
>and are intended solely for the use of the individual or entity to whom
>they are addressed. Whilst this message has been scanned, CCA Group
>cannot guarantee that it is virus free or compatible with your systems
>and accepts no responsibility for any loss or damage arising from its
>use. The recipient is advised to run their own anti-virus software. If
>you receive this message in error please contact
>postmaster@ccagroup.co.uk immediately, destroy any copies and delete it
>from your computer systems.
>
>= = = = = = = = = = = = = = = = = = = = = = = = = = = =
>Mailing list: powerh-l@lists.swau.edu
>Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
>Unsubscribe: "unsubscribe" in message body to powerh-l-request@lists.swau.edu
>http://lists.swau.edu/mailman/listinfo/powerh-l
>This list is closed, thus to post to the list you must be a subscriber.
>