on 01-02-2006 6:03 AM
hi all,
i have a hierarchy created.i have one input field and one submit button.when i enter the an item(eg.company code) in the input field ,that particular row should be pointed.How can i do that.
regards
kukku
Hi Kukku,
make loop throug ur context node element and check it for ur input i.e company code
like
loop less than wdcontext.nodeClient().size();
check i.e if condition
wdcontext.nodeClient().getElementAt(variable of loop).getCompanyID().equals("ur entered value");
if its true than
wdcontext.setleadSelection(variable of loop);
this will solve ur problem.if any query post it
Thanks,
Yashpal
Give appropriate reward points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
i am getting all the elements in the Catalog.can u tell me how to move to a particular node element in this hierarchy.
regards
kukku
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Catalog is the .java file from vr i m getting my data for the tree hierarchy.
i am getting the row id of the given item.if i set the lead selection with that row id,i m getting array index out of bound exception.
here is the code..
for (i = 0; i < Catalog.getLength(); i++) {
if (booktitle.equalsIgnoreCase(Catalog.getTITLE(i))){
msgmgr2.reportSuccess("book id1 " + Catalog.getCATALOGID(i));
x = i;
break;
}
}
msgmgr3.reportSuccess("row id is" + x);
wdContext.nodeCatalogEntries().getCatalogEntriesElementAt(x);
wdContext.setLeadSelection(x);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
i am getting the id with the following code..
for (i = 0; i < Catalog.getLength(); i++) {
if (booktitle.equalsIgnoreCase(Catalog.getTITLE(i)))
msgmgr2.reportSuccess("book id1 " + Catalog.getCATALOGID(i));
}
now if i write the code.. wdContext.nodeCatalogEntries().getElementAt(i); outside or inside the loop,i m getting array index out of bound exception.
how can i get the elemnt so that i can point to that elemnt in the hierarchy.
regards
kukku
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.