Subject Re: MENU TITLE in a FORM
From Andy Taylor <andy.taylor@which.net>
Date Mon, 19 Mar 2018 11:15:01 -0400
Newsgroups dbase.getting-started

Mustansir,

1. OPD onClick = {;_app.ViaOPD = true; do opd.wfm}
2. OPDCARD onClick = {;_app.ViaOPD = false; do opdCard.wfm}

Using the onOpen method of opdCard.wfm use:
Pushbuttons.enabled = _app.ViaOPD

Andy

> Dear All
>
> I have a menufile  with following menus
>
> 1. OPD : onclick event it opens opd.wfm file , opd.wfm has another form opdcard.wfm  and opens if required. opdcard.wfm has Pushbuttons enabled here.
>
> 2. OPDCARD: onclick event it opens opdcard.wfm. But here I want same Pushbuttons  to be disabled.
>
>
> Can anybody guide me how to go about
>
> Best Regards
> Mustansir
>
>
> Andy Taylor Wrote:
>
> > Mustansir,
> >
> > Generally speaking a menu attached to a form can be accessed via form.root if you have used the default settings.
> > To check, design a form, attach a menu and put the following in the onOpen method {;inspect(form)}
> > When you run the form you can use the inspector to have a look at the form objects.
> >
> > Andy
> >
> > > Dear All
> > >
> > > I have a form that opens from a menu. I have put code block in the onclick event of menu do xyz.wfm with true.
> > >
> > > How to access menu object inside the form  that opened a form as per above event.
> > >
> > > Best Regards
> > > Mustansir
> >
>