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.

Changing row when user clicks on a field that doesn't have tab order

6 posts in Pocket PowerBuilder Last posting was on 2003-09-19 13:14:20.0Z
Karen Bailey Posted on 2003-09-18 17:37:26.0Z
From: "Karen Bailey" <baileyk7@hotmail.com>
Newsgroups: sybase.public.pocketpowerbuilder
Subject: Changing row when user clicks on a field that doesn't have tab order
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: 216.209.35.102
Message-ID: <3f69edda@forums-2-dub>
X-Original-Trace: 18 Sep 2003 10:39:38 -0700, 216.209.35.102
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 18 Sep 2003 10:33:50 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 18 Sep 2003 10:37:26 -0700
X-Trace: forums-1-dub 1063906646 10.22.108.75 (18 Sep 2003 10:37:26 -0700)
X-Original-Trace: 18 Sep 2003 10:37:26 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:505
Article PK: 267040

Hi,

I have run into a problem with grid datawindows not correctly changing rows
when the user clicks on a field that doesn't have tab order. If the user
clicks on a field in the grid that does have tab order, the newly clicked
row is correctly selected.

Can anyone give any information on how to select a row a user clicks on when
the field doesn't have tab order?

Thanks in advance,

Karen Bailey


Dave Fish [Team Sybase] Posted on 2003-09-18 17:57:50.0Z
From: dfish@sybase.com (Dave Fish [Team Sybase])
Newsgroups: sybase.public.pocketpowerbuilder
Subject: Re: Changing row when user clicks on a field that doesn't have tab order
Organization: Sybase Professional Services
Reply-To: nospam_dfish@sybase.com_nospam
Message-ID: <3f69f047.50990139@forums.sybase.com>
References: <3f69edda@forums-2-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: vpn-dub-055.sybase.com
X-Original-NNTP-Posting-Host: vpn-dub-055.sybase.com
Date: 18 Sep 2003 10:57:50 -0700
X-Trace: forums-1-dub 1063907870 10.22.120.55 (18 Sep 2003 10:57:50 -0700)
X-Original-Trace: 18 Sep 2003 10:57:50 -0700, vpn-dub-055.sybase.com
Lines: 35
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:506
Article PK: 267039

Hi Karen,

What event did you place your code in. I just tried it with the
rowfocuschanged event and it worked fine if now column had a tab
order. It didn't work if one of the columns had a tab order. I moved
the code to the clicked event and it worked whether any of the
columns had a tab order or not.

I'm not sure if this is a bug or intended behavior. When I get a
chance I'll try it in PB 9 and see what happens. In the meantime try
putting your code in the clicked event of the DataWindow control.

Regards,
Dave Fish
Sybase Technical Evangelist

On 18 Sep 2003 10:37:26 -0700, "Karen Bailey" <baileyk7@hotmail.com>

wrote:

>Hi,
>
>I have run into a problem with grid datawindows not correctly changing rows
>when the user clicks on a field that doesn't have tab order. If the user
>clicks on a field in the grid that does have tab order, the newly clicked
>row is correctly selected.
>
>Can anyone give any information on how to select a row a user clicks on when
>the field doesn't have tab order?
>
>Thanks in advance,
>
>Karen Bailey
>
>


Karen Bailey Posted on 2003-09-18 19:11:28.0Z
From: "Karen Bailey" <baileyk7@hotmail.com>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f69edda@forums-2-dub> <3f69f047.50990139@forums.sybase.com>
Subject: Re: Changing row when user clicks on a field that doesn't have tab order
Lines: 59
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 216.209.35.102
X-Original-NNTP-Posting-Host: 216.209.35.102
Message-ID: <3f6a0360@forums-1-dub>
Date: 18 Sep 2003 12:11:28 -0700
X-Trace: forums-1-dub 1063912288 216.209.35.102 (18 Sep 2003 12:11:28 -0700)
X-Original-Trace: 18 Sep 2003 12:11:28 -0700, 216.209.35.102
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:507
Article PK: 267041

Hi Dave,

I put messaging in clicked and in rowfocuschanged.

Clicked seems to be behind the mouse click and displays getrow() as the
previously selected row. rowfocuschanged displays as the currently clicked
row.

The problem is that clicking a row by clicking on a field that doesn't have
tab order doesn't seem to fire rowfocuschanged. Using getrow() after
clicking on different row after clicking on a column that does not have tab
order displays the previously selected row.

Any ideas how to get around this?

Karen

