Criteria.property
(DataWindow object)
Description
Settings for the Prompt for Criteria dialog box. When Prompt for
Criteria is enabled, PowerBuilder prompts the user to specify criteria
for retrieving data whenever the Retrieve method is called. Note that
the Required property also affects query mode.
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.columnname.Criteria.property |
Describe and Modify argument:
|
1 |
"columnname.Criteria.property { = value }" |
|
Parameter |
Description |
|---|---|
|
columnname |
The name of the column for which you want to get or |
|
property |
A property for the Prompt for Criteria dialog box. |
|
value |
A Yes or No value to be assigned to the property. |
|
Property for Criteria |
Value |
|---|---|
|
Dialog |
Whether Prompt for Criteria is on for Values are: Yes — Include No If the Dialog property is Yes Painter: Column Specifications |
|
Override_Edit |
Whether the user must enter data in the Prompt for Values Yes — Allow the user to override the column’s No — (Default) Constrain the user to the Painter: Properties view, |
|
Required |
Whether the user is restricted to the equality Values Yes — Require the user to use the equality No — (Default) Allow the user to use Painter: Properties view, General |
Usage
In the painter
Set the values using the menus and Properties view as described in
the table above.
Examples
|
1 2 3 4 5 6 7 8 9 10 |
string setting setting = dw1.Object.empname.Criteria.Dialog dw1.Object.empname.Criteria.Dialog= "Yes" 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") IF dw1.Describe("empname.Edit.Style") = "dddw" THEN dw1.Modify("empname.Criteria.Override_Edit=Yes") END IF |