Global Temps in QTP

Fyfield, Derek DEREK.FYFIELD@orbit.net
Thu, 9 Dec 2004 06:38:43 -0000


Hi Harvey,

To counter the case where no records are found and the Global Temp is not
set to your value, you could give it an initial value before the first
request.  

RUN FRED
GLOBAL TEMPORARY g_start_date char*8  &
         initial GETSYSTEMVAL("START_DATE",symbol)

REQUEST ONE
Access ....

Cheers,

Derek.

-----Original Message-----
From: Harvey Orom [mailto:horom@coastnet.com] 
Sent: Thursday, December 09, 2004 1:40 AM
To: PAUL DIACONESCU; powerh-l@lists.sowder.com
Subject: RE: Global Temps in QTP

Paul,

That is exactly the situation. Thank you very much! It is a defect, but
maybe not a problem in production.

Cheers ... Harvey



-----Original Message-----
From: PAUL DIACONESCU [mailto:paul_diaconescu@hotmail.com]
Sent: Wednesday, December 08, 2004 2:13 PM
To: harvey@oromconsulting.com; powerh-l@lists.sowder.com
Subject: RE: Global Temps in QTP


Hi Christina
At least one record has to be selected , in order to have your global temp
initialized in request ONE
Probably in test envirnment, you have no records selected in request ONE.
paul diaconescu



>From: Harvey Orom <harvey@oromconsulting.com>
>To: powerh-l@lists.sowder.com
>Subject: Global Temps in QTP
>Date: Wed, 08 Dec 2004 09:52:40 -0800
>
>Hi,
>
>I am using Powerhouse 7.10.G1 and I am having a problem with global temps
>being set in one request, but the values in the temps being dropped for the
>request immediately following:
>
>i.e
>
>$ START_DATE :== "20010101"
>$QTP
>run runname
>global temp g_start_date char*8
>
>request ONE
>
>access *xyz
>item g_start_date = GETSYSTEMVAL("START_DATE",symbol)
>
>select if starting_date of xyz > g_start_date
>
>request TWO
>
>access *abc
>
>select if starting_date of abc > g_start_date
>
>
>The first select in Request one works but the second one does not. The
>mystery is that this code has been working in Production for years, but
>fails in the test environment.
>
>I can fix the problem as follows in the test environment, but why does it
>work in prod?
>
>global temp g_start_date char*8 initial GETSYSTEMVAL("START_DATE",symbol)
>
>Has anyone else had a problem like this?
>
>Thanks in advance... Harvey
>Harvey Orom
>
>




= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request@lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request@lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.


This message and any attachments (the 'message') is intended solely for the
addressees and is confidential. If you receive this message in error, please
delete it and immediately notify the sender. Any use not in accord with its
purpose, any dissemination or disclosure, either whole or partial, is
prohibited, except with formal approval. The Internet cannot guarantee the
integrity of this message. Orbit (and its subsidiaries) shall therefore not
be liable for the message, if modified. Orbit accepts no liability for any
damage caused by any error or virus transmitted by this email.