isRequired

Determines whether a value is required for the agent property.

Type

public boolean isRequired;
 

Notes

The isRequired member variable is a boolean value that determines whether a value must always be specified for the agent property or whether the user can leave the property's value empty. If isRequired is true, the user must provide a value for this property. To indicate that an agent property's value is required, the following call to the third form of the AgentProperty() constructor specifies a boolean value of true as the fourth argument:

AgentProperty agt = new AgentProperty("Username",
          AgentProperty.TYPE_STRING,
          "User Id for logging into the database", true, false,
          ODKConstant.SINGLE_CARD, null, null);
 
Note:
You can also specify a value for isRequired with the second form of the AgentProperty() constructor, using its third argument.

Copyright IBM Corp. 1997, 2003