Settings for the Prompt for Criteria dialog box. When Prompt for Criteria is enabled, the DataWindow server prompts the user to specify criteria for retrieving data whenever the Retrieve method is called. Note that the Required property also affects query mode.
Describe and Modify argument:
"columnname.Criteria.property { = value }"
Parameter |
Description |
---|---|
columnname |
The name of the column for which you want to get or set Prompt for Criteria properties. |
property |
A property for the Prompt for Criteria dialog box. Properties and their settings are listed in the table below. |
value |
A Yes or No value to be assigned to the property. For Criteria properties, value cannot be a DataWindow expression. |
Property for Criteria |
Value |
---|---|
Dialog |
Whether Prompt for Criteria is on for columnname. Values are:
If the Dialog property is Yes for at least one column in the DataWindow, then the DataWindow server displays the Prompt for Criteria dialog box when the Retrieve method is called. Painter: Column Specifications view, Prompt check box. |
Override_Edit |
Whether the user must enter data in the Prompt for Criteria dialog box according to the edit style defined for the column in the DataWindow object or be allowed to enter any specifications in a standard edit control. Values are:
Painter: Properties window, Appearance category. |
Required |
Whether the user is restricted to the equality operator (=) when specifying criteria in query mode and in the Prompt for Criteria dialog box. Values are:
Painter: Properties window, Appearance category. |
Set the values using the menus and Properties window as described in the table above.
[Visual Basic] setting = dw1.Describe("empname.Criteria.Dialog")
dw1.Modify("empname.Criteria.Dialog=Yes")
dw1.Modify("empname.Criteria.Override_Edit=Yes")
dw1.Modify("empname.Criteria.Required=No")