0 Replies Latest reply: Sep 20, 2012 2:22 PM by user12238884 RSS

    Entity level validation not getting triggered

    user12238884
      I am using JDeveloper 11.1..2.2.0.

      I have created a Entity level validation for character length and I have specified which attribute changes should trigger this validation.
      Expected Logic is 'Comments' should have more than 1 characters if below mentioned attributes are changed.

      e.g. When I changed just comments field with only 1 character in it, page displayed error message.

      But when I changed Close Date value and didn't enter any comments then validation was not triggered and page is not showing any error.
      I am expecting the validation to be triggered and error message to be displayed.

      Am I missing something?

      I am new to ADF 11g and as well to forum. Let me know if I should provide more information.

      Below is the XML piece from Entity XML data.

      <validation:LengthValidationBean
      Name="HlpData_Rule_1"
      ResId="ofd.hlp.model.entity.HlpData_Rule_3"
      OnAttribute="Comments"
      CompareType="GREATERTHAN"
      DataType="CHARACTER"
      CompareLength="1"
      Inverse="false">
      <validation:OnAttributes>
      <validation:Item
      Value="Comments"/>
      <validation:Item
      Value="BuyoutPriceTotalPv"/>
      <validation:Item
      Value="CloseDate"/>
      <validation:Item
      Value="ContactStatus"/>
      <validation:Item
      Value="EotAction"/>
      <validation:Item
      Value="ProbableOutcome"/>
      <validation:Item
      Value="PvRemainingObligations"/>
      <validation:Item
      Value="StatusNotes"/>
      </validation:OnAttributes>
      </validation:LengthValidationBean>