Subject Re: replace command
From Gaetano D. <gaetanodd@hotmail.com>
Date Sun, 2 May 2021 06:21:49 +1000
Newsgroups dbase.getting-started

On 2/05/2021 1:44, Mervyn Bick wrote:
> On 2021/05/01 11:40, Gaetano D. wrote:
>
>> I just tried an entryfield inside a container object, and it does
>> understand "form.rowset". I am lost now... I thought that direct
>> parenthood was the dividing line... but obviously not. Since "this"
>> means the entryfield in the entryfield's onChange event, and
>> this.parent is the container, how does this entryfield inside the
>> container know about the form object?
>
> I can't replicate this.
>
> In the attached example the entryfield's onChange event handler has no
> problem writing to the form's rowset.
>
> Mervyn.

that is what I was saying: "it DOES understand" :)

I wonder why this awareness of the form could not be extended to the
rowset "branch", after all the rowset is attached to a query that is
attached to the form... I get that it works, but I don't get why it
doesn't work for rowsets because they are attached to the form in the
same way (as far as I can tell...).

Gaetano.