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 to get all child nodes in one attempt

3 posts in Objects Last posting was on 2005-12-02 16:05:42.0Z
Anandkumar B Posted on 2005-12-01 10:28:38.0Z
Sender: 10f8.438e83ea.1804289383@sybase.com
From: Anandkumar B
Newsgroups: sybase.public.powerbuilder.objects
Subject: How to get all child nodes in one attempt
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <438ed056.1535.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 1 Dec 2005 02:28:38 -0800
X-Trace: forums-1-dub 1133432918 10.22.241.41 (1 Dec 2005 02:28:38 -0800)
X-Original-Trace: 1 Dec 2005 02:28:38 -0800, 10.22.241.41
Lines: 14
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8710
Article PK: 735925

Hi all
I am using PB6.5 . My application has got a treeview which
will
always have more than 500 siblings which in turn have many
children. Thru code , parsing thru all the nodes to find the
no of children is taking more time. So I just want to know
if there are
any API function which will return all the children handle
of all the
siblings in one attempt(assumption is that there is only one
level under the siblings).Please help

Regards
Anand


Ken Judkins Posted on 2005-12-01 13:39:46.0Z
From: "Ken Judkins" <nospam@notime.not>
Newsgroups: sybase.public.powerbuilder.objects
References: <438ed056.1535.1681692777@sybase.com>
Subject: Re: How to get all child nodes in one attempt
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: nat.jccbi.gov
X-Original-NNTP-Posting-Host: nat.jccbi.gov
Message-ID: <438efd22$1@forums-1-dub>
Date: 1 Dec 2005 05:39:46 -0800
X-Trace: forums-1-dub 1133444386 162.58.0.60 (1 Dec 2005 05:39:46 -0800)
X-Original-Trace: 1 Dec 2005 05:39:46 -0800, nat.jccbi.gov
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8711
Article PK: 735929

Anand,

I set my treeview up with a highly customized version of the PFC u_tvs
object. It still uses the datawindow for each level, though. If you use
this method, assuming all records for the level you want to count have been
read into the datawindow at the beginning, could you simply do a RowCount()
on the DW?

Ken

<Anandkumar B> wrote in message news:438ed056.1535.1681692777@sybase.com...
> Hi all
> I am using PB6.5 . My application has got a treeview which
> will
> always have more than 500 siblings which in turn have many
> children. Thru code , parsing thru all the nodes to find the
> no of children is taking more time. So I just want to know
> if there are
> any API function which will return all the children handle
> of all the
> siblings in one attempt(assumption is that there is only one
> level under the siblings).Please help
>
> Regards
> Anand


Philip Salgannik Posted on 2005-12-02 16:05:42.0Z
Sender: 1ce7.438f71ba.1804289383@sybase.com
From: Philip Salgannik
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: How to get all child nodes in one attempt
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <439070d6.2eb7.1681692777@sybase.com>
References: <438ed056.1535.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 2 Dec 2005 08:05:42 -0800
X-Trace: forums-1-dub 1133539542 10.22.241.41 (2 Dec 2005 08:05:42 -0800)
X-Original-Trace: 2 Dec 2005 08:05:42 -0800, 10.22.241.41
Lines: 19
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8718
Article PK: 735933

About the only thing that you have native to the treeview is
this:
TVM_GETCOUNT Message
Retrieves a count of the items in a tree-view control.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/treeview/messages/tvm_getcount.asp

> I am using PB6.5 . My application has got a treeview which
> will
> always have more than 500 siblings which in turn have many
> children. Thru code , parsing thru all the nodes to find
> the no of children is taking more time. So I just want to
> know if there are
> any API function which will return all the children handle
> of all the
> siblings in one attempt(assumption is that there is only
> one level under the siblings).Please help
>
> Regards
> Anand