/idm/pwdreset unique id validation

Hi,
Is there a way we can validate the user id (unique id) in the password reset guided procedure against the IDM database ?
Right now if i even enter "a" in the unique id space the guided procedure take it and shows up some random questions. we want IDM to validate if the entered unique id is correct and if possible to only allow those id's which have a profile set.
Please let me know how can this be achived.
Thanks

Hi,
Although there is a verification that the user exists, this information is not revealed to the end user for security reasons.
If a non existent ID is entered, random questions are given.
If the password reset would inform whether a user exists or not, you would be more vulnerable to attacks, as the attacker would actually know whether the given ID is legal.
Best regards
John erik Setsaas

Similar Messages

  • Entitiy Unique Pk Validation doesn't work.

    Hi everyone, I'm using JDev 10.1.2 (BC4J, Struts, UIX). I have the next issue:
    I have an UIX page to create a new entity.
    I added a unique pk validation to this entity and entered a custom message.
    I want the page to display the custom message when the Pk constraint is violated.
    Instead of that I get the next exception:
    oracle.jbo.TxnValException: JBO-27023: Fallo al validar todas las filas en una transacción.
         at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:3985)
         at oracle.adf.model.bc4j.DCJboDataControl.validate(DCJboDataControl.java:967)
         at oracle.adf.model.binding.DCBindingContainer.validateInputValues(DCBindingContainer.java:1683)
         at oracle.cabo.adf.rt.InitModelListener._doModelUpdate(InitModelListener.java:170)
         at oracle.cabo.adf.rt.InitModelListener.eventStarted(InitModelListener.java:57)
         at oracle.cabo.servlet.AbstractPageBroker._fireUIXRequestEvent(Unknown Source)
         at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
         at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle$NonRenderingPageBroker.handleRequest(StrutsUixLifecycle.java:337)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle._runUixController(StrutsUixLifecycle.java:215)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processUpdateModel(StrutsUixLifecycle.java:105)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:317)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:508)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:112)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.jbo.RowValException: JBO-27024: Fallo al validar una fila con la clave oracle.jbo.Key[null 180 ] del tipo ConstruccionApp.CasaViewCreator
         at oracle.jbo.server.EntityDefImpl.validate(EntityDefImpl.java:2065)
         at oracle.jbo.server.EntityImpl.validateEntity(EntityImpl.java:1347)
         at sorteotec.construccion.entity.CasaImpl.validateEntity(CasaImpl.java:1022)
         at oracle.jbo.server.EntityImpl.validate(EntityImpl.java:1478)
         at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:3965)
         at oracle.adf.model.bc4j.DCJboDataControl.validate(DCJboDataControl.java:967)
         at oracle.adf.model.binding.DCBindingContainer.validateInputValues(DCBindingContainer.java:1683)
         at oracle.cabo.adf.rt.InitModelListener._doModelUpdate(InitModelListener.java:170)
         at oracle.cabo.adf.rt.InitModelListener.eventStarted(InitModelListener.java:57)
         at oracle.cabo.servlet.AbstractPageBroker._fireUIXRequestEvent(Unknown Source)
         at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
         at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle$NonRenderingPageBroker.handleRequest(StrutsUixLifecycle.java:337)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle._runUixController(StrutsUixLifecycle.java:215)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processUpdateModel(StrutsUixLifecycle.java:105)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:317)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:508)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:112)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.jbo.AttrValException: JBO-27025: Fallo al validar el atributo Idciudad con el valor 7
         at oracle.jbo.AttrValException.<init>(AttrValException.java:62)
         at oracle.jbo.rules.RulesBeanUtils.validate(RulesBeanUtils.java:363)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1769)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1033)
         at sorteotec.construccion.entity.CasaImpl.setIdciudad(CasaImpl.java:877)
         at sorteotec.construccion.entity.CasaImpl.setAttrInvokeAccessor(CasaImpl.java:770)
         at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:949)
         at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:1269)
         at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:1174)
         at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1112)
         at oracle.jbo.server.ViewRowImpl.setAttrInvokeAccessor(ViewRowImpl.java:1087)
         at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:834)
         at oracle.adf.model.binding.DCDataControl.setAttributeInRow(DCDataControl.java:1745)
         at oracle.adf.model.bc4j.DCJboDataControl.setAttributeInRow(DCJboDataControl.java:1548)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.setAttributeInRow(JUCtrlValueBinding.java:615)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.setAttributeInRow(JUCtrlValueBinding.java:548)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setTargetAttrsFromLovRow(JUCtrlListBinding.java:1078)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.updateTargetFromSelectedValue(JUCtrlListBinding.java:1155)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setAttributeFromValueList(JUCtrlListBinding.java:1116)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setSelectedIndex(JUCtrlListBinding.java:531)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setInputValue(JUCtrlListBinding.java:1480)
         at oracle.cabo.adf.rt.InitModelListener._setInputValue(InitModelListener.java:241)
         at oracle.cabo.adf.rt.InitModelListener._doModelUpdate(InitModelListener.java:156)
         at oracle.cabo.adf.rt.InitModelListener.eventStarted(InitModelListener.java:57)
         at oracle.cabo.servlet.AbstractPageBroker._fireUIXRequestEvent(Unknown Source)
         at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
         at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle$NonRenderingPageBroker.handleRequest(StrutsUixLifecycle.java:337)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle._runUixController(StrutsUixLifecycle.java:215)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processUpdateModel(StrutsUixLifecycle.java:105)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:317)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:508)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:112)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.jbo.TooManyObjectsException: JBO-25013: Demasiados objetos coinciden con la clave primaria oracle.jbo.Key[180 7 ].
         at oracle.jbo.server.EntityDefImpl$2$JboUniqueKeyValidator.validateValue(EntityDefImpl.java:3133)
         at oracle.jbo.server.EntityDefImpl$2$JboUniqueKeyValidator.validate(EntityDefImpl.java:3070)
         at oracle.jbo.rules.RulesBeanUtils.validate(RulesBeanUtils.java:341)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1769)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1033)
         at sorteotec.construccion.entity.CasaImpl.setIdciudad(CasaImpl.java:877)
         at sorteotec.construccion.entity.CasaImpl.setAttrInvokeAccessor(CasaImpl.java:770)
         at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:949)
         at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:1269)
         at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:1174)
         at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1112)
         at oracle.jbo.server.ViewRowImpl.setAttrInvokeAccessor(ViewRowImpl.java:1087)
         at oracle.jbo.server.ViewRowImpl.setAttribute(ViewRowImpl.java:834)
         at oracle.adf.model.binding.DCDataControl.setAttributeInRow(DCDataControl.java:1745)
         at oracle.adf.model.bc4j.DCJboDataControl.setAttributeInRow(DCJboDataControl.java:1548)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.setAttributeInRow(JUCtrlValueBinding.java:615)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.setAttributeInRow(JUCtrlValueBinding.java:548)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setTargetAttrsFromLovRow(JUCtrlListBinding.java:1078)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.updateTargetFromSelectedValue(JUCtrlListBinding.java:1155)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setAttributeFromValueList(JUCtrlListBinding.java:1116)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setSelectedIndex(JUCtrlListBinding.java:531)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.setInputValue(JUCtrlListBinding.java:1480)
         at oracle.cabo.adf.rt.InitModelListener._setInputValue(InitModelListener.java:241)
         at oracle.cabo.adf.rt.InitModelListener._doModelUpdate(InitModelListener.java:156)
         at oracle.cabo.adf.rt.InitModelListener.eventStarted(InitModelListener.java:57)
         at oracle.cabo.servlet.AbstractPageBroker._fireUIXRequestEvent(Unknown Source)
         at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
         at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle$NonRenderingPageBroker.handleRequest(StrutsUixLifecycle.java:337)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle._runUixController(StrutsUixLifecycle.java:215)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processUpdateModel(StrutsUixLifecycle.java:105)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:317)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:508)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:112)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 1 ##
    oracle.jbo.AttrValException: JBO-27014: Se necesita el atributo Idciudad en ConstruccionApp.CasaViewCreator
         at oracle.jbo.AttrValException.<init>(AttrValException.java:113)
         at oracle.jbo.server.JboMandatoryAttributesValidator.validate(JboMandatoryAttributesValidator.java:101)
         at oracle.jbo.server.EntityDefImpl.validate(EntityDefImpl.java:2051)
         at oracle.jbo.server.EntityImpl.validateEntity(EntityImpl.java:1347)
         at sorteotec.construccion.entity.CasaImpl.validateEntity(CasaImpl.java:1022)
         at oracle.jbo.server.EntityImpl.validate(EntityImpl.java:1478)
         at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:3965)
         at oracle.adf.model.bc4j.DCJboDataControl.validate(DCJboDataControl.java:967)
         at oracle.adf.model.binding.DCBindingContainer.validateInputValues(DCBindingContainer.java:1683)
         at oracle.cabo.adf.rt.InitModelListener._doModelUpdate(InitModelListener.java:170)
         at oracle.cabo.adf.rt.InitModelListener.eventStarted(InitModelListener.java:57)
         at oracle.cabo.servlet.AbstractPageBroker._fireUIXRequestEvent(Unknown Source)
         at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
         at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle$NonRenderingPageBroker.handleRequest(StrutsUixLifecycle.java:337)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle._runUixController(StrutsUixLifecycle.java:215)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processUpdateModel(StrutsUixLifecycle.java:105)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:317)
         at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:508)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:112)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)In this stack trace I don't see the custom message, why? Just the TooManyObjectsException.
    If someone could help me I'd really appreciate it, thank you.

    I forgot this other notes about the entity and the issue:
    * The Pk of this entity is composed by two attributes.
    * When I test the application module to break the uniqueness of the entity I don't get the custom message either.
    So, is it that the Pk Validation works only for one-attribute Pks?

  • Unique item validation

    Good day apex user,
    how can I make an item unique in apex 4 and it when insert the same data on the field which already exist and error message should appear??
    regards,

    Dear Sake1,
    You have number of ways to check the unique values in ApEx.
    1. You can apply the function return validation [Which is readily available in ApEx]
    2. If you want to check on the fly you can use dynamic actions
    3. If you want to do on your own you can do it by using JScript and AJAX
    Lemme know if you have any queries
    Thanks and Regards
    Maheswara

  • What is the best way to do Unique Key validation?

    Hi All,
    I'll have to provide a user friendly message when users create a record using an existed key (Most of the keys are combination key).
    How to do it in a generic way?
    Thank you in advance.

    I have add this class:
    public class CustomMessageBundle extends ListResourceBundle {
         public CustomMessageBundle() {
              super();
         protected Object[][] getContents() {
              return sMessageStrings;
         private static final Object[][] sMessageStrings
              = new String[][] {
              {"SCH_PK","violate SCH_PK"} --------SCH_PK is a combination key created in DB
    In project properties->business components->options, added this class with its path to "Custom message bundles to use in this project"
    But when I craete a new row using existed key(XXX YYY), it still gives me this message:
    Too many objects match the primary key oracle.jbo.Key[XXX YYY].

  • Error in Duplicate record validation in EntityObject using unique key contraint

    I have implemented Unique key validation in Entity Object by creating Alternate key in Entity object.
    So the problem is that whenever the duplicate record is found,the duplicate record error is shown, but the page becomes blank, and no error is shown in the log.
    I wanted to know what may be the possible cause of it.
    I am using Jdev 11.1.2.4.

    After duplication, clear the PK item, then populate from the sequence in a PRE-INSERT block-level trigger.
    Francois

  • 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)

  • Groovy Expression get Values of Unique Key

    Hi all,
    I am trying to create a custom error message for a unique key validation. With other error messages that just evaluate one field I have been able to do things like:
    Value {0} already exists
    With the token for 0 being newValue. When I am validating a unique key when I pull newValue it gives me one of the fields it validates on, is there another expression to get all the values?
    Thanks!
    JDEV 11.1.2.2.0

    hi,
    you can directly use attrName to get the particular attrValue..
    like instead of using newValue using attr FirstName.
    if you want to customize the error message more then you can create entityImpl class and create a method that will return the custom error message i.e you have a method like getErrorMessage() then you can access it like
    adf.source.getErrorMessage().. but i think the first one will solve your problem....
    Regards,

  • Function that returns a valid object name

    Hello,
    I heard there was a new function that would return a unique unused valid
    object(table) name that could then be used to create an object
    by that name, but I can not seem to find it in the documentation references.
    What I want to do is to create tables, then drop them at a later date
    without having to check if that name has been used already
    or creating a sequence.
    Any ideas?

    You may be thinking of SYS_GUID which can be used to generate unique identifiers for objects, as in TYPEs. Not database objects like TABLEs. The SYS_GUID datatype is "the 32-character hexadecimal representation of the 16-byte RAW value of the global unique identifier". Consequently it is very likely to start with a digit and so is not valid as a table name.
    You could generate a valid random name using something like this: 'A'||to_char(sysdate, 'YYMMDDHH24MISS'). If you want to create more than one per second you'll have to create a function that increments some global counter to ensure uniqueness. However, DDL like creating or dropping tables is a performance killer and not really something you want to do on the fly.
    Cheers, APC

  • Handling EO validations

    Hi,
    I'm working on a ADF Swing application and have a basic question about EO validations.
    I created a "Unique Key Validator" and applied it to a attribute that is the Entity Primary Key.
    Then I created an ADF Swing Panel with some attributes, including the one that is the primary key. (I know that does not make any sense allow the user to type the PK value,
    but this is the requirement.)
    Running the application, if I type a value for this attribute, that already exists, when the jTextField loses focus I get a JDialog with
    a message like this: (oracle.jbo.AttrSetValException) JBO-demo.model.IcatbBancoFinanceiro.BnfId_Rule_1: ID already exists!!!
    It is ok, but I'd like to know how to avoid that this JDialog be exihibited and instead, show up my own JDialog.
    Is this possible?
    Regards,
    Luis

    Thank Shijesh Kumar,
    I tried with following implementation but I would like to know the best way.
    ******* Begin :P1_ABC_Create *************
    declare
    icount number;
    inum number;
    begin
    select count (TABLE_NAME.serial_number) into icount from TABLE_NAME
    where serial_number = :P1_ABC;
    if
    icount >0 then return 'Duplicate Number';
    elsif
    :P1_ABC is null then return 'Serial Number cannot be Null';
    end if;
    inum:= to_number(:P1_ABC);
    exception
    when others then return 'Must be numeric';
    end;
    ******* End :P1_ABC_Create *************
    ******* Begin :P1_ABC_UpDate *************
    declare
    icount number;
    inum number;
    begin
    select count (TABLE_NAME.serial_number) into icount from TABLE_NAME
    where serial_number = :P1_ABC
    and equipment_id <> :p1_equipment_id;
    if
    icount >0 then return 'Duplicate Number';
    elsif
    :P1_ABC is null then return 'Serial Number cannot be Null';
    end if;
    inum:= to_number(:P1_ABC);
    exception
    when others then return 'Must be numeric';
    end;
    ******* End :P1_ABC_UpDate *************

  • Attribute #MX_MSKEYVALUE_DN could not be found Self Service Password reset

    Hi,
    I use NetWeaver 7.02 and IDM 7.2
    I've just created the Self Service-Task Password Reset.
    If I call the page http://<host>:<port>/idm/pwdreset I get the following error message:
    Attribute #MX_MSKEYVALUE_DN could not be found
    DE: Attribut #MX_MSKEYVALUE_DN konnte nicht abgerufen werden
    The attribute MSKEYVALUE is available in my Identity Store.
    The Task for "Edit authentication questions" is available.

    Hi Chris,
    I use NetWeaver 7.00 SP14 and IDM 7.2 SPS 3 (tried IDM 7.1 before, but had same error) on Windows Server 2003 SP2 with an Oracle DB 10.2.0.1
    The IDM is working fine except the PwdReset Application. Maybe it has to do something with the Anonymous User?
    Executing SELECT * FROM MC_LANGUAGE_TRANSLATIONS WHERE LANGKEY = '#MX_MSKEYVALUE_DN'
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=AR
    LANGIDSTORE=1
    LANGVALUE=?????? ??????
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=BG
    LANGIDSTORE=1
    LANGVALUE=???????? ??
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=CA
    LANGIDSTORE=1
    LANGVALUE=Identificador unÌvoc
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=CS
    LANGIDSTORE=1
    LANGVALUE=JednoznacnÈ ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=DA
    LANGIDSTORE=1
    LANGVALUE=Entydig ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=DE
    LANGIDSTORE=1
    LANGVALUE=Eindeutige ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=EL
    LANGIDSTORE=1
    LANGVALUE=???ad??? ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=EN
    LANGIDSTORE=1
    LANGVALUE=Unique ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=ES
    LANGIDSTORE=1
    LANGVALUE=ID unÌvoco
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=FI
    LANGIDSTORE=1
    LANGVALUE=Yksiselitteinen tunnus
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=FR
    LANGIDSTORE=1
    LANGVALUE=ID unique
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=HE
    LANGIDSTORE=1
    LANGVALUE=????? ??????
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=HR
    LANGIDSTORE=1
    LANGVALUE=Jedinstveni ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=HU
    LANGIDSTORE=1
    LANGVALUE=EgyÈrtelmu ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=IT
    LANGIDSTORE=1
    LANGVALUE=ID univoco
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=JA
    LANGIDSTORE=1
    LANGVALUE=?? ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=KO
    LANGIDSTORE=1
    LANGVALUE=?? ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=MX
    LANGIDSTORE=1
    LANGVALUE=Unique ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=NL
    LANGIDSTORE=1
    LANGVALUE=Unique ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=NO
    LANGIDSTORE=1
    LANGVALUE=Entydig ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=PL
    LANGIDSTORE=1
    LANGVALUE=Jednoznaczny ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=PT
    LANGIDSTORE=1
    LANGVALUE=ID unÌvoco
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=RO
    LANGIDSTORE=1
    LANGVALUE=ID univoc
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=RU
    LANGIDSTORE=1
    LANGVALUE=??????????? ??.
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=SH
    LANGIDSTORE=1
    LANGVALUE=Jedinstveni ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=SK
    LANGIDSTORE=1
    LANGVALUE=JednoznacnÈ ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=SL
    LANGIDSTORE=1
    LANGVALUE=Enoznacen ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=SV
    LANGIDSTORE=1
    LANGVALUE=Entydig ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=TH
    LANGIDSTORE=1
    LANGVALUE=ID ?????????
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=TR
    LANGIDSTORE=1
    LANGVALUE=Benzersiz tanitici
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=UK
    LANGIDSTORE=1
    LANGVALUE=?????????? ?????????????
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=ZH_CN
    LANGIDSTORE=1
    LANGVALUE=????
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=ZH_HK
    LANGIDSTORE=1
    LANGVALUE=?? ID
    LANGKEY=#MX_MSKEYVALUE_DN
    LANGCODE=ZH_TW
    LANGIDSTORE=1
    LANGVALUE=?? ID
    Kind Regards,
    Tobias

  • Error when using PPR in the OA page developed.

    HI,
    We are encountering an error when using PPR for the custom OA page being developed. I am using JDeveloper version 9.0.3.5(Build 1437) and Oracle Applications version 11.5.10.CU2. The scenario we are using PPR and the steps to reproduce the issue is mentioned below,
    Scenario:
    1) PPR is enabled for a custom OA page that is developed.
    2) The PPR is being used to enable or disable a particular field based on the
    selection of a value in a poplist in the same OA Page.
    Error replication steps:
    1) The user enters a value in the primary mandatory field which has to have
    unique value.
    2) The user selects a value from the poplist of a field which has PPR associated.
    3) The user enters data in all other mandatory fields in the OA page except one
    and tries to save the form and is shown a error message saying that all
    mandatory fields are not entered(This is correct). Now the page gets
    automatically refreshed and so the entered values are wiped off.
    4) Now if the user again enters a value in the primary mandatory field (as in
    step1) and if that value happens to be already existing value and then select
    a value from the poplist which has PPR enabled then immediately the error
    "Please enter a unique value" is entered, though we did not save the record.
    The unique record validation would happen only at the time of saving the
    record as per out business logic.
    5) But if in Step 4 if i had entered a unique value again then the above said error
    does not happen. There are few more similar kind of issues happening in the
    same page because PPR is enabled.
    Please note that this issue happens only when the page is deployed in a oracle
    applications instance and not in JDeveloper.
    Would this issue because of some cacheing problem? If Yes then how do we resolve it? Or would it be some other problem caused by our internal coding.
    Any inputs for resolving this issue would be highly appreciated.
    Thanks, Raja.

    What works in Jdeveloper should work when deployed in iAS as well.
    And PPR is an old feature given quite enough time to mature, so before we suspect OA we should investigate the code. What I do not understand is how the page refreshes in Step 3 and why does the user have to re-enter the fields just because he missed entering one mandatory field the last time.
    Mandatory field validations are client validations set by making the fields 'Required'. You obviously have client validations turned off on your PPR, otherwise you would be stuck with a javascript popup on PPR. The only way you can get the "Please enter unique..." error on PPR is Server Validation. So where have you placed this validation? If it is not in the EO, is it in the AM? And are you unconditionally calling the AM validation method in your processFormRequest? The PPR will also go through processFormRequest so I hope the PPR event is in a different if-else block.

  • The UniquekeyValidator Rule is not working in the EO edit dialog.

    The UniquekeyValidator Rule is not working in the EO edit dialog. We have Jdeveloper9i V. 9.0.3.2. The unique flags are checked in the primary key attribute and the custom message is never showed.
    Is there a Known bug about that? if yes.. does exist any patch to fix that?
    Thank u

    Thank u for your answer.
    Yes, of course .. i�ve already apply the unique key validator for the entity.. so that custom error message is the error im trying to get in the application.
    Other issue is when im trying to edit that error message: when im going to edit the message the previous error im entered is not there. Is it normal?

  • How can I set a customized view in finder set as standard for ALL folders?

    As I have a large number of folders, I need a specific view in finder: symbol view, sort by program and name. I tried to use this settings as standard for ALL folders, but using the 'set as standard' button does only work for the folder I am in, but not for ALL folders. I even tried to use this settings on the hard disk level in finder, but what ever I tried, it never applies to all folders. The problem occurs on each of my devices and on Yosemite OS 10.10.1. as well as Mavericks 10.9.5. Any ideas on how I can make the 'standard' work on all folders?

    As Vinod says, unique key validator would be fine.
    However, In Gabriel's blog:
    Performing a unique key validation for an attribute that is declared to be unique in the database requires a round trip to the database. This is quite expensive and there is a fast and easy way to work around it.Is false on several fronts:
    1). it's not expensive - it's actually cheaper than the alternative
    2). Unique key validator can require many trips to the DB to validate - it must check all other rows in the EO to ensure there is no duplicate, and all of those rows must be fetched into the middle tier to do the validation: this is expensive.
    The "cheapest" way to do this: unique constraint in the DB
    John

  • Robot class is not working in the remote desktops.

    Hi All,
    Iam using windows o.s, I am trying to run the following sample code in the remote desktop (windows paltform), In my desktop its working fine, but I am not able to run this code in the remote desktops...
    Iam able to control the keyboad in the remote desktops, but am not able to contol the mouse.......
    import java.awt.AWTException;
    import java.awt.Robot;
    public class ClsOne {
         public static void main(String ar[]) throws AWTException{
              Robot r= new Robot();
              r.mouseMove(100, 100);
    }

    Thank u for your answer.
    Yes, of course .. i�ve already apply the unique key validator for the entity.. so that custom error message is the error im trying to get in the application.
    Other issue is when im trying to edit that error message: when im going to edit the message the previous error im entered is not there. Is it normal?

  • How to populate an EO Transient variable used in Conditional expression.

    Hi All
    I have a Unique Key Validator which has Conditional Execution in which I am checking for the value of transient variable and based on that value this validator is invoked.
    Problem is :- When this Conditional expression is processed, transient variable is not populated (code to populate it is written in getter method). As a result of which, I am not getting expected results.
    This is my conditional expression :- source.<Transient_variable> = <some value>
    I tried by replacing this expression as :- adf.object.getterMethod = <some value> , but that gave me the prototype not found error (method is present in EOImpl.java).
    How can I populate this transient variable before it is evaluated in conditional expression???
    Suggestions are welcomed!!!
    Thanks
    Nitin

    Just to explain
    Both adf.object.methodName and source.methodName are used to access EntityImpl methods. Difference is
    adf.object.methodName - used while defaulting the values of attributes
    source.methodName - used in validation expression and raising error messages/warning.
    Thanks
    Nitin

Maybe you are looking for

  • Converting Songs and Shuffle Memory

    Hey there. I purchased my iPod shuffle (1G) around two months ago and I think that Apple did everyone a favor by coming up with the iPod. It's an amazing piece of technology. I just have a few questions about the iPod options. I have alloted 129 MB f

  • How to authorize my macbook air

    Ive looked at the other questions related to the same thing, i know i need the menu bar and i need to go to store but how do i get my menu bar to appear with the latest version of iTunes. i tried pressing the alt key or control and neither worked. pl

  • Redistributing the Flex 2 SDK?

    Hello, Let say my application uses the Flex 2 SDK to generate a Flash application. May I freely redistribute the Flex 2 SDK when I distribute my application to my clients or should I instruct them to download it from the adobe website instead? I read

  • IPhoto6  STOP OPENING !

    I have an old copy of iphoto 6 on my mac but have now started to use Lightroom instead. The problem I have is that when I import from an SD card, I can't stop iPhoto from starting up ( annoyingly slowly ), and I can't find any menu to stop it doing s

  • Buying a new computer, what to get?

    (Warning: Long post ahead; I'm quite thorough =p ) I've been around town; Best Buy, Staples, C. City, Dell etc. looking for a new computer. My current computer is only 2 years old and it's already atrociously obsolete (only 448 megs RAM), and rather