Format issue for Number field in af:query. Is it an ADF Bug?

Advertisement
Hi OTN,
Requirement : Format DepartmentId in query panel
I have created a view criteria from Employees table (HR Schema). I have four view criteria items called EmployeeId, DepartmentId, Firstname, LastName and all the items having validation property as Selectively Required. DepartmentId attribute have UI Hints property as Format Type = Number and Format = *0000* and Auto Submit=true.
But in UI, I am not able to do search from af:Query panel. It works fine without setting UI Hints property Format Type* and Format
Step 1 : Enter 123 in DepartmentId field
Step 2 : Click Search Button
Error : Please provide a value for atleast one of the indicated fields
Error Screen : http://www.freeimagehosting.net/24d51
Please check the below link for downloading the sample application
http://formatissue.googlecode.com/svn/trunk/FormatTest/FormatTest.zip
http://formatissue.googlecode.com/svn/trunk/FormatTest ( SVN version)
Note:
JDev Version : 11.1.1.5.0
I am using ADF BC and ADF Faces Components
Any recommendations fully appreciated
Thanks,
Dinil Mithra
Edited by: Dinil Mithra on Nov 23, 2011 4:51 PM
Edited by: Dinil Mithra on Nov 23, 2011 5:21 PM
Advertisement

Replay

Please find the metadata for VO attribute and View Criteria
<ViewAttribute
Name="DepartmentId"
PrecisionRule="true"
EntityAttrName="DepartmentId"
EntityUsage="Employees"
AliasName="DEPARTMENT_ID">
<Properties>
<SchemaBasedProperties>
<CONTROLTYPE
Value="edit"/>
<FMT_FORMATTER
ResId="model.EmployeesView.DepartmentId_FMT_FORMATTER"/>
<FMT_FORMAT
ResId="model.EmployeesView.DepartmentId_FMT_FORMAT"/>
<AUTOSUBMIT
Value="true"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewCriteria
Name="EmployeesViewCriteria"
ViewObjectName="model.EmployeesView"
Conjunction="AND">
<Properties>
<CustomProperties>
<Property
Name="displayOperators"
Value="InAdvancedMode"/>
<Property
Name="autoExecute"
Value="false"/>
<Property
Name="allowConjunctionOverride"
Value="true"/>
<Property
Name="showInList"
Value="true"/>
<Property
Name="mode"
Value="Basic"/>
</CustomProperties>
</Properties>
<ViewCriteriaRow
Name="vcrow103"
UpperColumns="1">
<ViewCriteriaItem
Name="EmployeesViewCriteria_vcrow103_EmployeeId"
ViewAttribute="EmployeeId"
Operator="="
Conjunction="AND"
Required="SelectivelyRequired"
GenerateIsNullClauseForBindVars="false"/>
<ViewCriteriaItem
Name="EmployeesViewCriteria_vcrow103_DepartmentId_EmployeesViewCriteria_vcrow103_DepartmentId_itemHolder_vcrow105_DepartmentId"
ViewAttribute="DepartmentId"
Operator="="
Conjunction="AND"
Required="SelectivelyRequired"
GenerateIsNullClauseForBindVars="false"/>
<ViewCriteriaItem
Name="FirstName"
ViewAttribute="FirstName"
Operator="CONTAINS"
Conjunction="AND"
Required="SelectivelyRequired"
GenerateIsNullClauseForBindVars="false"/>
<ViewCriteriaItem
Name="LastName"
ViewAttribute="LastName"
Operator="CONTAINS"
Conjunction="AND"
Required="SelectivelyRequired"
GenerateIsNullClauseForBindVars="false"/>
</ViewCriteriaRow>
</ViewCriteria>