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.

Child Drop Down DataWindow Issue

2 posts in DataWindow Last posting was on 2009-09-16 12:00:55.0Z
Anthony Posted on 2009-09-16 04:35:47.0Z
Sender: 7b91.4ab0683e.1804289383@sybase.com
From: Anthony
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Child Drop Down DataWindow Issue
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4ab06b23.7bd7.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 15 Sep 2009 21:35:47 -0700
X-Trace: forums-1-dub 1253075747 10.22.241.41 (15 Sep 2009 21:35:47 -0700)
X-Original-Trace: 15 Sep 2009 21:35:47 -0700, 10.22.241.41
Lines: 23
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89953
Article PK: 419142

I am using PB 11.2 Build 8616, Windows XP.

I have a main datawindow and several child drop down
datawindows on the main datawindow. I've noticed that after
the retrievals are done that the row number of the child
datawindows are always '1' and not the rownumber I am
expecting as a result of the retrievals being done to match
up with the data retrieved back.

I do notice that if I simply click on the drop down data
window arrow to open the list and NOT change anything and
then click away from the drop down list that the true
rownumber I am expecting can be obtained. But I don't want
to do this manual effort.

Is there a way to get the true rownumber of the drop down
child datawindow that is associated with the data that was
retrieved without having to manually open the drop down
list? The GetRow function at this point will always bring
back the rownumber as being '1' and not the 'real' rownumber
that I really need. There must be a way to 'trick' the DDDW
into obtaining this value for me. Any ideas? It seems like
such a simple problem.


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-09-16 12:00:55.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4ab06b23.7bd7.1681692777@sybase.com>
Subject: Re: Child Drop Down DataWindow Issue
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
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: <4ab0d377$1@forums-1-dub>
Date: 16 Sep 2009 05:00:55 -0700
X-Trace: forums-1-dub 1253102455 10.22.241.152 (16 Sep 2009 05:00:55 -0700)
X-Original-Trace: 16 Sep 2009 05:00:55 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89954
Article PK: 419143

I'm guessing you want that to obtain some other value from the DWC row. I've
never relied on row number for that, but do a Find on data column = parent
column current value when needed. I don't recall that setting the DWC row
number is documented, so you've been lucky. Also see LookUpDisplay if it's
the display column you want.
You might try setting the column value to itself, noting that you might also
want to restore SetItemStatus.
And you can simulate down-arrow on the column [which opens the dropdown]
with the keybd_event API, but that will cause flickering - not sure if
SetRedraw would interfere with the action.
Let us know!

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

<Anthony> wrote in message news:4ab06b23.7bd7.1681692777@sybase.com...
>I am using PB 11.2 Build 8616, Windows XP.
>
> I have a main datawindow and several child drop down
> datawindows on the main datawindow. I've noticed that after
> the retrievals are done that the row number of the child
> datawindows are always '1' and not the rownumber I am
> expecting as a result of the retrievals being done to match
> up with the data retrieved back.
>
> I do notice that if I simply click on the drop down data
> window arrow to open the list and NOT change anything and
> then click away from the drop down list that the true
> rownumber I am expecting can be obtained. But I don't want
> to do this manual effort.
>
> Is there a way to get the true rownumber of the drop down
> child datawindow that is associated with the data that was
> retrieved without having to manually open the drop down
> list? The GetRow function at this point will always bring
> back the rownumber as being '1' and not the 'real' rownumber
> that I really need. There must be a way to 'trick' the DDDW
> into obtaining this value for me. Any ideas? It seems like
> such a simple problem.