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.

PB 11.2 treeview question

3 posts in DataWindow Last posting was on 2008-07-14 16:07:02.0Z
Martin Mueller Posted on 2008-07-10 07:23:47.0Z
Sender: 3d6.4874688f.1804289383@sybase.com
From: Martin Mueller
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: PB 11.2 treeview question
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4875b903.30fc.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 10 Jul 2008 00:23:47 -0700
X-Trace: forums-1-dub 1215674627 10.22.241.41 (10 Jul 2008 00:23:47 -0700)
X-Original-Trace: 10 Jul 2008 00:23:47 -0700, 10.22.241.41
Lines: 12
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87348
Article PK: 416605

Hi,

I'd like to get an information of a treeview when the
checkbox of an itel is checked. If I ask statePictureIndex
it does not work because I get the return value when I click
on the text as I check the box. Is there an other event to
use but the clicked event?

Any ideas would be appreciated.

best regards
Martin


Jeremy Lakeman Posted on 2008-07-14 03:26:55.0Z
From: Jeremy Lakeman <jeremy.lakeman@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: PB 11.2 treeview question
Date: Sun, 13 Jul 2008 20:26:55 -0700 (PDT)
Organization: http://groups.google.com
Lines: 20
Message-ID: <d90e7e40-4100-4387-9815-741abf70070d@x35g2000hsb.googlegroups.com>
References: <4875b903.30fc.1681692777@sybase.com>
NNTP-Posting-Host: 203.122.242.105
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1216006016 30691 127.0.0.1 (14 Jul 2008 03:26:56 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 14 Jul 2008 03:26:56 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: x35g2000hsb.googlegroups.com; posting-host=203.122.242.105; posting-account=euaBtgoAAAC_vDxfsxmpMKlBxHaHpmRS
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 fly.essential.com.au:3128 (squid/2.5.STABLE8), 1.0 asp.essential.intranet:3128 (squid/2.5.STABLE8)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!x35g2000hsb.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87363
Article PK: 416619


On Jul 10, 4:23 pm, Martin Mueller wrote:
> Hi,
>
> I'd like to get an information of a treeview when the
> checkbox of an itel is checked. If I ask statePictureIndex
> it does not work because I get the return value when I click
> on the text as I check the box. Is there an other event to
> use but the clicked event?
>
> Any ideas would be appreciated.
>
> best regards
> Martin

So you have a treeview in checkboxes mode. And you want to do
something when the user checks / clears the checkbox.
Well, you're right the clicked event is too early. You'll have to wait
until the clicked event has been processed. I'd suggest writing
another event / function to do the work and POST that event from
within the clicked event. I'm not sure if there is an easier way.


Philip Salgannik Posted on 2008-07-14 16:07:02.0Z
Reply-To: "Philip Salgannik" <PhilipSalgannik@work.com>
From: "Philip Salgannik" <PhilipSalgannik@work.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4875b903.30fc.1681692777@sybase.com> <d90e7e40-4100-4387-9815-741abf70070d@x35g2000hsb.googlegroups.com>
Subject: Re: PB 11.2 treeview question
Lines: 6062
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: <487b79a6@forums-1-dub>
Date: 14 Jul 2008 09:07:02 -0700
X-Trace: forums-1-dub 1216051622 10.22.241.152 (14 Jul 2008 09:07:02 -0700)
X-Original-Trace: 14 Jul 2008 09:07:02 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87367
Article PK: 416625

I posted a custom treeview with "Cbxselectionchanging" event exposed
specifically for these purposes.
Here it is yet again...
"Jeremy Lakeman" <jeremy.lakeman@gmail.com> wrote in message
news:d90e7e40-4100-4387-9815-741abf70070d@x35g2000hsb.googlegroups.com...

On Jul 10, 4:23 pm, Martin Mueller wrote:
> Hi,
>
> I'd like to get an information of a treeview when the
> checkbox of an itel is checked. If I ask statePictureIndex
> it does not work because I get the return value when I click
> on the text as I check the box. Is there an other event to
> use but the clicked event?
>
> Any ideas would be appreciated.
>
> best regards
> Martin

So you have a treeview in checkboxes mode. And you want to do
something when the user checks / clears the checkbox.
Well, you're right the clicked event is too early. You'll have to wait
until the clicked event has been processed. I'd suggest writing
another event / function to do the work and POST that event from
within the clicked event. I'm not sure if there is an easier way.