Micro Focus QTP (UFT) Forums
SAPGUI table tree control and QTP - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: SAPGUI table tree control and QTP (/Thread-SAPGUI-table-tree-control-and-QTP)



SAPGUI table tree control and QTP - Ansh123 - 01-16-2013

Hello,

I am trying to automate a Click link method for SAPGUI table tree control. Code looks something like this:

Code:
SAPGuiSession("Session").SAPGuiWindow("Edit Incident/Claim Management").Maximize
SAPGuiSession("Session").SAPGuiWindow("XXX").SAPGuiTree("TableTreeControl_2").ClickLink "MVI","00000000000000034234"

Is there a way to get the value of the link from the datatable? Reason being there are other links to be processed from the datatable. How do you combine the link method with a value from datatable.

Is there another way to accomplish this? Any help would be appreciated.

Thanks


RE: SAPGUI table tree control and QTP - Ansh123 - 01-16-2013

Can any one please help with this as it is very urgent? Is there a way to code this?


RE: SAPGUI table tree control and QTP - Ankesh - 01-17-2013

Chk below link...modify as per your need.

http://automatingsap.blogspot.in/2012/10/working-with-sapguitree-search-and.html

Regards,
Ankesh


RE: SAPGUI table tree control and QTP - Ansh123 - 02-19-2014

Hello Ankesh,

I tried the code that you have mentioned for clicking table tree control in sapgui but that errored out. Is there another way of doing this. Any help would be appreciated.

Thanks