A GuiFrameWindow is a high level visual object in the runtime hierarchy. It can be either the main
window or a modal popup window. See the GuiMainWindow and GuiModalWindow sections for examples.
GuiFrameWindow itself is an abstract interface. GuiFrameWindow extends the GuiVContainer Object.
The type prefix is wnd, the name is wnd plus the window number in square brackets.
The function attempts to close the window. Trying to close the last main window of a session
will not succeed immediately; the dialog ‘Do you really want to log off?’ will be displayed
first.
An object id is a unique textual identifier for the object. It is built in a URLlike formatting,
starting at the GuiApplication object and drilling down to the respective object.
The name property is especially useful when working with simple scripts that only access dynpro
fields. In that case a field can be found using its name and type information, which is easier to
read than a possibly very long id. However, there is no guarantee that there are no two objects
with the same name and type in a given dynpro.
The type information of GuiComponent can be used to determine which properties and methods an object
supports. The value of the type string is the name of the type taken from this documentation.
While the Type property is a string value, the TypeAsNumber property is a long value that can
alternatively be used to identify an object’s type . It was added for better performance in methods
such as FindByIdEx. Possible values for this property are taken from the GuiComponentTypeenumeration.
Search through the object’s descendants for a given id. If the parameter is a fully qualified id, the
function will first check if the container object’s id is a prefix of the id parameter. If that is the
case, this prefix is truncated. If no descendant with the given id can be found the function raises an
exception.
This function can be used to set the focus onto an object. If a user interacts with SAP GUI,
it moves the focus whenever the interaction is with a new object. Interacting with an object
through the scripting component does not change the focus. There are some cases in which the
SAP application explicitly checks for the focus and behaves differently depending on the
focused object.
Calling this method of a component will display a red frame around the specified component
if the parameter on is true. The frame will be removed if on is false. Some components such
as GuiCtrlGridView support displaying the frame around inner objects, such as cells. The
format of the innerObject string is the same as for the dumpState method.
The value of this property very much depends on the type of the object on which it is called.
This is obvious for text fields or menu items. On the other hand this property is empty for toolbar
buttons and is the class id for shells. You can read the text property of a label, but you can’t
change it, whereas you can only set the text property of a password field, but not read it.
The value of this property very much depends on the type of the object on which it is called.
This is obvious for text fields or menu items. On the other hand this property is empty for toolbar
buttons and is the class id for shells. You can read the text property of a label, but you can’t
change it, whereas you can only set the text property of a password field, but not read it.
Unlike FindById, this function does not guarantee a unique result. It will simply return the first
descendant matching both the name and type parameters. This is a more natural description of the
object than the complex id, but it only makes sense on dynpro objects as most other objects do not
have a meaningful name. If no descendant with matching name and type can be found, the function
raises an exception.
This method works exactly like FindByName, but takes the type parameter with data type long coming
from the GuiComponentType enumeration. See also GuiComponentType.