cancel
Showing results for 
Search instead for 
Did you mean: 

GuiTree component problems.

Former Member
0 Kudos

Hi everybody.

I'm attaching to SAPGUI from c# through the COM Interop.

When I'm trying to call some methods on GuiTree component (such as GetNodeWidth) I get COM exception 'Member not found'. It seems like this functionality wasn't implemented.

I use SAPGUI Scripting version 7.10.

Is there any solution available to get bounds of the node inside the GuiTree component?

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hello Igor Cher

GetNodeWidth() API for tree scripting is already implemented. We have tested the same in SAP GUI 7.10 patch 11.

For simplicity, you can verify the same by following these steps:

1. Logon to any R/3 system.

2. Press ALT + F12 and select "Script Recording and Playback".

3. Now press record button and do some operation on the tree like expanding and collapsing.

4. Now stop the scripting operation.

5. Open the thus generated VB script.

6. Add the following lines:

dim xy

xy=session.findById ("wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell") .GetNodeWidth("0000000003")

MsgBox xy

Note: Please copy the script session information(shown as italic) and paste the same in the above line.

Now reexecute the script. The Nodewidth is displayed without any problem.

Please get back to us in case of any further queries.

Regards,

Dinesh

Former Member
0 Kudos

Thank you for your reply,

My project is currently postponed, so I will check it later.

Thanks again.

0 Kudos

Hello Igor Cher

Thanks for the information. Please update this message if you have any further queries.

Regards,

Dinesh