Article View: borland.public.cppbuilder.database.ado
Article #4591Re: Some Field are not editable?
From: Dale
Date: Thu, 01 Nov 2001 16:36
Date: Thu, 01 Nov 2001 16:36
71 lines
2597 bytes
2597 bytes
So I set them to readonly = false. Now I get an error EOleException msg 'Multiple-step operation generated errors. Check each status value' any idea's? "Dale" <Dkrebbers@cenadex.com> wrote in message news:3be17085_1@dnews... > How come HasAccess and OptCode are read only in my dataset while everything > else is editable? > > CREATE PROC UserGroupAccess_lst > @UserGroup VARCHAR(10) > AS > SET NOCOUNT ON > > DECLARE @OpCode INT > SELECT @OpCode = 0 > > --* return the all the functions and an indicator on those > --* that the group has access to > SELECT DISTINCT > b.ModNbr, > b.FuncNbr, > FunctionName, > HasAccess = CASE WHEN EXISTS ( SELECT * > FROM AccessRights c > WHERE Group_Cd = @UserGroup > AND c.FuncNbr = b.FuncNbr) > THEN 1 > ELSE 0 > END, > 'OpCode' = CONVERT (VARCHAR(20),@OpCode)--field for client use > FROM ModuleAccess b > LEFT JOIN AccessRights a ON a.FuncNbr = b.FuncNbr > > > > /*************** Testing Area ******************************* > > UserGroupAccess_lst 'ADM' > sp_helptext usergroupaccess_ins > > usergroupaccess_ins 'adm', 100, 103 > > > select * from accessrights > select * from moduleaccess > select * from usergroup > select * from contacttype > > *************************************************************/ > > > > /************** Modification Log ***************************** > 24-Oct-2001 JR -Initial version > 31-Oct-2001 JR -LEFT Join and add a HasAccess field so clients > -gets all information in one call. Also added > -OpCode field for client use. > > > > > *************************************************************/ > > > >
Technical Details
Message-ID:
<3be17a09_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!194.213.69.151!news.algonet.se!algonet!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3be17085_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,4b27017bf629e59 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-11-01 08:39:25 PST From: "Dale" <Dkrebbers@cenadex.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3be17085_1@dnews> Subject: Re: Some Field are not editable? Date: Thu, 1 Nov 2001 08:36:00 -0800 Lines: 73 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 24.67.186.198 Message-ID: <3be17a09_2@dnews> X-Trace: dnews 1004632585 24.67.186.198 (1 Nov 2001 08:36:25 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!194.213.69.151!news.algonet.se!algonet!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews