Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Javatree Problem
#1
Not Solved
Hi,
I am working on PLM Automation Teamcenter. I need your help for the following problem

I want to select or expand the nodes from javatree :
Code:
Set objSearchTree =  JavaWindow("MyWorkListWindow").JavaTree("MyWorkListTree")
objSearchTree.Select sNodeName  ' To select node sNodeName  
objSearchTree.Expand sNodeName   'To expand node sNodeName

The above code fails to select and expand,because passing nodename doesnt work.
It works well if indexes are used e.g #0:#0 but it wont be feasible.
Can you please suggest alternative methods.

Thanks in advance.
Reply
#2
Not Solved
Can you try below

Code:
RegisterUserFunc "JavaTree","Expand","Expand"

Function Expand(Object, nodeouter)
For i=1 To (Object.GetItemsCount) step 1
    nodeinner=Object.GetItem(i)
    If nodeouter = nodeinner Then
        Object.Expand(i)
    End If    
Next
End Function

JavaWindow("MyWorkListWindow").JavaTree("MyWorkListTree").Expand(nodename)



Reply
#3
Not Solved
Hi,

Could you please try this:
Code:
JavaWindow("Oracle Applications -").JavaInternalFrame("N").JavaList("0").Activate "+  Customers"
Regards,
Sankalp
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to access name of a node in a javatree in UFT ? saniya 0 1,784 07-25-2018, 06:00 PM
Last Post: saniya
Question JavaTree - Not able to click final links scsvel 1 3,014 01-30-2012, 03:34 PM
Last Post: scsvel
  JavaTree perplexed 7 10,678 06-22-2011, 04:08 PM
Last Post: Pindaruk1

Forum Jump:


Users browsing this thread: 1 Guest(s)