🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: not letting me update??

#1023
From: Bowen Moursund
Date: Mon, 01 Jun 1998 00:00
70 lines
2541 bytes
>I have a very long sql statement opening several files, several joins,
>conditional statements, etc.  The grid comes out great with all the correct
>relations etc.  However, when I try to edit a field, I just get a "beep"
>and I cannot perform an update.

Joins in VdB are very often read only. You can instead link a set of native
tables (.DBF and .DB) using the indexName, masterRowset, and masterFields
properties of the rowset objects of the tables' query objects. Here follows
an example of a datamodule comprised of three related tables from Visual
dBASE\Samples\Mugs\Tables:

** END HEADER -- do not remove this line
//
// Generated on 12/26/1997
//
class demoDataModule of DATAMODULE


   this.CUSTOMER1 = new QUERY()
   this.CUSTOMER1.parent = this
   with (this.CUSTOMER1)
      left = 1.4286
      top = 0.3182
      sql = 'select * from "Customer.dbf"'
      active = true
   endwith

   with (this.CUSTOMER1.rowset)
      indexName = "LAST NAME"
   endwith

   this.INVOICE1 = new QUERY()
   this.INVOICE1.parent = this
   with (this.INVOICE1)
      left = 6.2857
      top = 1.8182
      sql = 'select * from "Invoice.dbf"'
      active = true
   endwith

   with (this.INVOICE1.rowset)
      indexName = "CUSTOMER ID"
      masterRowset = parent.parent.customer1.rowset
      masterFields = "Customer ID"
   endwith

   this.LINEITEM1 = new QUERY()
   this.LINEITEM1.parent = this
   with (this.LINEITEM1)
      left = 11.2857
      top = 3.3182
      sql = 'select * from "Lineitem.dbf"'
      active = true
   endwith

   with (this.LINEITEM1.rowset)
      indexName = "INVOICE ID"
      masterRowset = parent.parent.invoice1.rowset
      masterFields = "Invoice ID"
   endwith

   this.rowset = this.customer1.rowset
endclass
____
Bowen Moursund (TeamB)
bowenNOSPAM@nerds.com
http://lonestar.texas.net/~moursund/
Try this help resource:
 http://www.dejanews.com/home_ps.shtml
Technical Details
Message-ID: <6kv5eq$k7615@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bd8d91$b5126d60$cd237da3@miles.allworld.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,17b280fd54be51c
X-Google-Attributes: gidff5a1,public
From: "Bowen Moursund" <<teamb@opto-pps.com>
Subject: Re: not letting me update??
Date: 1998/06/01
Message-ID: <6kv5eq$k7615@forums.borland.com>
X-Deja-AN: 358578007
Content-Transfer-Encoding: 7bit
References: <01bd8d91$b5126d60$cd237da3@miles.allworld.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: DataTech
Newsgroups: borland.public.vdbase.data.sql