Each object has properties that can be accessed from a
Silk Performer script during execution. To get a full list of all properties of each object type, do the following:
-
Open a tool that allows you to view type libraries (for example, OLEView, which comes with
Microsoft Visual Studio).
-
Open the file
<SAPINSTALLDIR>\FrontEnd\SAPGui\sapfewse.ocx.
<SAPINSTALLDIR> is usually located in
C:\Program Files\SAP.
-
Explore the different COM classes for their properties. COM classes have meaningful names so that it is easy to find the correct
COM objects for your requested object type, for example
GUITextField for text controls.
-
Special controls such as trees and grids can be explored by opening the corresponding
dll, located in
<SAPINSTALLDIR>\FrontEnd\Controls\Scripting. For example, open
GridViewScripting.dll to get the information for grid controls.
Silk Performer offers methods to
Get/Set properties, and even for invoking methods. If a method call or a
GetProperty access returns another object, the object can be accessed with additional
Get/Set/Invoke calls by passing the constant
SAPGUI_ACTIVEOBJECT as the object identifier.