on 12-03-2008 1:40 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.