on 2013 Mar 12 8:20 AM
Hello NWBC developers and community,
I use SAP GUI Scripting very much and at the moment I test the possibilities of SAP GUI Scripting with NWBC 4.0 PL4.
First of all, it works very well, congratulation to the developers.
And now my question:
If I open a second NWBC Client window and use the method Connections from the Application object with the property Count, I get not more than one connection. Is this a bug or is it necessary to use another property or method to get this kind of information? SAP GUI Scripting uses only the first NWBC Client window.
Here my VBScript code:
Set SapGuiAuto = GetObject("SAPGUISERVER")
Set application = SapGuiAuto.GetScriptingEngine
Set conCol = application.Connections()
conCount = conCol.Count()
MsgBox CStr(conCount)
Here a snapshot:
Thanks for answers and hints.
Cheers
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
I found your question while I looked for the string in GetObject("SAPGUISERVER") for the NWBC. Thank you for this information.
To your question:
In the SAPGUI, if you opens a new window, you get a new session in the given connection. Only if you logon to another system you get a new connection. Your sceenshot looks like you have a new session. This would be the normal behavior.
GuiApplication.Connections().Sessions()
I hope this helps.
Cheers
Hans-Dieter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Hans-Dieter,
thanks for your answer, but the image shows two open NWBC for Desktop connections with four open sessions. With SAP GUI Scripting you can get only the first connection with the two open sessions, the second connection is complete invisible for the SAP GUI Scripting.
Cheers
Stefan
Hello Obaid,
SAP GUI Scripting works in the context of NWBC 6.0 PL 1 perfect, for more information look here.
Cheers
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
63 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.