🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SQL and GRID object

#755
From: Doug MacKinnon
Date: Sun, 12 Jul 1998 00:00
71 lines
2062 bytes
I have changed this to a datamodule and now the data will show correctly for
the first rowset when I open the form.  The problem is that the form's
navigation changes the fulfillment rowset in the grid. I only want the grid
items displayed.

When the customer rowset is changed I want the corresponding info displayed
for the fulfillment info in the grid.

Can anyone help please.

Here is what I've created:

class EntriesDataModule of DATAMODULE


   this.SESSIONTLC = new SESSION()
   this.SESSIONTLC.parent = this
   with (this.SESSIONTLC)
      left = 1
      top = -0.0455
      lockRetryInterval = 0
   endwith


   this.DBTLC = new DATABASE()
   this.DBTLC.parent = this
   with (this.DBTLC)
      left = 7
      top = -0.0455
      databaseName = "TLC"
      session = form.SESSIONTLC
      active = true
   endwith


   this.CUSTOMER1 = new QUERY()
   this.CUSTOMER1.parent = this
   with (this.CUSTOMER1)
      left = 3
      top = 2.5
      database = form.dbtlc
      sql = "@Customer.sql"
      active = true
   endwith


   with (this.CUSTOMER1.rowset)

      indexName = "CUSTOMER ID"
   endwith


   this.FULFILLMENT1 = new QUERY()
   this.FULFILLMENT1.parent = this
   with (this.FULFILLMENT1)
      left = 9
      top = 2.5
      database = form.dbtlc
      sql = "@Fulfillment.sql"
      active = true
   endwith


   with (this.FULFILLMENT1.rowset)

      indexName = "CUSTOMER ID"
      masterRowset = parent.parent.customer1.rowset
      masterFields = "Customer ID"
   endwith

endclass
Technical Details
Message-ID: <6ob676$t5a3@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6o9af8$rrh1@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,9780f046f4c80b16
X-Google-Attributes: gidff5a1,public
From: "Doug MacKinnon" <dmack@home.com>
Subject: Re: SQL and GRID object
Date: 1998/07/12
Message-ID: <6ob676$t5a3@forums.borland.com>
X-Deja-AN: 370796145
References: <6o9af8$rrh1@forums.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.vdbase.data.sql