"Dave Fish [Team Sybase]" <dfish@sybase.com> wrote in message
news:3f69f047.50990139@forums.sybase.com...
> Hi Karen,
>
> What event did you place your code in. I just tried it with the
> rowfocuschanged event and it worked fine if now column had a tab
> order. It didn't work if one of the columns had a tab order. I moved
> the code to the clicked event and it worked whether any of the
> columns had a tab order or not.
>
> I'm not sure if this is a bug or intended behavior. When I get a
> chance I'll try it in PB 9 and see what happens. In the meantime try
> putting your code in the clicked event of the DataWindow control.
>
> Regards,
> Dave Fish
> Sybase Technical Evangelist
>
> On 18 Sep 2003 10:37:26 -0700, "Karen Bailey" <baileyk7@hotmail.com>
> wrote:
>
> >Hi,
> >
> >I have run into a problem with grid datawindows not correctly changing
rows
> >when the user clicks on a field that doesn't have tab order. If the user
> >clicks on a field in the grid that does have tab order, the newly clicked
> >row is correctly selected.
> >
> >Can anyone give any information on how to select a row a user clicks on
when
> >the field doesn't have tab order?
> >
> >Thanks in advance,
> >
> >Karen Bailey
> >
> >
>


Dave Fish [Team Sybase] Posted on 2003-09-18 21:23:03.0Z
From: dfish@sybase.com (Dave Fish [Team Sybase])
Newsgroups: sybase.public.pocketpowerbuilder
Subject: Re: Changing row when user clicks on a field that doesn't have tab order
Organization: Sybase Professional Services
Reply-To: nospam_dfish@sybase.com_nospam
Message-ID: <3f6a2082.3249081@forums.sybase.com>
References: <3f69edda@forums-2-dub> <3f69f047.50990139@forums.sybase.com> <3f6a0360@forums-1-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
X-Original-NNTP-Posting-Host: vpn-dub-047.sybase.com
X-Original-Trace: 18 Sep 2003 14:25:15 -0700, vpn-dub-047.sybase.com
Lines: 83
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 18 Sep 2003 14:19:26 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 18 Sep 2003 14:23:03 -0700
X-Trace: forums-1-dub 1063920183 10.22.108.75 (18 Sep 2003 14:23:03 -0700)
X-Original-Trace: 18 Sep 2003 14:23:03 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:510
Article PK: 267043

Here is the code I placed in the clicked event of the DataWindow
control:

this.SelectRow(0,FALSE)
this.SelectRow(row,TRUE)

Whenever I click on a row (either a column with a tab order or
without) it highlights the correct row. The row argument for the
clicked event seems to have the correct row number. This did not work
in the rowfocusedchanged event so I suspect it is a bug. Clicked event
should be your workaround, but don't use getrow(), just use the row
argument provided by the clicked event.

I'm using PPB 1.0.1.

Regards,
Dave Fish
Sybase Technical Evangelist

On 18 Sep 2003 12:11:28 -0700, "Karen Bailey" <baileyk7@hotmail.com>

wrote:

>Hi Dave,
>
>I put messaging in clicked and in rowfocuschanged.
>
>Clicked seems to be behind the mouse click and displays getrow() as the
>previously selected row. rowfocuschanged displays as the currently clicked
>row.
>
>The problem is that clicking a row by clicking on a field that doesn't have
>tab order doesn't seem to fire rowfocuschanged. Using getrow() after
>clicking on different row after clicking on a column that does not have tab
>order displays the previously selected row.
>
>Any ideas how to get around this?
>
>Karen
>
>
>"Dave Fish [Team Sybase]" <dfish@sybase.com> wrote in message
>news:3f69f047.50990139@forums.sybase.com...
>> Hi Karen,
>>
>> What event did you place your code in. I just tried it with the
>> rowfocuschanged event and it worked fine if now column had a tab
>> order. It didn't work if one of the columns had a tab order. I moved
>> the code to the clicked event and it worked whether any of the
>> columns had a tab order or not.
>>
>> I'm not sure if this is a bug or intended behavior. When I get a
>> chance I'll try it in PB 9 and see what happens. In the meantime try
>> putting your code in the clicked event of the DataWindow control.
>>
>> Regards,
>> Dave Fish
>> Sybase Technical Evangelist
>>
>> On 18 Sep 2003 10:37:26 -0700, "Karen Bailey" <baileyk7@hotmail.com>
>> wrote:
>>
>> >Hi,
>> >
>> >I have run into a problem with grid datawindows not correctly changing
>rows
>> >when the user clicks on a field that doesn't have tab order. If the user
>> >clicks on a field in the grid that does have tab order, the newly clicked
>> >row is correctly selected.
>> >
>> >Can anyone give any information on how to select a row a user clicks on
>when
>> >the field doesn't have tab order?
>> >
>> >Thanks in advance,
>> >
>> >Karen Bailey
>> >
>> >
>>
>
>


