| Subject |
shortening references |
| From |
Gaetano <gaetanodd@hotmail.com> |
| Date |
Wed, 2 Sep 2020 06:52:38 +1000 |
| Newsgroups |
dbase.getting-started |
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
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.
|
|