Show validation X besign fields if validation at entity level failed

Hi,
We are doing all validation at the entity level by throwing sth like the following
when a condition mandatory field is not filled in (i.e we override the validateEntity method).
<pre>
return new AttrSetValException(MetaObjectBase.TYP_ATTRIBUTE, OurMessageBundle.class, "27014", fieldName, fieldName, fieldValue);
</pre>
Everything is cool, as the validation message is showing up at the top. However, we need to put a X besides the field too when this failed, much like what you see when you use <af:convertDateTime tag...> .
How to do this? Is it possible? We have defined our own error handle class and faces life cycle as doc by Oracle.
I though by throwing AttrSetValException with fieldname="name" and my input text on jspx has id="name" will do the trick but it doesn't.
Help is much appreciated.
Mel

See an example of custom-validation rule that can be applied to an entity/attribute.
It's oracle.jbo.server.rules.JboGenericValidator and the source is in BC4J/src/bc4jaddinsrc.zip
Also I've verified on JDev 903 Preview release that creating a new 'validationrule' in the project editor and applying it to 'entity' at entity level does work. validateValue() is called with 'entity' as the input Object.

Similar Messages

  • Validation in entity level

    hi all
    I have an entity "currncy" and I want to make
    a validation in entity level on its attribute "Isdefaultcurrency"
    which is boolean.
    Entity Object : Currency
    attributes :
    1. Currencyid DBsequence
    2. Currencyname String
    3. Isdefaultcurrency, Boolean, CheckBox
    Rule Type : List
    Operator : In
    List Type : Query Result 'select ISDEFAULTCURRENCY from currency where ISDEFAULTCURRENCY=1'
    I want when user insert in table, validation checks the attribute 'Isdefaultcurrency'
    was true then show the error message that there was default currency and if you
    want to set it to true (or default) you must change another record that was true
    and uncheck it then back to current record and will make it true and
    there is one record in my table that its attribute 'Isdefaultcurrency' must be true
    please explain it

    Hi Thanks for reply,
    i used following but same issue, the respected fields are not getting marked.
    EoIMpl
      public void registerAttrValExceptionForAttribute(String attrName)
        oracle.jbo.AttributeDef attrDef = getDefinitionObject().getAttributeDefImpl(attrName);
        registerAttributeException(attrDef, 0,
                                          new oracle.jbo.AttrValException(oracle.jbo.common.MetaObjectBase.TYP_ENTITY_OBJECT, getResourceBundleDef(), ERRCODE, getEntityDef().getFullName(),
                                                                          attrName, getAttribute(attrName), null, false));
      }EO-Validation Groovy Script
    source.registerAttrValExceptionForAttribute('MyAttr');Thanks,
    Santosh.

  • Validation on Entity level

    Hi All,
    In Jdev11g, I have set the validation on attribute level to check whether a field (e.g. password) contains only alphanumeric.
    I have used Rule Type as Regular Expression with the regular expression value [A-Za-z0-9]+.
    I am worried, why this validation is not getting fired up?
    Please help me to get around this.
    Regards,
    Loganathan

    When do you expect it to fire?
    Entity level validation only occurs if you call it directly or doDML call has been issued.
    I guess the validation rules are inherited by the VO and by components build from the VO.
    Timo

  • Validation with data file failed

    Hello All
    I have loaded the Currency Exchange Rates from BW cube into Rate Model in BPC upto March 2014 and then our BW cube get updated the Exchange Rates for April 2014.
    Now I am trying to load the Exchange Rates for April 2014 only into Rate model and for that I am validating the Transformation File but it was failed. It shows 'VALIDATION WITH DATA FILE FAILED'.
    Rejected list option showing blank screen.
    With the same Transformation file I have loaded the data upto March 2014 successfully.
    I have compressed the source cube, reactivate the source cube after all am unable to validate the Transformation file. Below is my transformation file screen shot.
    Please let me know if you need any more details from my side.
    Thanku you all in advance.
    Please help
    Regards
    Srikant

    Hi Shaik
    Thanks for your reply.
    I have validate the Transformaiton file by given vlaue in MAXREJECTCOUNT= 10000 but there is no chage same error is coming. 'Validation with data file failed' without any errors.
    Thanks
    Srikant

  • I did force shutdown on my MacBook Pro (2006 year, 15.4"), so, when I tried to boot, it shows apple logo (as usual) and shuts down. When I booting MacBook with Option key pressed it shows lock icon and field for password. Please help me.

    I did force shutdown on my MacBook Pro (2006 year, 15.4"), so, when I tried to boot, it shows apple logo (as usual) and shuts down. When I booting MacBook with Option key pressed it shows lock icon and field for password. Please help me.

    Wait for advice on repairing a damaged filesystem.  Forceshutdown stops processs in mid-stream and leaves some parts not-valid.
    Do not proceed until you get that avice.

  • Validation on Application Level?

    Hi,
    is there the possibility to define a validation on application level? Couldn't find anything.
    I thought about a validation on page 0, but page 0 doesn't allow to create validations...
    Purpose: I want to validate the Apex_Application.g_fxx arrays. The validation will be the same for all pages.
    Thanks for your help
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com

    Hi Vikas,
    thanks for the help. Just tried it out, didn't work :-(
    It does the redirect, but doesn't show the error message. I assume the g_validation_ids_in_error and g_item_ids_in_error has also to be set. But the redirect isn't good in my case anyway, because the tabular form entries are lost.
    But I just found out that APEX_Application.show_error does exactly what I was looking for!
    Thanks for your help
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com

  • How to stop attribute level validation when entity validator fails?

    Hi,
    Can you suggest any way to achieve the desired behaviour on the following scenario.
    Table contains the following columns
    1. Grade
    2. Grade Rate
    3. Status
    Constraints:
    1. Grade and Grade Rate together must be unique.
    2. Grade and Grade Rate are mandatory fields.
    Implementation:
    1. Have Mandatory validator at attribute level for Grade and Grade Rate by default.
    2. Alternate key is defined based on Grade and Grade Rate and added the same as Entity validator.
    User operation scenario:
    User adds a row in a table, entered 'GradeOne' as Grade, tabbed out and then entered '5 %' as Grade Rate (Existing row of the VO has a row with similar data already). When user try to navigate to other row, both validation at attribute level and entity level fires and gives the following error messages.
    Error Msg 1. Grade and GradeRate should be unique.
    Error Msg 2. Attribute GradeRate is required.
    Expected behaviour:
    I can understand the reason why ADF throws both the errors (coz it didn't consider the invalid value of GradeRate posted into attribute), but the error messages confuses the user. It would be great if he get only one error message in this scenario (i.e. Unique validation alone)
    Question:
    How can I restrict in such a way that only one error validation happens in a request (i.e. either attribute level or entity level or in a particular order}
    Thanks in Advance.

    Hi,
    the reason ADF does this is for performance. What if you create a custom error handler in the DataBindings.cpx file and use this to suppress all other errors?
    See
    Decompiling ADF Binaries: Customizing Business Components Error Messages
    :http://www.adftutorials.com/adf-custom-error-handler-to-display-custom-message-to-user.html
    Frank

  • Entity level validation

    I have a requirement where there are two entities in a master detail relationship (A and B respectively linked through entity association)
    EO A has a field called TotalQuantity (master)
    EO B has a field called Split Quantity (detail)
    The total quantity in the EO A to be split in the EO B, whereas the totals of the splits should equal the Total quantity of the EO A.
    Can anyone suggest how to achieve this consistency by using an entity level validation.?
    Please note that the EO A will be created and committed first, then only the child records are created(EO B). Both are not created and committed together.

    for the sales Quantity you can have a validation on 'SalesQuantity' as 'Compare Validation' against the ViewAccessors attribute in the EO. operator as less than or equal to
    for Entity you can have a 'Collection Validation' with the operaiton as 'Sum' with 'Equals' operator against the ViewAccessors attribute in the EO

  • Entity level validation suppressed in backend

    Hi,
    I am working on jdev 11.1.1.6, where I face a issues which is pretty much strange. I created a editable table from a view object datacontrol by dragging and dropping. This UI table consist of two columns with two LOVs providing them values.
    The entity level validation when I create two rows with same values are fired but the error message is not shown to the UI, but able to find the stack trace in the jdev console.The same happens even when I try to commit the rows. This rather breaks the page stopping me to do further activities.
    Please do help......

    Hi frank,
    Here is a detials of the present implementation,
    * The entity E1 has three keys. I created a business rule validation with as unique key validation with a custom error message ('*the record is already found*').
    * The view object used for table creation is created using the above entity with the same three key attributes.
    * Out of the three keys, two are provided with an LOV and the other is set but the same lov when choosing the values.
    * The view object is dragged and dropped in the jsf which looks as follows,
    <af:table value="#{bindings.xxxxx.collectionModel}"
                           var="row" rows="#{bindings.xxxxx.rangeSize}"
                           emptyText="#{bindings.xxxxx.viewable ? 'No data to display.' : 'Access Denied.'}"
                           fetchSize="#{bindings.xxxxx.rangeSize}"
                           rowBandingInterval="0"
                           selectedRowKeys="#{bindings.xxxxx.collectionModel.selectedRow}"
                           selectionListener="#{bindings.xxxxx.collectionModel.makeCurrent}"
                           rowSelection="single" id="t4"
                           width="1000"
                           autoHeightRows="6"
                           styleClass="AFStretchWidth SimpleTable Debt"
                           partialTriggers="::cl15 ::cl16 ::cl18 cl14">
                  <af:column sortProperty="ModuleNo" sortable="false"
                             headerText="Report..."
                             id="c8" width="250">
                   <af:inputListOfValues id="moduleNoId"
                                         popupTitle="Search and Select: #{bindings.xxxxx.hints.ModuleNo.label}"
                                         value="#{row.bindings.ModuleNo.inputValue}"
                                         model="#{row.bindings.ModuleNo.listOfValuesModel}"
                                         required="#{bindings.ReportsShared1.hints.ModuleNo.mandatory}"
                                         columns="#{bindings.ReportsShared1.hints.ModuleNo.displayWidth}"
                                         shortDesc="#{bindings.ReportsShared1.hints.ModuleNo.tooltip}"
                                         autoSubmit="true">
                    <f:validator binding="#{row.bindings.ModuleNo.validator}"/>
                   </af:inputListOfValues>
                  </af:column>
                  <af:column sortProperty="SharedTo" sortable="false"
                             headerText="With..."
                             id="c11" width="250">
                   <af:inputListOfValues id="sharedToId"
                                         popupTitle="Search and Select: #{bindings.xxxxx.hints.SharedTo.label}"
                                         value="#{row.bindings.SharedTo.inputValue}"
                                         model="#{row.bindings.SharedTo.listOfValuesModel}"
                                         required="true"
                                         columns="#{bindings.xxxxx.hints.SharedTo.displayWidth}"
                                         shortDesc="#{bindings.xxxxx.hints.SharedTo.tooltip}"
                                         autoSubmit="true">
                    <f:validator binding="#{row.bindings.SharedTo.validator}"/>
                   </af:inputListOfValues>
                  </af:column>
                  <af:column id="c7" width="100">
                      <af:commandLink actionListener="#{bindings.Delete1.execute}"
                                 shortDesc="Delete line"
                                styleClass="Small Button GrayDelete"
                                 immediate="true"
                                 partialSubmit="true" id="cl14"/>
                  </af:column>
                   <af:column sortProperty="LedgerType" sortable="false"
                             headerText="#{bindings.xxxxx.hints.LedgerType.label}"
                             id="c6">
                   <af:outputText value="#{row.LedgerType}" id="ot10"/>
                  </af:column>
                  <af:column sortProperty="ReportName" sortable="false"
                             headerText="#{bindings.xxxxx.hints.ReportName.label}"
                             id="c1">
                   <af:outputText value="#{row.ReportName}" id="ot11"/>
                  </af:column>
                 </af:table>
    <af:commandLink actionListener="#{bindings.CreateInsert1.execute}"
                                 text=""
                                 partialSubmit="true"
                                 id="cl15"
                                 styleClass="debtAddlinesButton"/>
    <af:commandLink actionListener="#{bindings.Commit.execute}"
                                               text="Share" id="cl16"
                                               styleClass="greyButton"/>
    <af:commandLink actionListener="#{bindings.Rollback.execute}"
                                               text="Cancel"
                                               immediate="true" id="cl18"
                                               styleClass="greyButton">
                                <af:resetActionListener/>
    </af:commandLink>
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////Now when I use the CreateInsert1 command link and create a row and fill in the values that are already present , say I select name in 'sharedTo' that is already present.... it does not show me the validation error in the ballon as it always does but doesnt fill the value in that too....and when I enter the value instead of using the LOV it shows a blink of the custom error popup I set in the entity (*the record is already found*) and disappears. After that nothing is functional in the page. But I see the jev console with the same custom error message with stack trace
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: the record is already found
    oracle.jbo.AttrSetValException: JBO-com.symmetry.dashboard.panels.model.eo.XXXE1: the record is already found
         at oracle.jbo.rules.RulesBeanUtils.createException(RulesBeanUtils.java:381)
         at oracle.jbo.rules.AbstractValidator.createException(AbstractValidator.java:1065)
         at oracle.jbo.rules.AbstractValidator.doRaiseException(AbstractValidator.java:1120)
         at oracle.jbo.rules.AbstractValidator.raiseException(AbstractValidator.java:1109)
         at oracle.jbo.rules.JboAbstractValidator.raiseException(JboAbstractValidator.java:409)
         at oracle.jbo.rules.AbstractValidator.raiseException(AbstractValidator.java:1096)
         at oracle.jbo.server.JboUniqueKeyValidator.validateValue(JboUniqueKeyValidator.java:369)
         at oracle.jbo.server.JboUniqueKeyValidator.validateValueWithContext(JboUniqueKeyValidator.java:84)
         at oracle.jbo.rules.JboAbstractValidator.callValidateValueWithContext(JboAbstractValidator.java:235)
         at oracle.jbo.rules.JboAbstractValidator.validate(JboAbstractValidator.java:386)
         at oracle.jbo.rules.RulesBeanUtils.validateObject(RulesBeanUtils.java:716)
         at oracle.jbo.rules.RulesBeanUtils.validate(RulesBeanUtils.java:696)
         at oracle.jbo.server.AttributeDefImpl.validate(AttributeDefImpl.java:3349)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:3294)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:2012)
         at oracle.jbo.server.AttributeDefImpl.resolveSet(AttributeDefImpl.java:3510)
         at oracle.jbo.server.EntityImpl.setAttrInvokeAccessor(EntityImpl.java:1993)
         at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:1920)
         at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:2363)
         at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:2165)
         at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1453)
         at oracle.jbo.server.ViewRowImpl.setAttrInvokeAccessor(ViewRowImpl.java:1428)
         at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:1089)
         at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:1029)
         at oracle.jbo.server.ViewRowImpl.setAttributeValues(ViewRowImpl.java:1703)
         at oracle.adf.model.binding.DCDataControl.setAttributesInRow(DCDataControl.java:2428)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.setAttributeValuesInRow(JUCtrlValueBinding.java:976)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setTargetAttrsFromLovRow(JUCtrlListBinding.java:2801)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setTargetAttrsFromLovRowAndUpdateMRU(JUCtrlListBinding.java:2702)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding.setInputValueInRow(FacesCtrlLOVBinding.java:1164)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.setInputValue(JUCtrlValueBinding.java:2814)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.setInputValue(JUCtrlValueBinding.java:2777)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.put(JUCtrlValueBinding.java:2434)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.put(JUCtrlListBinding.java:3428)
         at javax.el.MapELResolver.setValue(MapELResolver.java:229)
         at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:252)
         at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:278)
         at com.sun.el.parser.AstValue.setValue(Unknown Source)
         at com.sun.el.ValueExpressionImpl.setValue(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXEditableValue.updateModel(UIXEditableValue.java:289)
         at org.apache.myfaces.trinidad.component.UIXEditableValue.processUpdates(UIXEditableValue.java:252)
         at org.apache.myfaces.trinidad.component.ChildLoop$Update.process(ChildLoop.java:76)
         at org.apache.myfaces.trinidad.component.ChildLoop.runAlways(ChildLoop.java:55)
         at org.apache.myfaces.trinidad.component.ChildLoop.runAlways(ChildLoop.java:48)
         at org.apache.myfaces.trinidad.component.UIXColumn.processUpdates(UIXColumn.java:111)
         at oracle.adf.view.rich.component.rich.data.RichColumn.processUpdates(RichColumn.java:264)
         at org.apache.myfaces.trinidad.component.UIXCollection.processComponent(UIXCollection.java:993)
         at org.apache.myfaces.trinidad.component.TableUtils$3.process(TableUtils.java:283)
         at org.apache.myfaces.trinidad.component.ChildLoop.runAlways(ChildLoop.java:55)
         at org.apache.myfaces.trinidad.component.ChildLoop.runAlways(ChildLoop.java:48)
         at org.apache.myfaces.trinidad.component.TableUtils.processStampedChildren(TableUtils.java:278)
         at oracle.adf.view.rich.component.UIXTable.processStamps(UIXTable.java:202)
         at org.apache.myfaces.trinidad.component.UIXTable.processFacetsAndChildren(UIXTable.java:382)
         at org.apache.myfaces.trinidad.component.UIXCollection.updateChildrenImpl(UIXCollection.java:209)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildren(UIXComponentBase.java:1043)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processUpdates(UIXComponentBase.java:827)
         at org.apache.myfaces.trinidad.component.UIXTable.processUpdates(UIXTable.java:166)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildrenImpl(UIXComponentBase.java:1053)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildren(UIXComponentBase.java:1043)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processUpdates(UIXComponentBase.java:827)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildrenImpl(UIXComponentBase.java:1053)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildren(UIXComponentBase.java:1043)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processUpdates(UIXComponentBase.java:827)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildrenImpl(UIXComponentBase.java:1053)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildren(UIXComponentBase.java:1043)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processUpdates(UIXComponentBase.java:827)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildrenImpl(UIXComponentBase.java:1053)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildren(UIXComponentBase.java:1043)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processUpdates(UIXComponentBase.java:827)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$201(ContextSwitchingComponent.java:41)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$4.run(ContextSwitchingComponent.java:137)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processUpdates(ContextSwitchingComponent.java:140)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildrenImpl(UIXComponentBase.java:1053)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildren(UIXComponentBase.java:1043)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processUpdates(UIXComponentBase.java:827)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildrenImpl(UIXComponentBase.java:1053)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildren(UIXComponentBase.java:1043)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processUpdates(UIXComponentBase.java:827)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildrenImpl(UIXComponentBase.java:1053)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildren(UIXComponentBase.java:1043)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processUpdates(UIXComponentBase.java:827)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$201(ContextSwitchingComponent.java:41)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$4.run(ContextSwitchingComponent.java:137)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processUpdates(ContextSwitchingComponent.java:140)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildrenImpl(UIXComponentBase.java:1053)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildren(UIXComponentBase.java:1043)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processUpdates(UIXComponentBase.java:827)
         at org.apache.myfaces.trinidad.component.UIXForm.processUpdates(UIXForm.java:89)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildrenImpl(UIXComponentBase.java:1053)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.updateChildren(UIXComponentBase.java:1043)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processUpdates(UIXComponentBase.java:827)
         at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1084)
         at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:728)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$UpdateModelValuesCallback.invokeContextCallback(LifecycleImpl.java:1436)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:397)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

  • Date and Salary validation at EO level.

    Hi All,
    I have two fields Salary and Date both are present at EO level
    I need to write a validation that if the date of birth entered on UI is more than 50 years as of today then salary should not be less than 5000
    Ex: if date entered is 02-02-1961 and salary entered is 4500 then it should throw an error message on click of the button.
    There are many custom validations at eo level but exactly where should this be done.
    Thanks,
    Arun

    Thanks All ... Actually i have binded the UI fields and in the bean i have written the following code and calling it on click of a button and its working... Anyhow i will try the other options also such as using groovy and writing the code in eoimpl provided in this thread .... The code which i have written is as follows but is it the right approach please let me know
    public void comm() {
    oracle.jbo.domain.Number s = (oracle.jbo.domain.Number)sal.getValue();
    oracle.jbo.domain.Date ds = (oracle.jbo.domain.Date)dob.getValue();
    java.util.Date sa = convertDomainDateToUtilDate(ds);
    System.out.println("The dob is "+sa);
    Calendar cl = Calendar.getInstance();
    cl.setTime(new java.util.Date());
    cl.add(Calendar.YEAR, -50);
    java.util.Date toDate = cl.getTime();
    System.out.println("The 50 years before date is "+toDate);
    if ( sa.before(toDate) && s.intValue() < 5000) {
    FacesMessage msg =
    new FacesMessage(FacesMessage.FACES_MESSAGES,
    "sal should be more than 5000");
    FacesContext context = FacesContext.getCurrentInstance();
    context.addMessage(null, msg);
    } else {
    invokeEL("#{bindings.Commit.execute}");
    public static java.util.Date convertDomainDateToUtilDate(oracle.jbo.domain.Date domainDate) {
    java.util.Date date = null;
    if (domainDate != null) {
    java.sql.Date sqldate = domainDate.dateValue();
    date = new Date(sqldate.getTime());
    return date;
    Thanks,
    Arun

  • Bug:  ADF BC Entity Object entity level validator on dates

    Hi JDev team
    I'm having an issue getting the ADF BC EO entity level compare validator to work on Date columns in JDev 11g TP and suspect a bug.
    Steps to reproduce:
    1.     Create EO based on table with 2 Date attributes, eg. StartDate and EndDate both domain Date.
    2.     In the EO editor, under General tab, select create button for Validation Rules.
    3.     In Validation Rule dialog.......
    4.     Select Compare Validator
    5.     Select StartDate as attribute
    6.     Select LessOrEqualTo as operator
    7.     Select Entity Attribute as compare with
    8.     Select EndDate in Select Entity Attribute list
    9.     Change to Validation Execution tab
    10.     StartDate should already by in Selected Attributes list
    11.     Also move EndDate to Selected Attributes list
    12.     Change to Failure Handling tab
    13.     Ensure Error is selected for Validation Failure Severity
    14.     Enter an error message in the Message Text field
    15.     Select ok button.
    Within Business Components Browser for an existing record, setting the StartDate >= EndDate then commit does not raise an error. I'm guessing we should see an error.
    I've attempted the same with 2 Number domain attributes and the error is correctly raised, so I suspect the error is with the Data domains.
    Regards,
    CM.

    Can no longer reproduce this bug in the JDEVADF_MAIN_GENERIC_070607.0749.4562 build I have on my machine today, so it has been fixed post-JavaOne tech preview.

  • Skip entity level validation programatically - special case

    Hi
    using jdev 11.1.1.3
    Can anyone suggest me a solution as to how I can skip validation programatically.
    I have both entity level and deffered entitylevel txn validations on this entity.
    I use the VO to populate the data and I modify the date field, and I want to skip validation for this particular usecase as it is against the validation rule(special case)
    thanks

    Hi,
    Check
    http://jobinesh.blogspot.com/2009/08/how-to-skip-validation.html
    http://andrejusb.blogspot.com/2012/10/transaction-level-adf-bc-entity.html

  • Failed validation as a level hierarchy

    Hi,
    I have dimension called SKU in my analytic workspace with a hierarchy PRODUCTS defined as ALLPRODUCTS<--MD<--MG<--PG<--STYLE<--PRODUCT. I have used composite keys as Members to maintain uniqueness. For example the member expression for PG is CUBE_DEV.DIMSKU.MDID || CUBE_DEV.DIMSKU.MGID || CUBE_DEV.DIMSKU.PGID. I'm not using Surrogate keys. When I hit the maintain Dimension SKU, LOAD NO SYNCH succeeds but the compile step fails with error
    "INI: error creating a definition manager, Generic at TxsOqConnection::generic<BuildProcess>INI: XOQ-01712: "SKU.PRODUCTS" failed validation as a level hierarchy., Generic at TxsOqStdFormCommand::execute"
    I looked at the rejected records and every record has the error "(XSRWLD13) Cannot change the level of a dimension member within a single load." Can anyone help me resolving this issue ?
    I'm using AWM 11.2.0.1.0 on Oracle 11g R2 server.
    Thanks,
    RK

    David,
    I looked at the data and found out that there were NULLs in many key columns. I updated all of them to the value 'Unknown'. Also I re-implemented Composite keys because I thought Type 2 dimension would pose problem in determining uniqueness. Now there are no errors and I could successfully load data into the dimension.
    Below is the latest definition
    <!DOCTYPE Metadata [
    <!ENTITY % BIND_VALUES PUBLIC "OLAP BIND VALUES" "OLAP METADATA">
    %BIND_VALUES;
    ]>
    <Metadata
    Version="1.2"
    MinimumDatabaseVersion="11.2">
    <StandardDimension
    Name="SKU"
    ETViewName="SKU_VIEW"
    ETKeyColumnName="DIM_KEY"
    ETLevelColumnName="LEVEL_NAME"
    ETMemberTypeColumnName="MEMBER_TYPE"
    ETDimensionOrderColumnName="DIM_ORDER"
    DefaultHierarchy="PRODUCTS"
    ETHierarchyOrderColumnName="HIER_ORDER"
    ShortValueDescriptionAttribute="SHORT_DESCRIPTION">
    <Organization>
    <AWPrimaryDimensionOrganization
    AW="&AW_NAME;"
    AddUniqueKeyPrefix="True"
    MVOption="NONE"
    HierarchyConsistencyRule="CONSISTENT">
    <MVCreationOptions
    RefreshType="COMPLETE"
    RefreshOn="DEMAND"
    UsingConstraintsClause="TRUSTED">
    </MVCreationOptions>
    <DefaultBuild>
    <![CDATA[BUILD SPEC SYS_DEFAULT
      LOAD,
      COMPILE
    )]]>
    </DefaultBuild>
    <AttributeOrganization
    Attribute="SHORT_DESCRIPTION">
    </AttributeOrganization>
    </AWPrimaryDimensionOrganization>
    </Organization>
    <DimensionLevel
    Name="MERCHDIVISION"
    ETKeyColumnName="MERCHDIVISION">
    <Description
    Type="LongDescription"
    Language="AMERICAN"
    Value="MERCHDIVISION">
    </Description>
    <Description
    Type="ShortDescription"
    Language="AMERICAN"
    Value="MERCHDIVISION">
    </Description>
    <Description
    Type="Description"
    Language="AMERICAN"
    Value="MERCHDIVISION">
    </Description>
    </DimensionLevel>
    <DimensionLevel
    Name="MERCHGROUP"
    ETKeyColumnName="MERCHGROUP">
    <Description
    Type="LongDescription"
    Language="AMERICAN"
    Value="MERCHGROUP">
    </Description>
    <Description
    Type="ShortDescription"
    Language="AMERICAN"
    Value="MERCHGROUP">
    </Description>
    <Description
    Type="Description"
    Language="AMERICAN"
    Value="MERCHGROUP">
    </Description>
    </DimensionLevel>
    <DimensionLevel
    Name="PRODUCTGROUP"
    ETKeyColumnName="PRODUCTGROUP">
    <Description
    Type="LongDescription"
    Language="AMERICAN"
    Value="PRODUCTGROUP">
    </Description>
    <Description
    Type="ShortDescription"
    Language="AMERICAN"
    Value="PRODUCTGROUP">
    </Description>
    <Description
    Type="Description"
    Language="AMERICAN"
    Value="PRODUCTGROUP">
    </Description>
    </DimensionLevel>
    <DimensionLevel
    Name="STYLE"
    ETKeyColumnName="STYLE">
    <Description
    Type="LongDescription"
    Language="AMERICAN"
    Value="STYLE">
    </Description>
    <Description
    Type="ShortDescription"
    Language="AMERICAN"
    Value="STYLE">
    </Description>
    <Description
    Type="Description"
    Language="AMERICAN"
    Value="STYLE">
    </Description>
    </DimensionLevel>
    <DimensionLevel
    Name="PRODUCT"
    ETKeyColumnName="PRODUCT">
    <Description
    Type="LongDescription"
    Language="AMERICAN"
    Value="PRODUCT">
    </Description>
    <Description
    Type="ShortDescription"
    Language="AMERICAN"
    Value="PRODUCT">
    </Description>
    <Description
    Type="Description"
    Language="AMERICAN"
    Value="PRODUCT">
    </Description>
    </DimensionLevel>
    <Description
    Type="LongDescription"
    Language="AMERICAN"
    Value="sku">
    </Description>
    <Description
    Type="ShortDescription"
    Language="AMERICAN"
    Value="sku">
    </Description>
    <Description
    Type="Description"
    Language="AMERICAN"
    Value="sku">
    </Description>
    <Hierarchy>
    <LevelHierarchy
    Name="PRODUCTS"
    IsSkipLevel="True"
    IsRagged="True"
    ETParentColumnName="PARENT"
    ETDepthColumnName="DEPTH"
    ETViewName="SKU_PRODUCTS_VIEW">
    <HierarchyLevel
    DimensionLevel="MERCHDIVISION">
    <HierarchyLevelMap
    KeyExpression="DIMSKU.MDID"
    Query="DIMSKU">
    <AttributeMap
    Name="SHORT_DESCRIPTION"
    Attribute="SHORT_DESCRIPTION"
    Expression="DIMSKU.MDID">
    </AttributeMap>
    </HierarchyLevelMap>
    </HierarchyLevel>
    <HierarchyLevel
    DimensionLevel="MERCHGROUP">
    <HierarchyLevelMap
    KeyExpression="DIMSKU.MDID || DIMSKU.MGID"
    Query="DIMSKU">
    <AttributeMap
    Name="SHORT_DESCRIPTION"
    Attribute="SHORT_DESCRIPTION"
    Expression="DIMSKU.MDID || &apos;:&apos; || DIMSKU.MGID">
    </AttributeMap>
    </HierarchyLevelMap>
    </HierarchyLevel>
    <HierarchyLevel
    DimensionLevel="PRODUCTGROUP">
    <HierarchyLevelMap
    KeyExpression="DIMSKU.MDID || DIMSKU.MGID || DIMSKU.PGID"
    Query="DIMSKU">
    <AttributeMap
    Name="SHORT_DESCRIPTION"
    Attribute="SHORT_DESCRIPTION"
    Expression="DIMSKU.MDID || &apos;:&apos; || DIMSKU.MGID || &apos;:&apos; || DIMSKU.PGID">
    </AttributeMap>
    </HierarchyLevelMap>
    </HierarchyLevel>
    <HierarchyLevel
    DimensionLevel="STYLE">
    <HierarchyLevelMap
    KeyExpression="DIMSKU.MDID || DIMSKU.MGID || DIMSKU.PGID || DIMSKU.STYLE"
    Query="DIMSKU">
    <AttributeMap
    Name="SHORT_DESCRIPTION"
    Attribute="SHORT_DESCRIPTION"
    Expression="DIMSKU.MDID || &apos;:&apos; || DIMSKU.MGID || &apos;:&apos; || DIMSKU.PGID || &apos;:&apos; || DIMSKU.STYLE">
    </AttributeMap>
    </HierarchyLevelMap>
    </HierarchyLevel>
    <HierarchyLevel
    DimensionLevel="PRODUCT">
    <HierarchyLevelMap
    KeyExpression="DIMSKU.MDID || DIMSKU.MGID || DIMSKU.PGID || DIMSKU.STYLE || DIMSKU.SKU"
    Query="DIMSKU">
    <AttributeMap
    Name="SHORT_DESCRIPTION"
    Attribute="SHORT_DESCRIPTION"
    Expression="DIMSKU.MDID || &apos;:&apos; || DIMSKU.MGID || &apos;:&apos; || DIMSKU.PGID || &apos;:&apos; || DIMSKU.STYLE || &apos;:&apos; || DIMSKU.SKU">
    </AttributeMap>
    </HierarchyLevelMap>
    </HierarchyLevel>
    <Description
    Type="LongDescription"
    Language="AMERICAN"
    Value="PRODUCTS">
    </Description>
    <Description
    Type="ShortDescription"
    Language="AMERICAN"
    Value="PRODUCTS">
    </Description>
    <Description
    Type="Description"
    Language="AMERICAN"
    Value="PRODUCTS">
    </Description>
    </LevelHierarchy>
    </Hierarchy>
    <Attribute>
    <BaseAttribute
    Name="SHORT_DESCRIPTION"
    IsVisibleForAll="True"
    SQLDataType="NVARCHAR2(100)"
    ETAttributeColumnName="SHORT_DESCRIPTION">
    <Description
    Type="ShortDescription"
    Language="AMERICAN"
    Value="Short Description">
    </Description>
    <Description
    Type="LongDescription"
    Language="AMERICAN"
    Value="Short Description">
    </Description>
    <Description
    Type="Description"
    Language="AMERICAN"
    Value="Short Description">
    </Description>
    <Classification
    Value="STAR"/>
    </BaseAttribute>
    </Attribute>
    </StandardDimension>
    </Metadata>
    But I'm facing problem if I put Names in Short Description attribute. I have fields MerchGroupName, MerchDivisionName, ProductGroupName, StyleName in the database table which I would love to use for short description. When I use them, the error is
    INI: error creating a definition manager, Generic at TxsOqConnection::generic<BuildProcess>INI: XOQ-01600: OLAP DML error "ORA-34034: 1 is already a value of DEMANTRADW!SKU_MERCHDIVISION_SURROGATE." while executing DML "SYS.AWXML!R11_LOAD_DIM('SKU.DIMENSION' SYS.AWXML!___R11_LONG_ARG_VALUE(SYS.AWXML!___R11_LONG_ARG_DIM 1) 'MATCH' 'YES' 'YES' 'SKU.MERCHDIVISION.LEVEL' 'SKU.MERCHGROUP.LEVEL' 'SKU.PRODUCTGROUP.LEVEL' 'SKU.STYLE.LEVEL' 'SKU.PRODUCT.LEVEL' 'SKU.SHORT_DESCRIPTION.ATTRIBUTE' 'SKU.PRODUCTS.HIERARCHY')", Generic at TxsOqStdFormCommand::executeINI: XOQ-01601: error while loading data for Cube Dimension "CUBE_DEV.SKU" into the analytic workspace, Generic at TxsOqStdFormCommand::execute

  • Validation of viewstate MAC failed

     There is a small problem with a big faliure.. in the <form action ="default2.aspx">tag when i click the buuton 
    it shows the error has
    Server Error in '/' Application.
    Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same
    validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
    http://go.microsoft.com/fwlink/?LinkID=314055
    in this page  i have already done local system in the inetmgr.
    also i just switch to add two no from visual studio.
    pls its very kiiling.
    i have generated a machine key decrytion keys and all added to web.config in <system.web> but same problem.and also see
    ?xml version="1.0"?>
    <!--
      For more information on how to configure your ASP.NET application, please visit
      http://go.microsoft.com/fwlink/?LinkId=169433
      -->
    <configuration>
    in this link also in the iis i configured now localsystem but this is not going from web.config i dont think even re install will 
    solve out the problem.

     There is a small problem with a big faliure.. in the <form action ="default2.aspx">tag when i click the buuton 
    it shows the error has
    Server Error in '/' Application.
    Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies
    the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
    http://go.microsoft.com/fwlink/?LinkID=314055
    in this page  i have already done local system in the inetmgr.
    also i just switch to add two no from visual studio.
    pls its very kiiling.
    i have generated a machine key decrytion keys and all added to web.config in <system.web> but same problem.and also see
    ?xml version="1.0"?>
    <!--
      For more information on how to configure your ASP.NET application, please visit
      http://go.microsoft.com/fwlink/?LinkId=169433
      -->
    <configuration>
    in this link also in the iis i configured now localsystem but this is not going from web.config i dont think even re install will 
    solve out the problem.
    Hi,
    I am afraid that for web development issues, I would recommend you post them in
    https://forums.asp.net forum to get dedicated supports.
    In addition, you could have a check whether the following blog helps.
    http://blogs.msdn.com/b/tom/archive/2008/03/14/validation-of-viewstate-mac-failed-error.aspx
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Customer validation on all levels of WBS

    Dear All,
    I have done validation on 1st level of WBS that customer field is must to fill in or it gives error message.
    How do i do this for all levels of WBS?
    Regards,
    Smile

    In prerequisiste of validation at WBS level maintain the logic such as
    PROJ-PROFL = 'XYZ''  AND PRPS-STUFE >= '2' i.e you are doing a prerequisite for project profile XYZ and WBS level > 2. This validation will be applicable for all conditions matching.
    If you just want level then maintain PRPS-STUFE >= '1' , so that validation will be carried out for all levels of WBS greater then 1.
    Thnaks
    Sarang

Maybe you are looking for