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
Hello,
You can pass in the key to Select instead of the path. Paths being with a leading "\" and represent the text of each node path through the tree, whereas keys are programmatically set by the developer.
You can find out the keys for each node from your developers, or use GetNAProperty if necessary. You can learn about the WinTree API here.
Hi Alan,
Is there any method to select a particular record in treeview with nodeid and "key" or "column title"
Because in my case every record in treeview holds same nodeid say"\5"
But am able to get data under column "Seq"(second column in grid) by getcelldata ("nodedid", "Seq") Note: here nodeid varies for each and every records in treeview since i have mentioned column name
So is there any same way to select specific records with nodeid respective of column name
Activation and Selection are different concepts. There can only be one active node/cell at a time while there can be many selected nodes. I believe you will want to use the SelectMultiple method. You should be able to see an example of this if you record selecting multiple items.
Hi Mike,
Thank you very much for your solution it is working fine
But in my case i have to select all the rows which has specifc data by iterating through treeview table
I have tried like this,
For i = 1 to 100 step 1
Seq = SwfWindow("DPS").SwfTreeView("treeseq").GetCellData("\4", "Seq")
If Seq = 10 then
'I have added code to hold ctrl key
SwfWindow("DPS").SwfTreeView("treeseq").ActivateCell "\4", "Seq"
End if
Next
Still from above code am only able to select 1 row at a time
Could you please help me to select multiple rows
I recommend using ActivateNode for this purpose. GetCellData will get the information in a cell, but won't select it. I built the following script line based on the information you've provided so far.
Please try the following and let me know whether it works.