Hi
I had a scenario to automate a script where i need to get the child items to be selected from the swftreeview, which is of gridtree,
For example Java is the root tree and in that j22e, veriosn of java, version of J2ee these are the child elements of the Jave i need to get the version of java now that is the child element of java in the save way i need to get the grandchild elements also.Please try to help me regarding this, It would be very great to share with me if you have any idea regarding this. Please let me know so that i can go ahead with this
Its very urgent, Please try to help me out
Regards,
Srikanth
My first thought is that your Text properties are blank, as the Node path is constructed by a leading "\" followed by a "\" delimited path. So that you would have a path like:
\Parent1\Child1\GrandChild1
GetItem just gets the individual Node Text, not the entire path. So that if you are using GetItem on the example above you would get GrandChild1. What do you use to uniquely identify your Nodes in the UltraTree? Can you include a screen shot?
HI Mike I am attching the details with screen shot.
In the get content Its getting values for the variable part, but not the actual node text associated.
Pls look at the attchment for more details
Basically from what I can tell, you are not displaying the actual node text, you are displaying the first probably two columns with no border and no labels. The actual Text property for the Node is blank. Which is fine if you have the NodeTextColumn for the DisplayColumnSet set to your dominate unique column. The NodeTextColumn basically says, for each Node with a ColumnSet defined, use the value in cell that correseponds with that Column to set the Text property. In the first scenario your NodeTextColumn is either blank, or set to a column with No values in it, and your Text property is also blank. So your path to the Nodes are blank. In the second scenario you have a NodeTextColumn defined, but it's on a non-unique column, so you won't be able to record the way you would expect.
What I would suggest is using GetCellData which instead uses Index path's and Columns
cellVal = tree.GetCellData("\2\1\0", "Column1")
Sri,
I believe it is likely that you also may be dealing with Tree columns instead of a simple tree with the node being just the Text. Try using GetCellData, or contacting your developer to determine what your actual design scenario is.
Hi Mike,
Thanks for the response.
If The test displayed is the colum text, is there any way in which we can select the node based on the column text?
- Is there any way to get the node ID/index/ key when the Column text is known?