VerifyFocus
You use the VerifyFocus keyword to verify the focus location in an application. Focus can be on one of the following in an application: list, form, view, field, or rows in an applet.
Signature
The VerifyFocus keyword supports the following signature:
VerifyFocus(AppletRN(or)ViewRN|FieldRN,TRUE/FALSE)
Note the following about the VerifyFocus keyword signature:
-
The True and False input covers the following scenarios:
-
Use False to check that focus is not on a particular applet, field, or row.
-
Use True to check that focus is on a particular applet, field, row, application-level menu, or application-level menu item.
Desktop Examples
The following table describes how to use the VerifyFocus keyword to verify the focus location in desktop applications.
Target Object | Inputs | Closing Action | Comments |
---|---|---|---|
SIS Account List Applet|NULL |
TRUE |
N/A |
Verifies that focus is on the specified list applet. |
SIS Account List Applet|NULL |
FALSE |
N/A |
Verifies that focus is not on the specified list applet. |
SIS Account List Applet|Row Status|2 |
TRUE |
N/A |
Verifies that focus is on the specified field in the list applet. |
SIS Account Entry Applet|Name |
TRUE |
N/A |
Verifies that focus is on the specified field in the form applet. |
SIS Account Entry Applet|Name |
FALSE |
N/A |
Verifies that focus is not on the specified field in the form applet. |
SIS Account List Applet|2 |
TRUE |
N/A |
Verifies that focus is on the specified row number in the list applet. |
SIS Account List Applet|2 |
FALSE |
N/A |
Verifies that focus is not on the specified row number in the list applet. |
SIS Account List Applet|2,3 |
TRUE |
N/A |
Verifies that focus is on the specified row numbers in the list applet. |
Search Admin|NULL |
TRUE |
N/A |
Verifies that focus is on the specified view. |
Menu-File|Null |
TRUE |
N/A |
Verifies that focus is on the application-level menu. |
Menu-File|Null |
FALSE |
N/A |
Verifies that focus on the application-level menu. |
Menu-File|File - Custom Print |
TRUE |
N/A |
Verifies that focus is on the application-level menu item. |
Menu-File|File - Custom Print |
FALSE |
N/A |
Verifies that focus is on the application-level menu item. |
Mobile Examples
The following table describes how to use the VerifyFocus keyword to verify the focus location in mobile applications (on mobile devices).
Target Object | Inputs | Closing Action | Comments |
---|---|---|---|
SHCE Account Entry Applet - Mobile|Name |
TRUE |
N/A |
Verifies that focus is on the specified field in the form applet. |
SHCE Sales Account List Applet - Mobile|NULL |
TRUE |
N/A |
Verifies that focus is on the specified list applet. |
SHCE Sales Account List Applet - Mobile|Name|1 |
TRUE |
N/A |
Verifies that focus is on the specified field in the list applet. |
SHCE Sales Account List Applet - Mobile|1 |
TRUE |
Verifies that focus is on the specified row number in the list applet. |