Temporaries being reset (bit long, sorry)
Deskin, Bob
Bob.Deskin@Cognos.COM
Tue, 27 Mar 2001 08:29:25 -0500
I think there's been enough responses to give you an answer, but I did want
to point out that RESET AT MODE may not always give you what you want.
Personally I do not like RESET AT MODE because it is not under the
developer's control. RESET AT MODE resets when the mode changes. However
(and this is based on some testing I did many years ago), if the user enters
a mode, that counts as a mode change even if they enter the same mode. On
the other hand, if the user is in Find mode and simply keeps pressing return
such that the PATH procedure restarts, this is not considered a mode change.
I just do not consider it reliable.
I always use RESET AT STARTUP. In fact, for the next release of PH Web,
RESET AT STARTUP will be the default because for the Web, anything else is
meaningless.
Just my two cents worth (Canadian, so you know what that's worth south of
our border).
Bob Deskin
PowerHouse Web Product Manager and Senior Product Advisor
Application Development Tools, Cognos Inc.
bob.deskin@cognos.com (613) 738-1338 ext 7268 FAX: (613) 727-1178
3755 Riverside Drive P.O. Box 9707 Stn. T, Ottawa ON K1G 4K9 CANADA
-----Original Message-----
From: Kevin O'Sullivan [mailto:kosullivan@cosworth-racing.co.uk]
Sent: March 27, 2001 5:58 AM
To: 'Powerhouse List Group'
Subject: Temporaries being reset (bit long, sorry)
Hi all,
Firstly, Cognos Bob, if you're reading this, thanks for insight into my
previous problem, It works a treat!
Next on the agenda :-
How do I stop temporary items being reset ?
I've tried the
Temp BLAH char*10 Reset at Mode
and
Temp BLAH char*10 Reset at Startup
to no avail.
Given the following excerpt,
----------------------------begin cut----------------------------
Scr REQ2POC Activities Find
Temp T-POLINE Num*05 RESET AT MODE
File POMAS Primary
Select if POREQST = T-POREQST
File REQ-TO-PO Designer
File POFIL Detail Occurs 6
Cluster Occurs with POFIL
Align (,,5)(,,15)
Field T-POLINE NoId NoLabel
Field PN of POFIL NoId NoLabel
Cluster
Procedure Internal SETPOFIL
Begin
Let T-POLINE = POLINE / 100
Display T-POLINE
End
Procedure Detail Find
Begin
For Missing POFIL
Begin
Get POFIL Via PO using PO of POMAS Opt
Do Internal SETPOFIL
End
End
----------------------------end cut----------------------------
I have 5 records (for instance) to be retrieved, and if I compile and run in
debug mode, I can see that the fields POLINE and T-POLINE are being
allotted
the correct values from the detail find. After the fifth is fetched, the
detail find runs once more and after failing to find any more entries, I
find
the temp T-POLINE has all zeros on the screen.
I have come across this before, but unfortunately cannot remember how to fix
it.
Thanks for all and any assistance.
Regards,
Kevin
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Kevin O'Sullivan Cosworth Racing Limited, -
- Systems Administrator The Octagon, -
- Business Information Systems St James Mill Road, -
- Northampton, England, -
- NN5 5RA. -
- Tel: +44 (0) 1604 598488 -
- mailto:kosullivan@cosworth-racing.co.uk Fax: +44 (0) 1604 598506 -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
The views expressed above are mine entirely and in no way represent
those of my employer.
****************************************************************************
****
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the email administrator - mailadmin@cosworth-racing.co.uk
****************************************************************************
****
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
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.