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.

Scrolling up/down to the particular field of the datawindow on tabpage

2 posts in Objects Last posting was on 2008-08-28 18:01:07.0Z
Dewajyoti Pani Posted on 2008-05-13 13:44:35.0Z
Sender: 9e0.482997d6.1804289383@sybase.com
From: Dewajyoti Pani
Newsgroups: sybase.public.powerbuilder.objects
Subject: Scrolling up/down to the particular field of the datawindow on tabpage
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <48299b43.a48.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 13 May 2008 06:44:35 -0700
X-Trace: forums-1-dub 1210686275 10.22.241.41 (13 May 2008 06:44:35 -0700)
X-Original-Trace: 13 May 2008 06:44:35 -0700, 10.22.241.41
Lines: 29
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9687
Article PK: 736829

Hi,
We have placed a free form datawindow on a tab page
(inherited from user object)and the datawindow has got so
many fields. We have put some validations at user object
level for some required fields to force the user to enter
the data. We have added the PB function setfocus(),
scrolltorow() and then setcolumn() so that the foucs scroll
to the particular field if user does not enter data. But
the focus does not scroll down to the particular column and
we have to use scrollbar to look for the field which failed
the validation.

We want that if the particular field on the datawindow is
not on the current page of the screen then if user does not
specify the value for this field then the System should
scroll up/down to that field and that field should display
in the current page.

If the datawindow is placed on a window object then the same
set of codes works to scroll up/down the screen to display
the field.

Please help us in figuring out how this issue can be fixed?

We will appreciate the quick reply from your end.

Thanks

Dewajyoti


"John Olson [Team Sybase]" <john.olson Posted on 2008-08-28 18:01:07.0Z
From: "John Olson [Team Sybase]" <john.olson@nospam_teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <48299b43.a48.1681692777@sybase.com>
Subject: Re: Scrolling up/down to the particular field of the datawindow on tabpage
Lines: 43
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.3138
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48b6e7e3@forums-1-dub>
Date: 28 Aug 2008 11:01:07 -0700
X-Trace: forums-1-dub 1219946467 10.22.241.152 (28 Aug 2008 11:01:07 -0700)
X-Original-Trace: 28 Aug 2008 11:01:07 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9765
Article PK: 736896

Does it scroll vertically to the correct row, but not scroll horizontally to
the current column? That is the correct behavior. If it isn't scrolling to
the current row then either the code is somehow different when your dw
control is on the tab page than when it is on the window OR there is a bug
in PB.

Regards,
John

Team Sybase

<Dewajyoti Pani> wrote in message news:48299b43.a48.1681692777@sybase.com...
> Hi,
> We have placed a free form datawindow on a tab page
> (inherited from user object)and the datawindow has got so
> many fields. We have put some validations at user object
> level for some required fields to force the user to enter
> the data. We have added the PB function setfocus(),
> scrolltorow() and then setcolumn() so that the foucs scroll
> to the particular field if user does not enter data. But
> the focus does not scroll down to the particular column and
> we have to use scrollbar to look for the field which failed
> the validation.
>
> We want that if the particular field on the datawindow is
> not on the current page of the screen then if user does not
> specify the value for this field then the System should
> scroll up/down to that field and that field should display
> in the current page.
>
> If the datawindow is placed on a window object then the same
> set of codes works to scroll up/down the screen to display
> the field.
>
> Please help us in figuring out how this issue can be fixed?
>
> We will appreciate the quick reply from your end.
>
> Thanks
>
> Dewajyoti