Previous Topic

Next Topic

Book Contents

HasState(Integer)

HasState(Integer)

Characteristic

Description

Icon

Icon for methods.

Availability

All non-deleted forms.

Return type and description

Boolean.

Returns True if the form is in the state that is specified in the parameter. Specify the state using one of the following constants. The constants appear on the Constants tab and have a data type of integer.

  • Deleted—(Available only for repeating forms) The repeating form instance has been deleted.
  • Frozen—The form is frozen.
  • HasComment—The form has a comment at the form level.
  • HasData—The form has data.
  • HasMissingData—The form has missing data.
  • HasQueries—The form has queries.
  • Locked—The form is locked.
  • SdvComplete—The form has been marked source verified.
  • SdvPartial—The form has been partially source verified.
  • SdvReady—The form has been marked ready for source verification.
  • Signed—The form has been signed.
  • Skipped—The form has been marked not completed with a form-level comment.
  • Started—The form was started with patient data, comments, or queries.

Syntax

HasState(NameOfConstant)

Parameters

  • ParameterformState.
  • Definition—State of the form.
  • Data type—Integer.

Example

The following example returns True if the form is locked:

HasState(Constants.FormStates.Locked)

Purpose

Use this method to return the status of InForm forms.

Send Feedback