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.

Display only by row

3 posts in DataWindow Last posting was on 2008-06-30 16:49:04.0Z
Tony9.0.2 Posted on 2008-06-30 15:21:03.0Z
From: "Tony9.0.2" <tmirabelli@comcast.net>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Display only by row
Date: Mon, 30 Jun 2008 08:21:03 -0700 (PDT)
Organization: http://groups.google.com
Lines: 7
Message-ID: <5ae3a661-3221-485c-8c35-15d046c1d3e5@26g2000hsk.googlegroups.com>
NNTP-Posting-Host: 204.182.224.234
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1214839264 14461 127.0.0.1 (30 Jun 2008 15:21:04 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 30 Jun 2008 15:21:04 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 26g2000hsk.googlegroups.com; posting-host=204.182.224.234; posting-account=ffhDJAoAAAAOmyLFytVRO1fmO-yYUnJv
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!26g2000hsk.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87277
Article PK: 416536

Is there a way to turn "display only" on, by row in a datawindow? The
"Protect" property allows this, but is not selectable i.e. unable to
cursor in and highlight characters.

There are rows in my datawindow that, conditionally, should NOT be
updateable, but selectable for copy and paste to another datawindow.
Other rows should, conditionally, be updateable.


Ken Balakrishnan Posted on 2008-06-30 15:41:49.0Z
From: "Ken Balakrishnan" <kNOeSPAMn@cpsREMOVEME92.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <5ae3a661-3221-485c-8c35-15d046c1d3e5@26g2000hsk.googlegroups.com>
Subject: Re: Display only by row
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4868febd$1@forums-1-dub>
Date: 30 Jun 2008 08:41:49 -0700
X-Trace: forums-1-dub 1214840509 10.22.241.152 (30 Jun 2008 08:41:49 -0700)
X-Original-Trace: 30 Jun 2008 08:41:49 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87278
Article PK: 416534

Not in the usual way -- Display Only pertains only to the "Edit" edit style,
and editstyle-specific properties don't support expressions. However, there
are a couple other options I can think of offhand:

1) Set the DisplayOnly property appropriately in the RowFocusChanged event
2) add a second Column object to the datawindow, mapping to the same
underlying table column, and in the same position as the original; make one
of these DisplayOnly and the other editable, and use the appropriate
expression for theVisible property for each one.

HTH,
Ken

"Tony9.0.2" <tmirabelli@comcast.net> wrote in message
news:5ae3a661-3221-485c-8c35-15d046c1d3e5@26g2000hsk.googlegroups.com...
> Is there a way to turn "display only" on, by row in a datawindow? The
> "Protect" property allows this, but is not selectable i.e. unable to
> cursor in and highlight characters.
>
> There are rows in my datawindow that, conditionally, should NOT be
> updateable, but selectable for copy and paste to another datawindow.
> Other rows should, conditionally, be updateable.


Tony9.0.2 Posted on 2008-06-30 16:49:04.0Z
From: "Tony9.0.2" <tmirabelli@comcast.net>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Display only by row
Date: Mon, 30 Jun 2008 09:49:04 -0700 (PDT)
Organization: http://groups.google.com
Lines: 37
Message-ID: <723137b3-49f0-4498-b202-1a1200cbf4d6@c65g2000hsa.googlegroups.com>
References: <5ae3a661-3221-485c-8c35-15d046c1d3e5@26g2000hsk.googlegroups.com> <4868febd$1@forums-1-dub>
NNTP-Posting-Host: 204.182.224.234
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1214844544 22479 127.0.0.1 (30 Jun 2008 16:49:04 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 30 Jun 2008 16:49:04 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: c65g2000hsa.googlegroups.com; posting-host=204.182.224.234; posting-account=ffhDJAoAAAAOmyLFytVRO1fmO-yYUnJv
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!c65g2000hsa.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87280
Article PK: 416535

On Jun 30, 10:41 am, "Ken Balakrishnan" <kNOeSP...@cpsREMOVEME92.com>

wrote:
> Not in the usual way -- Display Only pertains only to the "Edit" edit style,
> and editstyle-specific properties don't support expressions.  However, there
> are a couple other options I can think of offhand:
>
> 1) Set the DisplayOnly property appropriately in the RowFocusChanged event
> 2) add a second Column object to the datawindow, mapping to the same
> underlying table column, and in the same position as the original; make one
> of these DisplayOnly and the other editable, and use the appropriate
> expression for theVisible property for each one.
>
> HTH,
> Ken
>
> "Tony9.0.2" <tmirabe...@comcast.net> wrote in message
>
> news:5ae3a661-3221-485c-8c35-15d046c1d3e5@26g2000hsk.googlegroups.com...
>
>
>
> > Is there a way to turn "display only" on, by row in a datawindow?  The
> > "Protect" property allows this, but is not selectable i.e. unable to
> > cursor in and highlight characters.
>
> > There are rows in my datawindow that, conditionally, should NOT be
> > updateable, but selectable for copy and paste to another datawindow.
> > Other rows should, conditionally, be updateable.- Hide quoted text -
>
> - Show quoted text -

Thanks for both suggestions, Ken. #1 worked nicely!