<Role Name> Role In Command Dialog Box

English Query

English Query

<Role Name> Role In Command Dialog Box

Use this dialog box to add entities to a new role or to modify roles in an existing relationship that has command phrasings.

Note  <Role name> is the name of the role, not the name of the entity.

User must specify

Indicate that the role is mandatory. If the user does not state a specific instance of the entity and you used the Prompt if not present option, English Query will ask for the information.

A mandatory role is one in which the command is not complete unless this role is supplied. The role can be a command argument. Mandatory roles allow entities used as command relationship arguments to be required. This is used for situations where the target command has arguments that are required for the command to work. For example, in the command, ship (amounts of) products to customers on dates, product, customer, and amount must all be specified or the phrase is incomplete.

Prompt if not present

Enter the text that your English Query application displays if User must specify <role> is selected and the user's command does not specify this role.

For example, if the user says "Ship 10 units of Chai," mandatory roles cause English Query to ask for a customer.

The user's command can specify a quantity ("how many") for this entity

Allow, but not require, the user to specify the quantity of the role that is being used in the command. The user only has to specify a quantity if you enter text in the Prompt if not present box.

Only enabled if User must specify <role> is selected.

Note  You can select either How many or How much, but not both for a role.

Prompt if not present

Allow English Query to ask for a quantity ("how many") if the quantity is not specified in the command.

Only enabled if The user's command can specify a quantity ("how many") for this entity is selected.

For example, if you entered "Please indicate how many units" and the user says, "Ship Chai to John", the text appears and the user must enter the number of units of Chai that should be shipped to John.

The user's command can specify an amount ("how much") for this entity

Allow the user to specify the amount the role is used in the command. The user only has to specify an amount if you enter text in Prompt if not present.

Only enabled if User must specify <role> is selected.

Note  You can select either How many or How much, but not both for a role.

Prompt if not present

Allow English Query to ask for the amount ("how much") if it is not specified in the command.

Only enabled if The user's command can specify an amount ("how much") for this entity is selected.

For example, if you entered "Please indicate the amount of the shipment in dollars" and the user says, "Ship Chai to John", the text appears and the user must enter the shipment cost in dollars of Chai that should be shipped to John.

Entity type

Specify the data type for non-database entities. This option is only available for entities that are not associated with a database object.

None
(Default). Indicate that no data type checking occurs when English Query responds to commands.
Numeric
Indicate that the entity is a numeric data type.
Text
Indicate that the entity is a string data type.
Date
Indicate that the entity is a date data type.

See Also

Entities as Roles

Specify Join Path Dialog Box

Using Command Relationships in an English Query Model