T.R | Title | User | Personal Name | Date | Lines |
---|
3429.1 | ;;.CR;; | SCOTTC::MARSHALL | Spitfire Drivers Do It Topless | Thu Oct 21 1993 18:36 | 15 |
| Hi,
You can "re-program" the RETURN key by adding a named data item for ;;.CR;;
For example:
;;.CR;;
GET OA$DISPLAY = "You hit RETURN" \ OA$FLD_STAY
Will display the message if the user hits reutnr, and leave them on the same
field.
Scott
|
3429.2 | OA$FLD_PAGE_FORWARD | SCOTTC::MARSHALL | Spitfire Drivers Do It Topless | Thu Oct 21 1993 18:38 | 9 |
| PS
In your specific case you'll want to use the OA$FLD_PAGE_FORWARD function on all
but the last form, then OA$FLD_DONE on the last form.
Alternatively, you don't need anything for the last form, as you're using the
'standard' action for the RETURN key there anyway!
Scott
|
3429.3 | Close but... | USHS01::LIN | Terry Lin | Thu Oct 21 1993 23:21 | 17 |
| Scott,
I have tried your suggestion with:
First form name data ;;.CR;;
OA$FLD_PAGE_FORWARD
Last formm name data ;;.CR;;
OA$FLD_DONE
At the last form, with return, it brings me back to the first form
and doesn't exit. Is it a bug or someing I am missing? Thanks.f7
and without OA$FLD_DONE on the
last form
|
3429.4 | What should the rest of your reply have said? | SCOTTC::MARSHALL | Spitfire Drivers Do It Topless | Fri Oct 22 1993 12:14 | 6 |
| >> and without OA$FLD_DONE on the last form...
Yes? What were you going to say? If you don't have the named data on the last
form, it should all work "as normal", are you saying that it doesn't?
Scott
|
3429.5 | Yes both case | USHS01::LIN | Terry Lin | Fri Oct 22 1993 16:21 | 8 |
| Scott,
I tried both with and without OA$FLD_DONE in the last form. Both
cases, Return at the last form does not exit - it just brings the
first form. Thanks.
|
3429.6 | This should do it! | SCOTTC::MARSHALL | Spitfire Drivers Do It Topless | Mon Oct 25 1993 13:00 | 21 |
| Hi,
OK, I made a slight mistake; in a .FORM_SET the named data of the first form
applies to all subsequent forms, so ALL-IN-1 sees your original
OA$FLD_PAGE_FORWARD before the OA$FLD_DONE.
You have two options:
1) Don't make the forms be a form set, instead have them as individual forms.
The named data for this could get quite tricky.
2) Keep the .FORM_SET, and add the following named data item to the first form
only (ie subsequent forms should not have any named data for .CR):
;;.CR;;
.IF OA$FORM_NAME EQS "last-form" THEN OA$FLD_DONE ELSE OA$FLD_PAGE_FORWARD
where last-form is the name of the last form in the form set.
Scott
|
3429.7 | Option 1 | USHS01::LIN | Terry Lin | Wed Oct 27 1993 15:25 | 4 |
| .IF OA$FORM_NAME EQS "last-form" THEN OA$FLD_DONE ELSE OA$FLD_PAGE_FORWARD
OA$FORM_NAME always returns first-form name in a form set. It is just
looping. It seems that your first option is the only choice.
|
3429.8 | Another try | SCOTTC::MARSHALL | Spitfire Drivers Do It Topless | Wed Oct 27 1993 18:10 | 13 |
| OK, how about this:
Make all the field names on the last form begin with some common sequence that
does not appear at the beginning of field names of any other forms in the form
set. For example, make them all begin "XX_"
Then change the .IF to be:
.IF OA$FIELD_NAME = "XX_" THEN ...
(The single = means "BEGINS WITH")
Scott (rapidly running out of ideas! :-)
|