Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Changed enabled/display only?

3 posts in DataWindow .NET Last posting was on 2004-11-17 15:24:55.0Z
sdurity Posted on 2004-11-15 20:51:09.0Z
Sender: 32e.4198fe48.1804289383@sybase.com
From: sdurity
Newsgroups: sybase.public.datawindow.net
Subject: Changed enabled/display only?
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <419916bc.55e.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 15 Nov 2004 12:51:09 -0800
X-Trace: forums-1-dub 1100551869 10.22.241.41 (15 Nov 2004 12:51:09 -0800)
X-Original-Trace: 15 Nov 2004 12:51:09 -0800, 10.22.241.41
Lines: 9
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:717
Article PK: 125143

I would like my form to have non-editable fields until the
user pushes an "Edit" Button. (This allows the program to
decide, based on the user, if they are allowed to edit on
the given form.). But I can't figure out how to
programmatically change a control's Enabled Property. I've
tried SetProperty("columname.Enabled","false") and
SetProperty("columname.Enabled","0"). Both crash at runtime
with an "invalid syntax error." Surely there is an easier
way to switch from Edit Mode to read only?!


Jim O'Neil [Sybase] Posted on 2004-11-15 21:44:59.0Z
From: "Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
Newsgroups: sybase.public.datawindow.net
Subject: Re: Changed enabled/display only?
Message-ID: <rj8ip0h7gnf6hgo6tjv496qt359bdh1aoq@4ax.com>
References: <419916bc.55e.1681692777@sybase.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: surfec007.sybase.com
X-Original-NNTP-Posting-Host: surfec007.sybase.com
Date: 15 Nov 2004 13:44:59 -0800
X-Trace: forums-1-dub 1100555099 199.93.176.7 (15 Nov 2004 13:44:59 -0800)
X-Original-Trace: 15 Nov 2004 13:44:59 -0800, surfec007.sybase.com
Lines: 14
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:722
Article PK: 125149

Try SetProperty("columnname.edit.displayonly","yes")

On 15 Nov 2004 12:51:09 -0800, sdurity wrote:

>I would like my form to have non-editable fields until the
>user pushes an "Edit" Button. (This allows the program to
>decide, based on the user, if they are allowed to edit on
>the given form.). But I can't figure out how to
>programmatically change a control's Enabled Property. I've
>tried SetProperty("columname.Enabled","false") and
>SetProperty("columname.Enabled","0"). Both crash at runtime
>with an "invalid syntax error." Surely there is an easier
>way to switch from Edit Mode to read only?!


sdurity Posted on 2004-11-17 15:24:55.0Z
Sender: 1944.419a634b.846930886@sybase.com
From: sdurity
Newsgroups: sybase.public.datawindow.net
Subject: Re: Changed enabled/display only?
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <419b6d47.20eb.1681692777@sybase.com>
References: <rj8ip0h7gnf6hgo6tjv496qt359bdh1aoq@4ax.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 17 Nov 2004 07:24:55 -0800
X-Trace: forums-1-dub 1100705095 10.22.241.41 (17 Nov 2004 07:24:55 -0800)
X-Original-Trace: 17 Nov 2004 07:24:55 -0800, 10.22.241.41
Lines: 3
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:740
Article PK: 125168

> Try SetProperty("columnname.edit.displayonly","yes")

Thank you. This works as I wish.