🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #4729

Re: Read Only field

#4729
From: Andreas Schmidt
Date: Wed, 21 Nov 2001 17:59
36 lines
1857 bytes
"Dale" <Dkrebbers@cenadex.com> schrieb im Newsbeitrag
news:3bfacb57_2@dnews...
> Here is my proc.  I return it to a  TADODataSet.  The UID field is not
> editable.
>
> I change the readonly property for false, but it fails on Post.
>
> CREATE PROC UserGroup_lst
> AS
> SET NOCOUNT ON
>
> SELECT Group_Cd,
>  Group_Desc,
>  'FullName' = Group_Cd + ' (' + Group_Desc + ')',
>  UID = 0
> FROM UserGroup

The UID field is read-only because it is not connected to any
table column.

You have to change your proc:
SELECT Group_Cd,
  Group_Desc,
  'FullName' = Group_Cd + ' (' + Group_Desc + ')',
  UIDField AS UID
FROM UserGroup

"UIDField" is the name of the field you want UID stored.

greetings
Andreas

--
Database Explorer for ADO (Freeware)
http://www.tobilan.de/adodeskexe.zip
Technical Details
Message-ID: <3bfbeb66_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3bfacb57_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,a6044023aa93f3c8
X-Google-Attributes: gid10698b,public
X-Google-Thread: f5cad,a6044023aa93f3c8
X-Google-Attributes: gidf5cad,public
X-Google-ArrivalTime: 2001-11-21 10:09:27 PST
From: "Andreas Schmidt" <a_j_schmidt@rocketmail.com>
Newsgroups: borland.public.cppbuilder.database.ado,borland.public.delphi.database.ado
References: <3bfacb57_2@dnews>
Subject: Re: Read Only field
Date: Wed, 21 Nov 2001 18:59:02 +0100
Lines: 38
MIME-Version: 1.0
Content-Type: text/plain;
 charset="Windows-1252"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2462.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000
NNTP-Posting-Host: 212.185.107.65
Message-ID: <3bfbeb66_1@dnews>
X-Trace: dnews 1006365542 212.185.107.65 (21 Nov 2001 09:59:02 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews