🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.forms
Article #110

Re: Filter on a Form

#110
From: Bowen Moursund (dBASE, Inc.)
Date: Sun, 14 Mar 1999 00:00
31 lines
1571 bytes
>I have a form with 2 table in relation father-child 1:N;
>I must in the same table filter the rowset for same fields of the father
>table and one field of the child table and the  query do need to be live
for
>modified it.
>I input the filter option in same entryfield object and then i apply the
>form.query1.rowset.filter=.... value of entryfiled
>
>How i can do for filter also a field of the child table?? Can i do the
>CanGetRow() function?? How i can use it??

You must apply the constraint using an independent instance of the child
query, e.g.:

this.ChildConstraint = new query()
with (this.ChildConstraint )
   sql = ........
endwith

with (this.ChildConstraint.rowset)
   indexName = "TAGNAME"
endif

function ConstraintQuery_OnOpen
   this.parent.ParentQuery.ConstraintRowset = this

function ParentRowset_CanGetRow
   return this.ConstraintRowset.findKey( <expression> )
____
Bowen Moursund (dBASE, Inc.)
bowen at nerds dot com
Technical Details
Message-ID: <7cgp8i$shv14@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7cfvef$rl29@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 15bdfb,1f846337e5042aa2
X-Google-Attributes: gid15bdfb,public
From: "Bowen Moursund (dBASE, Inc.)" <bowenNOSPAM@nerds.com>
Subject: Re: Filter on a Form
Date: 1999/03/14
Message-ID: <7cgp8i$shv14@forums.borland.com>
X-Deja-AN: 454893885
Content-Transfer-Encoding: 7bit
References: <7cfvef$rl29@forums.borland.com>
Content-Type: text/plain; charset="iso-8859-1"
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.vdbase.forms