🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #1474

Re: How to create Editable SQL with 2 Tables.

#1474
From: Ken Mayer
Date: Fri, 09 Jan 1998 00:00
24 lines
1322 bytes
Greg Hill wrote:
> 
> Romain,
> I just starting to look at VDB7 and noticed the following:
> 
> masterRowset = parent.parent.MASTER.rowset
> 
> Off hand I do not understand the parent.parent

You have to get a grip on the database object hierarchy to really
understand this:

 form or datamodule (or report)
   query
      rowset

If you are setting the masterRowset for a child table (rowset), since
the container for the query is either a form OR a datamodule OR a report
... the query object doesn't understand a form reference. So, instead,
you have to tell it to go to the parent (query)'s parent
(form/datamodule/report) ... or, this.parent.parent

Ken
Technical Details
Message-ID: <34B64B91.4CBB@corp.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34B44A58.FF0593A5@globalserve.net> <MPG.f1eb4fa56aff3f698a391@forums.borland.com> <34B57256.65F1@n2.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,1aced49375ec2dfa
X-Google-Attributes: gidff5a1,public
From: Ken Mayer <kmayer@corp.borland.com>
Subject: Re: How to create Editable SQL with 2 Tables.
Date: 1998/01/09
Message-ID: <34B64B91.4CBB@corp.borland.com>
X-Deja-AN: 314340705
Content-Transfer-Encoding: 7bit
References: <34B44A58.FF0593A5@globalserve.net> <MPG.f1eb4fa56aff3f698a391@forums.borland.com> <34B57256.65F1@n2.net>
Content-Type: text/plain; charset=us-ascii
Organization: Borland, International
Mime-Version: 1.0
Reply-To: kmayer@corp.borland.com
Newsgroups: borland.public.vdbase.data.sql