Subject Re: shortening references
From Lee Grant <camilee@nospam.comcast.net>
Date Tue, 1 Sep 2020 17:32:16 -0400
Newsgroups dbase.getting-started

Gaetano,

It might just be a typo but.....

On 9/1/2020 4:52 PM, Gaetano wrote:
>
> I am trying to shorten script references by creating a shortcut to the
> FORM object. This is in the tutorial's customer.wfm form that is
> subclassed from the base.cfm form, in case it matters.
>
> I found this suggestion from Michael Nuwer and Ken in an old post but I
> am unable to implement it.
>
> -------------------
> function from_onOpen
              ^
Could this be the problem?


> this.fMytablename1=form.testdatamaodule1.Mytablename1.rowset.fields
>
> function whatever
> form.fMytablename1["myfieldName"].value
> --------------------
>
>
> Essentially, in the canSave event of customer.wfm, I want to write
> something like:
>
> oF.mytoolbar1.resetToolbar()
>
> instead of
>
> this.parent.parent.parent.mytoolbar1.resetToolbar()
>
> Thanks for your help.
>
> Cheers,
> Gaetano.
>