Chris Pollach Posted on 2003-09-19 11:48:33.0Z
From: "Chris Pollach" <PollachC@SCC-CSC.gc.ca>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f69edda@forums-2-dub> <3f69f047.50990139@forums.sybase.com> <3f6a0360@forums-1-dub> <3f6a2082.3249081@forums.sybase.com>
Subject: Re: Changing row when user clicks on a field that doesn't have tab order
Lines: 107
Organization: The Supreme Court of Canada
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Original-NNTP-Posting-Host: firewall.scc-csc.gc.ca
Message-ID: <3f6aed93$1@forums-2-dub>
X-Original-Trace: 19 Sep 2003 04:50:43 -0700, firewall.scc-csc.gc.ca
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 19 Sep 2003 04:44:49 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 19 Sep 2003 04:48:33 -0700
X-Trace: forums-1-dub 1063972113 10.22.108.75 (19 Sep 2003 04:48:33 -0700)
X-Original-Trace: 19 Sep 2003 04:48:33 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:516
Article PK: 267050

Dave;

This is working for me in the RFC event ...

IF ib_row_highlighing = TRUE THEN // Highlighting required?
IF currentrow > 0 THEN // YES, In Detail band?
THIS.SelectRow (0, FALSE) // YES, Highligh OFF!
THIS.SelectRow (currentrow, TRUE) // Highlight ON!
END IF
END IF

Regards ... Chris

"Dave Fish [Team Sybase]" <dfish@sybase.com> wrote in message
news:3f6a2082.3249081@forums.sybase.com...
>
> Here is the code I placed in the clicked event of the DataWindow
> control:
>
> this.SelectRow(0,FALSE)
> this.SelectRow(row,TRUE)
>
> Whenever I click on a row (either a column with a tab order or
> without) it highlights the correct row. The row argument for the
> clicked event seems to have the correct row number. This did not work
> in the rowfocusedchanged event so I suspect it is a bug. Clicked event
> should be your workaround, but don't use getrow(), just use the row
> argument provided by the clicked event.
>
> I'm using PPB 1.0.1.
>
> Regards,
> Dave Fish
> Sybase Technical Evangelist
>
> On 18 Sep 2003 12:11:28 -0700, "Karen Bailey" <baileyk7@hotmail.com>
> wrote:
>
> >Hi Dave,
> >
> >I put messaging in clicked and in rowfocuschanged.
> >
> >Clicked seems to be behind the mouse click and displays getrow() as the
> >previously selected row. rowfocuschanged displays as the currently
clicked
> >row.
> >
> >The problem is that clicking a row by clicking on a field that doesn't
have
> >tab order doesn't seem to fire rowfocuschanged. Using getrow() after
> >clicking on different row after clicking on a column that does not have
tab
> >order displays the previously selected row.
> >
> >Any ideas how to get around this?
> >
> >Karen
> >
> >
> >"Dave Fish [Team Sybase]" <dfish@sybase.com> wrote in message
> >news:3f69f047.50990139@forums.sybase.com...
> >> Hi Karen,
> >>
> >> What event did you place your code in. I just tried it with the
> >> rowfocuschanged event and it worked fine if now column had a tab
> >> order. It didn't work if one of the columns had a tab order. I moved
> >> the code to the clicked event and it worked whether any of the
> >> columns had a tab order or not.
> >>
> >> I'm not sure if this is a bug or intended behavior. When I get a
> >> chance I'll try it in PB 9 and see what happens. In the meantime try
> >> putting your code in the clicked event of the DataWindow control.
> >>
> >> Regards,
> >> Dave Fish
> >> Sybase Technical Evangelist
> >>
> >> On 18 Sep 2003 10:37:26 -0700, "Karen Bailey" <baileyk7@hotmail.com>
> >> wrote:
> >>
> >> >Hi,
> >> >
> >> >I have run into a problem with grid datawindows not correctly changing
> >rows
> >> >when the user clicks on a field that doesn't have tab order. If the
user
> >> >clicks on a field in the grid that does have tab order, the newly
clicked
> >> >row is correctly selected.
> >> >
> >> >Can anyone give any information on how to select a row a user clicks
on
> >when
> >> >the field doesn't have tab order?
> >> >
> >> >Thanks in advance,
> >> >
> >> >Karen Bailey
> >> >
> >> >
> >>
> >
> >
>


