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.

RowsFocusChanging losing rows

4 posts in DataWindow Last posting was on 2008-06-30 19:25:42.0Z
Chris Kean Posted on 2008-06-27 19:30:52.0Z
From: "Chris Kean" <christopher.kean@stld-cci.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: RowsFocusChanging losing rows
Lines: 25
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: <48653fec$1@forums-1-dub>
Date: 27 Jun 2008 12:30:52 -0700
X-Trace: forums-1-dub 1214595052 10.22.241.152 (27 Jun 2008 12:30:52 -0700)
X-Original-Trace: 27 Jun 2008 12:30:52 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87270
Article PK: 416526

I have a few external datawindows that I fill with data.

I have code in the rowsfocuschanging event to catch if a user has set a
column's value to 0 and inquires if they wish to delete the row.

That part works fine, what I'm running into is if I change rows, and happen
to click (as best I can describe it) between the rows, the app will bomb.

If I debug, what I end up with is the datawindow has a rowcount of say 4, as
I click through the rows, it maintains the 4 rows. Then, when I click
between, rowcount drops to 1. I've verified through getItems that it is
still the first row of the datawindow, but because the rowsfocuschanging
event says the currentrow is something greater than 1 and the datawindow for
some inexplicable reason only has 1 row, that I've clicked on a row that
does not exist.

Any ideas what's going on here? I can successfully reproduce the issue.

Running PB 10.5.2, Build 7611.

Thanks,

Chris


Philip Salgannik Posted on 2008-06-30 12:54:43.0Z
From: "Philip Salgannik" <philemaxNOSPAM@comcast.net>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48653fec$1@forums-1-dub>
Subject: Re: RowsFocusChanging losing rows
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4868d793$1@forums-1-dub>
Date: 30 Jun 2008 05:54:43 -0700
X-Trace: forums-1-dub 1214830483 10.22.241.152 (30 Jun 2008 05:54:43 -0700)
X-Original-Trace: 30 Jun 2008 05:54:43 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87274
Article PK: 416531


"Chris Kean" <christopher.kean@stld-cci.com> wrote in message
news:48653fec$1@forums-1-dub...
>I have a few external datawindows that I fill with data.
>
> I have code in the rowsfocuschanging event to catch if a user has set a
> column's value to 0 and inquires if they wish to delete the row.

What is this check doing in rowsfocuschanging event (instead of
itemchanged) ?


Chris Kean Posted on 2008-06-30 15:08:15.0Z
From: "Chris Kean" <christopher.kean@stld-cci.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48653fec$1@forums-1-dub> <4868d793$1@forums-1-dub>
Subject: Re: RowsFocusChanging losing rows
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
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: <4868f6df$1@forums-1-dub>
Date: 30 Jun 2008 08:08:15 -0700
X-Trace: forums-1-dub 1214838495 10.22.241.152 (30 Jun 2008 08:08:15 -0700)
X-Original-Trace: 30 Jun 2008 08:08:15 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87276
Article PK: 416533

I'm gonna go ahead and say:

Self taught powerbuilder programmer with a terrible teacher :)

That appears to fix it, thanks!

Chris

"Philip Salgannik" <philemaxNOSPAM@comcast.net> wrote in message
news:4868d793$1@forums-1-dub...
>
> "Chris Kean" <christopher.kean@stld-cci.com> wrote in message
> news:48653fec$1@forums-1-dub...
>>I have a few external datawindows that I fill with data.
>>
>> I have code in the rowsfocuschanging event to catch if a user has set a
>> column's value to 0 and inquires if they wish to delete the row.
>
> What is this check doing in rowsfocuschanging event (instead of
> itemchanged) ?
>


Philip Salgannik Posted on 2008-06-30 19:25:42.0Z
Reply-To: "Philip Salgannik" <PhilipSalgannik@work.com>
From: "Philip Salgannik" <PhilipSalgannik@work.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48653fec$1@forums-1-dub> <4868d793$1@forums-1-dub> <4868f6df$1@forums-1-dub>
Subject: Re: RowsFocusChanging losing rows
Lines: 30
Organization: ATWORK
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
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: <48693336$1@forums-1-dub>
Date: 30 Jun 2008 12:25:42 -0700
X-Trace: forums-1-dub 1214853942 10.22.241.152 (30 Jun 2008 12:25:42 -0700)
X-Original-Trace: 30 Jun 2008 12:25:42 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87281
Article PK: 416538

Oh, man. If only half of the posters on these forums were as honest as you
are :-))

"Chris Kean" <christopher.kean@stld-cci.com> wrote in message
news:4868f6df$1@forums-1-dub...
> I'm gonna go ahead and say:
>
> Self taught powerbuilder programmer with a terrible teacher :)
>
> That appears to fix it, thanks!
>
> Chris
>
> "Philip Salgannik" <philemaxNOSPAM@comcast.net> wrote in message
> news:4868d793$1@forums-1-dub...
>>
>> "Chris Kean" <christopher.kean@stld-cci.com> wrote in message
>> news:48653fec$1@forums-1-dub...
>>>I have a few external datawindows that I fill with data.
>>>
>>> I have code in the rowsfocuschanging event to catch if a user has set a
>>> column's value to 0 and inquires if they wish to delete the row.
>>
>> What is this check doing in rowsfocuschanging event (instead of
>> itemchanged) ?
>>
>
>