Wir beschäftigen uns als Erstes mit dem Aufruf von VBScript-Funktionen aus einem GuiXT Script, was auch unabhängig von der Verwendung von ActiveX Controls sinnvoll ist.
We start with the VBScript function call in GuiXT scripts, a feature that is useful in its own right and in its application to ActiveX controls.
Sie können auch GuiXT Variablen einen Wert zuweisen durch V[name]:wert und darauf im InputScript oder GuiXT Script zugreifen.
You can also set internal GuiXT variables with V[name]:value and use this value in your InputScript or in GuiXT scripts.
Die Kommunikation mit der ActiveX Komponente erfolgt über VBScript-Funktionen, die aus dem GuiXT Script oder InputScript aufgerufen werden.
For communication with the ActiveX component you use VBScript functions that can be called from GuiXT scripts or InputScripts.
Das GuiXT Script sieht dann wie folgt aus
Das GuiXT Script legt eine Textbox und eine Drucktaste sowie um die beiden Elemente einen Gruppenrahmen an
The GuiXT script creates a textbox, a pushbutton and a group frame for these two elements
Das ist nötig, weil SAP GUI den Bildschirm inklusiv der speziellen Controls noch nicht aufbaut, solange das GuiXT Script abläuft, da das Script das Layout abweichend vom SAP-Standard definieren kann.
This is necessary because the SAP GUI windows including special controls it not built up while the GuiXT script is running, as the script can alter the layout in a way different to what the SAP standard defines.
Das GuiXT Script legt eine Textbox und eine Drucktaste sowie um die beiden Elemente einen Gruppenrahmen an
The corrected text is updated in the GuiXT textbox. Our GuiXT script creates a textbox and a pushbutton, surrounded with a group box
Hierdurch wird die Zahl der Kontextwechsel zwischen dem GuiXT Script und dem Internet Explorer verringert (Performance für große Tabellen).
This is for performance reasons, to minimize context switches between the GuiXT script and the Browser.
Jedes GuiXT Script bezieht sich auf genau ein SAP Bild (Dynpro).
Each GuiXT Script refers to exactly one SAP screen (SAP dynpro).
In einem GuiXT Script oder InputScript Das heißt: Die VB.NET-Funktion "hellovb" der Klasse "testclass" der Klassenbibliothek "utilities.dll" wird aufgerufen und das Ergebnis in die GuiXT-Variable V[msg] gestellt.
message"&V[msg]" -status line The VB.NET function "hellovb" of class "testclass" in the class libray "utilities.dll" is executed and the result is set into GuiXT variable V[msg].
Der neue GuiXT Script Editor unterstützt speziell die Entwicklung von InputScripts.
The new GuiXT script editor is especially useful for developing InputScripts.
Wenn Sie das InputScript im Anschluss an eine Screen-Anweisung ohne Enter mit Leave abbrechen, wird das aktuelle Bildschirmbild angezeigt, ohne ein eventuell dazugehörendes GuiXT Script zu prozessieren, was meistens nicht gewollt ist. Komponente GuiXT
If you use Leave to stop an InputScript, following a Screen-command without Enter, the current screen will be displayed without GuiXT Script execution, and this is not usually what you want.
In einem GuiXT Script oder InputScript rufen Sie die VBScript-Funktion über das Schlüsselwort "CallVBS" auf.
Use the "CallVBS" keyword in your GuiXT Script or InputScript to call your VBS function.