Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Multiple nodes with same title captions
Junior Member

Posts: 7
Registered: 11/15/2007
Member Is Offline
posted on 12/17/2007 at 05:48 PM Reply With Quote
Multiple nodes with same title captions


I just reliazed that it's a possiblity to have multiple items with exactly the same captions in my tree. Any suggestions on how to deal with this in the openItemByCaption() function (TIGRA API).

View User's Profile View All Posts By User U2U Member

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 4/14/2008 at 03:41 PM Reply With Quote

It depends on what is the desired behavior.
The sample in the documentation will process all the items with the matching caption:

var a_item = o_tree.find_item(s_caption); // <- this returns array
for(var n=0; n < a_item.length; n++) {
// items processed one by one in the loop
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart

Go To Top

Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004