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.

How do you get the y position of a selected row

4 posts in DataWindow Last posting was on 2008-05-13 16:59:25.0Z
Shashi Gogia Posted on 2008-05-13 03:29:39.0Z
Sender: 7906.482906c3.1804289383@sybase.com
From: Shashi Gogia
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: How do you get the y position of a selected row
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <48290b23.796b.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 12 May 2008 20:29:39 -0700
X-Trace: forums-1-dub 1210649379 10.22.241.41 (12 May 2008 20:29:39 -0700)
X-Original-Trace: 12 May 2008 20:29:39 -0700, 10.22.241.41
Lines: 15
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86824
Article PK: 416083

Hi all,
While the x position of any column is simple, I need help to
get the y position of the same exact column so that a list
box displays right next to it and scrolls up and down with
it. (This is a tabular datawindow with hundreds of rows). If
you can provide code to disallow the user to scroll the
current selected row out of view, that would be an
additional bonus for me

For explanation of why I need it, see my article
"Multi-select List box for Datawindows" in the January Issue
of PB Developers Journal (
http://pbdj.sys-con.com/read/480678.htm )

Regards and Thanks in advance


Damir Grbic Posted on 2008-05-13 07:42:19.0Z
From: "Damir Grbic" <dgrbic@eisen.de>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48290b23.796b.1681692777@sybase.com>
Subject: Re: How do you get the y position of a selected row
Lines: 36
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; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4829465b$1@forums-1-dub>
Date: 13 May 2008 00:42:19 -0700
X-Trace: forums-1-dub 1210664539 10.22.241.152 (13 May 2008 00:42:19 -0700)
X-Original-Trace: 13 May 2008 00:42:19 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86826
Article PK: 416085

Hi,

1. Try:
Evaluate('dwobject.Y', 1)
Evaluate('dwobject.Y', 2)
Evaluate('dwobject.Y', 3)
...

2. Check FirstRowOnPage, LastRowOnPage in ScrollVertical event.

Regards, Damir

----- Original Message -----
From: <Shashi Gogia>
Newsgroups: sybase.public.powerbuilder.datawindow
Sent: Tuesday, May 13, 2008 5:29 AM
Subject: How do you get the y position of a selected row

> Hi all,
> While the x position of any column is simple, I need help to
> get the y position of the same exact column so that a list
> box displays right next to it and scrolls up and down with
> it. (This is a tabular datawindow with hundreds of rows). If
> you can provide code to disallow the user to scroll the
> current selected row out of view, that would be an
> additional bonus for me
>
> For explanation of why I need it, see my article
> "Multi-select List box for Datawindows" in the January Issue
> of PB Developers Journal (
> http://pbdj.sys-con.com/read/480678.htm )
>
> Regards and Thanks in advance


Dean Jones Posted on 2008-05-13 12:39:39.0Z
From: "Dean Jones" <dean_dot_jones_at_powerobjects_dot_com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48290b23.796b.1681692777@sybase.com>
Subject: Re: How do you get the y position of a selected row
Lines: 32
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; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48298c0b$1@forums-1-dub>
Date: 13 May 2008 05:39:39 -0700
X-Trace: forums-1-dub 1210682379 10.22.241.152 (13 May 2008 05:39:39 -0700)
X-Original-Trace: 13 May 2008 05:39:39 -0700, vip152.sybase.com
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86828
Article PK: 416087

The text you want to display can be on every row and have an expression that
makes it visible only when its the current row. Just and idea.

--
Dean Jones
CEO
PowerObjects
http://www.powerobjects.com
(612) 339-3355 Ext. 112

TeamSybase
* * Think Sybase * *

<Shashi Gogia> wrote in message news:48290b23.796b.1681692777@sybase.com...
> Hi all,
> While the x position of any column is simple, I need help to
> get the y position of the same exact column so that a list
> box displays right next to it and scrolls up and down with
> it. (This is a tabular datawindow with hundreds of rows). If
> you can provide code to disallow the user to scroll the
> current selected row out of view, that would be an
> additional bonus for me
>
> For explanation of why I need it, see my article
> "Multi-select List box for Datawindows" in the January Issue
> of PB Developers Journal (
> http://pbdj.sys-con.com/read/480678.htm )
>
> Regards and Thanks in advance


Philip Salgannik Posted on 2008-05-13 16:59:25.0Z
Reply-To: "Philip Salgannik" <PhilipSalgannik@work.com>
From: "Philip Salgannik" <PhilipSalgannik@work.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48290b23.796b.1681692777@sybase.com>
Subject: Re: How do you get the y position of a selected row
Lines: 23
Organization: ATWORK
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; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4829c8ed$1@forums-1-dub>
Date: 13 May 2008 09:59:25 -0700
X-Trace: forums-1-dub 1210697965 10.22.241.152 (13 May 2008 09:59:25 -0700)
X-Original-Trace: 13 May 2008 09:59:25 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86831
Article PK: 416090

There were soultions posted for using a DDDW with multiple selections, but
anyway, you can use PFC's approach (ala their calendar and calculator) on
the datawindow. Map pbm_dwndropdown, on the appropriate columns (with dddw
or ddlb edit styles) postition and show a userobject with your "listbox" and
return 1 from the event...

<Shashi Gogia> wrote in message news:48290b23.796b.1681692777@sybase.com...
> Hi all,
> While the x position of any column is simple, I need help to
> get the y position of the same exact column so that a list
> box displays right next to it and scrolls up and down with
> it. (This is a tabular datawindow with hundreds of rows). If
> you can provide code to disallow the user to scroll the
> current selected row out of view, that would be an
> additional bonus for me
>
> For explanation of why I need it, see my article
> "Multi-select List box for Datawindows" in the January Issue
> of PB Developers Journal (
> http://pbdj.sys-con.com/read/480678.htm )
>
> Regards and Thanks in advance