one of the components I find very helpful in ADF is the ADF:QueryComponent.
since you can simply drag the ViewCriteria to the page and add it as a component, and it will be rendered based on the design time metadata.
but it can be a bit stressful, since you cannot edit it as freely as other components.
one such example is the operations allowed in the advaned mode :equal, not equal, is blank ,......
and if for some reason you want to change the text of the operation.
you can achieve this by doing the following:
1. open the desire View Object.
2. define a viewCriteria as needed.
3. in the source mode of the View Object add the following:
<CompOper
Name="Between"
Oper="BETWEEN"
ToDo="-1"
MinCardinality="0"
MaxCardinality="0"/>
<CompOper
Name="NotBetween"
Oper="NOTBETWEEN"
ToDo="-1"
MinCardinality="0"
MaxCardinality="0"/>
<CompOper
Name="GreaterThan"
Oper=">"
ToDo="-1"
MinCardinality="0"
MaxCardinality="0"/>
<CompOper
Name="GreaterThanEq"
Oper=">="
ToDo="-1"
MinCardinality="0"
MaxCardinality="0"/>
<CompOper
Name="LessThan"
Oper="<"
ToDo="-1"
MinCardinality="0"
MaxCardinality="0"/>
<CompOper
Name="LessThanEq"
Oper="<="
ToDo="-1"
MinCardinality="0"
MaxCardinality="0"/>
<CompOper
Name="IsNotBlank"
Oper="ISNOTBLANK"
ToDo="1"
MinCardinality="0"
MaxCardinality="0"
OperDesc="Employee Does Have ID"/>
Name="Between"
Oper="BETWEEN"
ToDo="-1"
MinCardinality="0"
MaxCardinality="0"/>
<CompOper
Name="NotBetween"
Oper="NOTBETWEEN"
ToDo="-1"
MinCardinality="0"
MaxCardinality="0"/>
<CompOper
Name="GreaterThan"
Oper=">"
ToDo="-1"
MinCardinality="0"
MaxCardinality="0"/>
<CompOper
Name="GreaterThanEq"
Oper=">="
ToDo="-1"
MinCardinality="0"
MaxCardinality="0"/>
<CompOper
Name="LessThan"
Oper="<"
ToDo="-1"
MinCardinality="0"
MaxCardinality="0"/>
<CompOper
Name="LessThanEq"
Oper="<="
ToDo="-1"
MinCardinality="0"
MaxCardinality="0"/>
<CompOper
Name="IsNotBlank"
Oper="ISNOTBLANK"
ToDo="1"
MinCardinality="0"
MaxCardinality="0"
OperDesc="Employee Does Have ID"/>
inside ViewCriteriaItem.
ToDo=-1 indicates that the operator will not be added, 1 the operator will be added.
OperDesc= the string that will be used in the select item from which you select your operation
for a list of operators see:
Nice example but i want to override the equals name only not it's functionality. As in your sample after changing the display name of equal the input text next to it disappears
ReplyDeletecan you paste the xml?
ReplyDelete