| Date: | Sat, 5 Oct 2002 08:21:45 -0700 |
| Reply-To: | Deborah Testa <dtesta@SEVENOFNINESYSTEMS.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Deborah Testa <dtesta@SEVENOFNINESYSTEMS.COM> |
| Organization: | MindSpring Enterprises |
| Subject: | Re: Turning Off Error Conditions in a AF Form Viewer |
|---|
Hi Richard,
The object is a radio box control rather than a push button control, and it
has two items: Save and Cancel. By default, Save is selected. Beneath it
there is a push button control labelled 'Exit" with commandOnClick = 'End'.
I guess what I need to do is have code in the radio box section to do two
things when the user changes the selection from Save ro Cancel: 1) set my
own variable to 'Cancel,' a value that gets passed back to the calling
frame, and 2) execute the cancel command and close everything without the
user having to click on the 'Exit' button. From what you've said below,
that second part should bypass the form viewer errors. What is the syntax
for executing the cancel command in SCL as opposed to having it driven by a
push button control's attribute?
Thanks for your help, as always.
D.
"Richard A. DeVenezia" <radevenz@ix.netcom.com> wrote in message
news:pyun9.4514$G%1.2159@tornadotest1.news.pas.earthlink.net...
> "Deborah Testa" <dtesta@sevenofninesystems.com> wrote in message
> news:ank894$ilf$1@nntp9.atl.mindspring.net...
> > Hello,
> >
> > If a form viewer's model SCL has created an error condition, I would
like
> my
> > users to be able to click on a cancel button outside the form viewer and
> > exit. Can I use the cancel button's labelled section to turn off all
> error
> > conditions in the form viewer, without knowing the offending column's
> name?
> > I can't seem to turn off the error condition without entering data in
the
> > column. Usually I would turn off an error condition in the model SCL,
> but
> > it doesn't recognize the click on the cancel button because it's outside
> of
> > the form viewer and the model SCL only reacts to events inside the form
> > viewer.
> >
> > Thanks,
> >
> > Deborah
> >
> >
>
> Deborah:
>
> When you say cancel do you really mean cancel ?
> If you configure the push button to have commandOnClick = 'Cancel', the
> form viewer errors should be ignored and the frame should close.
> If the button has no command or a command such as OK, the errors in the
> form will prevent the frame from closing (what I expect you are
> experiencing).
>
> If the cancel button does not do the cancel command, what is the rational
?
>
> --
> Richard A. DeVenezia
> http://www.devenezia.com/downloads/sas/af
>
>
|