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.

Getrow function giving false row value, for a protected column.

3 posts in DataWindow Last posting was on 2009-04-29 08:17:27.0Z
sudharsan Posted on 2009-03-23 07:22:54.0Z
Sender: 1323.49c735d4.1804289383@sybase.com
From: sudharsan
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Getrow function giving false row value, for a protected column.
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <49c738ce.1391.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 22 Mar 2009 23:22:54 -0800
X-Trace: forums-1-dub 1237792974 10.22.241.41 (22 Mar 2009 23:22:54 -0800)
X-Original-Trace: 22 Mar 2009 23:22:54 -0800, 10.22.241.41
Lines: 17
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89040
Article PK: 418292

Hi,
I am using PowerBuilder 10.5. I have created a window which
has datawindow control in it. It consists of 3 columns x,y
and z.

the first 2 columns are protected manually and 3 coln is
editable.

When I select any of the row in the protected column, the
function returns value 1. But when I select the unproctected
row. it returns the correct row number.

I tried the same with Getselectedrow(0) function. returns
the same result..

pls send a soln to solve this problem.
thank you.


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-03-23 11:27:56.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <49c738ce.1391.1681692777@sybase.com>
Subject: Re: Getrow function giving false row value, for a protected column.
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49c7723c@forums-1-dub>
Date: 23 Mar 2009 03:27:56 -0800
X-Trace: forums-1-dub 1237807676 10.22.241.152 (23 Mar 2009 03:27:56 -0800)
X-Original-Trace: 23 Mar 2009 03:27:56 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89043
Article PK: 418294

I'm guessing you clicked on a protected column, so focus couldn't go there.
Try using the SetRow function in the Clicked event.

--
Report Bugs: http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement

<sudharsan> wrote in message news:49c738ce.1391.1681692777@sybase.com...
> Hi,
> I am using PowerBuilder 10.5. I have created a window which
> has datawindow control in it. It consists of 3 columns x,y
> and z.
>
> the first 2 columns are protected manually and 3 coln is
> editable.
>
> When I select any of the row in the protected column, the
> function returns value 1. But when I select the unproctected
> row. it returns the correct row number.
>
> I tried the same with Getselectedrow(0) function. returns
> the same result..
>
> pls send a soln to solve this problem.
> thank you.


Ivaylo Ivanov Posted on 2009-04-29 08:17:27.0Z
From: "Ivaylo Ivanov" <NOSPAM_i.ivanov@isy-dc.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <49c738ce.1391.1681692777@sybase.com> <49c7723c@forums-1-dub>
Subject: Re: Getrow function giving false row value, for a protected column.
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <49f80d17$1@forums-1-dub>
Date: 29 Apr 2009 01:17:27 -0700
X-Trace: forums-1-dub 1240993047 10.22.241.152 (29 Apr 2009 01:17:27 -0700)
X-Original-Trace: 29 Apr 2009 01:17:27 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89206
Article PK: 418459

BTW, if your third column is protected for some of the rows (by some
expression for its Protected property), using SetRow or ScrollToRow or
anything else won't position to the entirely protected row, thus way if you,
for example, have RowFocusIndicator set for the control and some Delete
button working for the current row would not be available in any way for
such rows.

Ivaylo

"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
news:49c7723c@forums-1-dub...
> I'm guessing you clicked on a protected column, so focus couldn't go
> there.
> Try using the SetRow function in the Clicked event.
>
> --
> Report Bugs: http://case-express.sybase.com/cx/welcome.do
> Product Enhancement Requests:
> http://my.isug.com/cgi-bin/1/c/submit_enhancement
>
> <sudharsan> wrote in message news:49c738ce.1391.1681692777@sybase.com...
>> Hi,
>> I am using PowerBuilder 10.5. I have created a window which
>> has datawindow control in it. It consists of 3 columns x,y
>> and z.
>>
>> the first 2 columns are protected manually and 3 coln is
>> editable.
>>
>> When I select any of the row in the protected column, the
>> function returns value 1. But when I select the unproctected
>> row. it returns the correct row number.
>>
>> I tried the same with Getselectedrow(0) function. returns
>> the same result..
>>
>> pls send a soln to solve this problem.
>> thank you.
>
>