N or UN command in QUICK

Deskin, Bob Bob.Deskin@Cognos.COM
Fri, 23 Feb 2001 12:33:07 -0500


There's no way to specifically "trap" Action context commands. However, both
the N and UN commands will execute the Find procedure so you could put the
INTERNAL call at the start of the Find.

Depending on how complex your logic is, you might be able to use a REFERENCE
file rather than a DESIGNER file. If all you need are specific values from
the file, keep in mind that using a REFERENCE file item will cause the
REFERENCE file to be retrieved when the item value is needed. Of course you
have to ensure that you've got the right path to the REFERENCE file record
you need.

Another possibility is to "read ahead" such that the first retrieval also
sets up the retrieval criteria for the next one. Then you could do your
follow-up setups in the POST FIND procedure which executes only if there's a
successful retrieval. That would be more complex but save you from modifying
the FIND procedure.

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: GGrimm@pcc-structurals.com [mailto:GGrimm@pcc-structurals.com]
Sent: February 23, 2001 11:59 AM
To: powerh-l@sphere.swau.edu
Subject: N or UN command in QUICK


     In FIND procedure, entering the Next or Update Next command causes 
     QUICK to display the next PRIMARY data record and its associated 
     DETAIL data records.  I need to process an INTERNAL procedure before 
     the "next" is done.  Does anyone know of a way to "trap" when the user 
     enters N or UN so that the process can be done?  Can I create new, 
     named, Internal procedure of N or UN to help?
     
     Why I'm doing this is the next set of Primary data records selected is 
     dynamically determined by a value in a Designer file.  I'm able to 
     select the first set by determining the value in the PATH procedure by 
     calling my own Designer procedure.
     
     Any ideas? I'm stumped:-)  Yeah, I know I'll hear views that I've 
     approached this all wrong ;-)
     

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.