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.

TreeView control

3 posts in Objects Last posting was on 2005-10-24 09:53:43.0Z
Marina Posted on 2005-10-19 13:38:43.0Z
Sender: 441b.43564b74.1804289383@sybase.com
From: Marina
Newsgroups: sybase.public.powerbuilder.objects
Subject: TreeView control
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <43564c63.442b.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 19 Oct 2005 06:38:43 -0700
X-Trace: forums-1-dub 1129729123 10.22.241.41 (19 Oct 2005 06:38:43 -0700)
X-Original-Trace: 19 Oct 2005 06:38:43 -0700, 10.22.241.41
Lines: 9
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8670
Article PK: 735882

Hi everyone!

I'm working with PB8. Is there any functionality to reset
(clear) treeview control besides DeleteItem() function. For
my project I need to re-populate treeview control every time
user chooses a new criteria.

Thank You,
Marina.


Gab Posted on 2005-10-19 14:10:08.0Z
From: "Gab" <gabrielt@educ.ar>
Newsgroups: sybase.public.powerbuilder.objects
References: <43564c63.442b.1681692777@sybase.com>
Subject: Re: TreeView control
Lines: 7
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: host101.200-82-48.telecom.net.ar
X-Original-NNTP-Posting-Host: host101.200-82-48.telecom.net.ar
Message-ID: <435653c0@forums-1-dub>
Date: 19 Oct 2005 07:10:08 -0700
X-Trace: forums-1-dub 1129731008 200.82.48.101 (19 Oct 2005 07:10:08 -0700)
X-Original-Trace: 19 Oct 2005 07:10:08 -0700, host101.200-82-48.telecom.net.ar
X-Authenticated-User: pb105beta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8671
Article PK: 735888

Have you tried:

tv_1.setredraw(false)
tv_1.DeleteItem(0)
tv_1.setredraw(true)


acme Posted on 2005-10-24 09:53:43.0Z
From: "acme" <hbni@163.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <43564c63.442b.1681692777@sybase.com>
Subject: Re: TreeView control
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: nihaibo.sybase.com
X-Original-NNTP-Posting-Host: nihaibo.sybase.com
Message-ID: <435caf27@forums-1-dub>
Date: 24 Oct 2005 02:53:43 -0700
X-Trace: forums-1-dub 1130147623 10.42.6.148 (24 Oct 2005 02:53:43 -0700)
X-Original-Trace: 24 Oct 2005 02:53:43 -0700, nihaibo.sybase.com
X-Authenticated-User: pb105beta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8678
Article PK: 735893

long ll_rootitem
integer li_index, li_level

this.setredraw(false)

//Delete all items from a TreeView control
//when there are several items at the first level
DO UNTIL this.FindItem(RootTreeItem!, 0) = -1
// Find the root of current level
ll_rootitem = this.FindItem(RootTreeItem!, 0)
this.DeleteItem(ll_rootitem)
LOOP

/* End of Fix */
this.setredraw(true)

<Marina> wrote in message news:43564c63.442b.1681692777@sybase.com...
> Hi everyone!
>
> I'm working with PB8. Is there any functionality to reset
> (clear) treeview control besides DeleteItem() function. For
> my project I need to re-populate treeview control every time
> user chooses a new criteria.
>
> Thank You,
> Marina.