Karen Bailey Posted on 2003-09-19 13:14:20.0Z
From: "Karen Bailey" <baileyk7@hotmail.com>
Newsgroups: sybase.public.pocketpowerbuilder
References: <3f69edda@forums-2-dub> <3f69f047.50990139@forums.sybase.com> <3f6a0360@forums-1-dub> <3f6a2082.3249081@forums.sybase.com> <3f6aed93$1@forums-2-dub>
Subject: Re: Changing row when user clicks on a field that doesn't have tab order
Lines: 120
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: 216.209.35.102
Message-ID: <3f6b01b0@forums-2-dub>
X-Original-Trace: 19 Sep 2003 06:16:32 -0700, 216.209.35.102
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 19 Sep 2003 06:10:37 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 19 Sep 2003 06:14:20 -0700
X-Trace: forums-1-dub 1063977260 10.22.108.75 (19 Sep 2003 06:14:20 -0700)
X-Original-Trace: 19 Sep 2003 06:14:20 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.pocketpowerbuilder:519
Article PK: 267051

Great, thanks guys.

Your right Dave, the getrow() function was the problem.

Thanks alot,

Karen

"Chris Pollach" <PollachC@SCC-CSC.gc.ca> wrote in message
news:3f6aed93$1@forums-2-dub...
> Dave;
>
> This is working for me in the RFC event ...
>
> IF ib_row_highlighing = TRUE THEN // Highlighting required?
> IF currentrow > 0 THEN // YES, In Detail band?
> THIS.SelectRow (0, FALSE) // YES, Highligh OFF!
> THIS.SelectRow (currentrow, TRUE) // Highlight ON!
> END IF
> END IF
>
> Regards ... Chris
>
>
> "Dave Fish [Team Sybase]" <dfish@sybase.com> wrote in message
> news:3f6a2082.3249081@forums.sybase.com...
> >
> > Here is the code I placed in the clicked event of the DataWindow
> > control:
> >
> > this.SelectRow(0,FALSE)
> > this.SelectRow(row,TRUE)
> >
> > Whenever I click on a row (either a column with a tab order or
> > without) it highlights the correct row. The row argument for the
> > clicked event seems to have the correct row number. This did not work
> > in the rowfocusedchanged event so I suspect it is a bug. Clicked event
> > should be your workaround, but don't use getrow(), just use the row
> > argument provided by the clicked event.
> >
> > I'm using PPB 1.0.1.
> >
> > Regards,
> > Dave Fish
> > Sybase Technical Evangelist
> >
> > On 18 Sep 2003 12:11:28 -0700, "Karen Bailey" <baileyk7@hotmail.com>
> > wrote:
> >
> > >Hi Dave,
> > >
> > >I put messaging in clicked and in rowfocuschanged.
> > >
> > >Clicked seems to be behind the mouse click and displays getrow() as the
> > >previously selected row. rowfocuschanged displays as the currently
> clicked
> > >row.
> > >
> > >The problem is that clicking a row by clicking on a field that doesn't
> have
> > >tab order doesn't seem to fire rowfocuschanged. Using getrow() after
> > >clicking on different row after clicking on a column that does not have
> tab
> > >order displays the previously selected row.
> > >
> > >Any ideas how to get around this?
> > >
> > >Karen
> > >
> > >
> > >"Dave Fish [Team Sybase]" <dfish@sybase.com> wrote in message
> > >news:3f69f047.50990139@forums.sybase.com...
> > >> Hi Karen,
> > >>
> > >> What event did you place your code in. I just tried it with the
> > >> rowfocuschanged event and it worked fine if now column had a tab
> > >> order. It didn't work if one of the columns had a tab order. I moved
> > >> the code to the clicked event and it worked whether any of the
> > >> columns had a tab order or not.
> > >>
> > >> I'm not sure if this is a bug or intended behavior. When I get a
> > >> chance I'll try it in PB 9 and see what happens. In the meantime try
> > >> putting your code in the clicked event of the DataWindow control.
> > >>
> > >> Regards,
> > >> Dave Fish
> > >> Sybase Technical Evangelist
> > >>
> > >> On 18 Sep 2003 10:37:26 -0700, "Karen Bailey" <baileyk7@hotmail.com>
> > >> wrote:
> > >>
> > >> >Hi,
> > >> >
> > >> >I have run into a problem with grid datawindows not correctly
changing
> > >rows
> > >> >when the user clicks on a field that doesn't have tab order. If the
> user
> > >> >clicks on a field in the grid that does have tab order, the newly
> clicked
> > >> >row is correctly selected.
> > >> >
> > >> >Can anyone give any information on how to select a row a user clicks
> on
> > >when
> > >> >the field doesn't have tab order?
> > >> >
> > >> >Thanks in advance,
> > >> >
> > >> >Karen Bailey
> > >> >
> > >> >
> > >>
> > >
> > >
> >
>
>