GetState

You use the GetState keyword to obtain the state of a specified object and store the state in a variable. The state of an object can be Read-only, Enabled, Disabled, Editable, and so on.

Signature

The ServerConfig keyword supports the following signatures:

GetState(AppletRN|FieldRN|[RowNum],@Variable)
GetState(AppletRN|MenuButtonRN|MenuItemRN,@Variable)
GetState(ApplicationLevelMenuRN|ApplicationLevelMenuItemRN,@Variable)

Desktop Examples

The following table describes how to use the GetState keyword to obtain the state of a specified object and store the state in a variable in desktop applications.

Target Object Inputs Closing Action Comments

SIS Product List Admin Applet|Release

@variable1

N/A

Stores the Release state in a variable.

SIS Product List Admin Applet|XA Class Name|3

@variable2

N/A

Stores XA Class Name state for the third record in a variable.

SIS Product List Admin Applet|SiebAppletMenu|Delete Record (SWE)

@variable3

N/A

Stores the Delete record (SWE) state in a variable.

Menu-File|File - Send Fax

@variable4

N/A

Stores the File - Send Fax state in a variable.

Mobile Examples

The following table describes how to use the GetState keyword to obtain the state of a specified object and store the state in a variable in mobile applications (on mobile devices).

Target Object Inputs Closing Action Comments

SHCE Sales Account List Applet - Mobile|QuerySrchSpec

@var

N/A

Gets the state of a variable and stores the state in @var.

SHCE Sales Account List Applet - Mobile|SiebAppletMenu|Record Count (SWE)

@var

N/A

Gets the state of a menu item and stores the state in @var.