VerifyState
You use the VerifyState keyword to verify the state of an object.
Signature
The VerifyState keyword supports the following signatures:
VerifyState(AppletRN|FieldRN|[RowNum], TRUE/FALSE)
VerifyState(AppletRN|MenuButtonRN|MenuItemRN, TRUE)
VerifyState(ApplicationLevelMenuRN|ApplicationLevelMenuItemRN, TRUE)
Note the following about the VerifyState keyword signature:
-
If an object is enabled, editable, or drillable, then verification is True.
-
If an object is editable and drillable, then verification is True.
-
If an object is read-only and drillable, then verification is False
-
If an object is read-only or disabled, then verification is False.
-
You can verify the state of most objects, including the following: button, text, check box, drop-down list, menu item, application-level menu items.
Desktop Examples
The following table describes how to use the VerifyState keyword to verify the state of an object in desktop applications.
Target Object | Inputs | Closing Action | Comments |
---|---|---|---|
SIS Product Form Applet - ISS Admin|NewRecord |
TRUE |
N/A |
Verifies whether the button state is enabled or disabled. |
SIS Product List Admin Applet|Billable Flag|3 |
FALSE |
N/A |
Verifies whether the check box field is enabled or disabled. |
SIS Product Form Applet - ISS Admin|SiebAppletMenu|New Record (SWE) |
TRUE |
N/A |
Verifies the state of menu item in the form applet. |
Menu-Query|Query - QueryAssist |
FALSE |
N/A |
Verifies the state of application level menu items. |
NULL|Tree |
TRUE |
N/A |
Verifies the state of the application. |
NULL|Tab |
TRUE |
N/A |
Verifies the state of the application. |
NULL|Side Menu |
TRUE |
N/A |
Verifies the state of the application. |
Mobile Examples
The following table describes how to use the VerifyState keyword to verify the state of an object in mobile applications (on mobile devices).
Target Object | Inputs | Closing Action | Comments |
---|---|---|---|
SHCE Sales Account List Applet - Mobile|QuerySrchSpec |
TRUE |
N/A |
Verifies the state of the variable and stores the value in @var. |
SHCE Sales Account List Applet - Mobile|SiebAppletMenu|Record Count (SWE) |
TRUE |
N/A |
Verifies the state of the menu item. |