"//"
Ohmes, Matt
Matt.Ohmes@COGNOS.com
Mon, 20 Sep 1999 11:56:38 -0400
Hi Mikael,
I'm assuming you are using the AUTO option on the screen statement, or
you've coded your own ENTRY procedure? As Michael Lee points, Quick is
documented to run this way. In fact, it is designed to run this way.
Otherwise the operator could not skip that screen. The automatic calling of
another screen is designed to be an operator convenience, not an operator
constraint. You have, as the designer may, of course, override this and
make it required.
The "//" command (skip all) simulates null entries in all input fields in
the current record then returns you to the Action Field. If the operator
puts a value in the last field (or if you make Quick THINK(!) the operator
did, then it will call the screen. You should be able to put an Input
Procedure on the last input field of the screen that looks for a null entry
and sets FIELDTEXT to the record buffer value. Here is an example:
PROCEDURE INPUT LAST_FIELD
BEGIN
IF 0 = SIZE(FIELDTEXT) & ;i.e. the operator didn't enter any value
AND NEWRECORD OF Recordname ; assuming you don't want to do this for old
records
THEN LET FIELDTEXT = LAST_FIELD
END
All this does is assign the initial value of LAST_FIELD to FIELDTEXT so that
Quick thinks the operator typed that value into the field. Even if the
initial value is zero or blank, it will still be non-null and Quick will
process the field. And therefore it will also execute your run screen.
Hope that helps.
Matt 8-)
Matt.Ohmes@Cognos.Com
Cognos Corporation
909 E. Las Colinas Blvd.
Suite 1900
Irving, TX 75039
214-259-6200
"Matt doesn't really know anything. He just likes to pontificate a lot.
We refuse to acknowledge that he works for Cognos or that we have ever
met him or anyone with whom he's ever been associated. Don't lend him
money and don't let him talk to your sister!" ;-)
-----Original Message-----
From: mao@krifapost.dk [mailto:mao@krifapost.dk]
Sent: Monday, September 20, 1999 3:04 AM
To: powerh-l@lists.swau.edu
Subject: "//"
Hi Powerfreaks
In a program I have some input fields and after the last input field I have
a
run screen that returns a value. If I step through the fields with my
enter-key
PH run the screen after the last field, but if I use "//" in one of my
inputfields
PH jumps over my run screen. Are there any way to get PH to run the screen
anyway?
Regards
Mikael
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
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.