| || |
SAPGuiTable and Object
Hi, I searched the forum but was not able to get a solution for my requirement. I have a SAPGuiTable object.
It has 3 columns and 3 rows. I need to get the contents of each row in the third column.
Now each nodes in the tree are numbered from 1 to 3.
I highlighted one of the items in the 3rd column and did a getNodeTextByKey but still it returns the contents of the first column.
I have used the GetColumnCol to get a collection of the items of the 3rd column but unable to get the text contained in each item.
I tried the GetItemText method but getting a general run error. I have some confusion with the 2nd argument of this function i.e Item name. Can anyone please provide clarity on this function. I am attaching a screen shot for reference. I need the values in the "Status" Column.
Thanks in Advance.
Re: SAPGuiTable and Object
This is a so called TableTree. After you have selected a Item, you can use
<font class="small">Code:</font><hr /><pre>SAPGuiSession("Session").SAPGuiWindow("Windo w").SAPGuiTree("tree name").GetROProperty("selecteditem")</pre><hr />
<font class="small">Code:</font><hr /><pre>SAPGuiSession("Session").SAPGuiWindow("Windo w").SAPGuiTree("tree name").GetROProperty("selectednode")</pre><hr /> to get the text in the selected node or item.