Determines whether Business Object Wizard provides a means to
enter multiple values for an agent
property.
Type
public boolean isMultiple;
Notes
The isMultiple member variable is a boolean value that
determines whether Business Object Wizard should provide a
mechanism for allowing user entry of multiple values for an agent
property:
- If isMultiple is true, Business Object Wizard
displays a drop-down list with the list of values that the
allValidValues member variable contains. From this list,
the user clicks on the value to assign to the agent property. The
value of the cardinality member variable determines how
many of these values the user can choose from the drop-down list.
If no allValidValues array is provided, Business Object
Wizard provides a sub-grid of rows for the user to enter each
value.
- If isMultiple is false, Business Object
Wizard does not allow user entry of multiple values.
Instead, it displays an empty field or the default value (if one is
specified). In this field, the user enters the agent-property
value. The value of the cardinality member variable should be
ODKConstant.SINGLE_CARD.
- Note:
- For more information, see Choosing the type of display
control.
To initialize an agent property with a list of multiple values
for the user to choose from, the following call to the third form
of the AgentProperty() constructor specifies a boolean
value of true as the fourth argument (the value of the
isMultiple variable):
AgentProperty agt = new AgentProperty("Username",
AgentProperty.TYPE_STRING,
"User Id for logging into the database", true, true,
ODKConstant.SINGLE_CARD, null, null);
- Note:
- You can also specify a value for isMultiple with the
second form of the AgentProperty() constructor, using its
seventh argument.
