Error in changing row attribute value

Hi,
I am using JDeveloper 11.1.1.4 and developing a project using ADF-BC.
In my application,I am displaying an adf table from DataControl->view object.
The view object is based on an entity object which has composite primary key [Ex: Name and Rank]
I have an requirement to swap selected row and its previous row's rank values on click of a button.
I have written following code to achieve this.
public void swapRows(ActionEvent actionEvent) {
ViewObject rscMapVo = getRscMapViewObj();
Row currRow = rscMapVo.getCurrentRow(); //------------->Current Row
int currRowIndex = rscMapVo.getRangeIndexOf(currRow);
Row prevRow = getRscMapVoIter().getRowSetIterator().getRowAtRangeIndex(currRowIndex - 1); // ------------> Previous Row
Long currRowRank = ((Number)currRow.getAttribute("Rank")).longValue();
Long prevRowRank = ((Number)prevRow.getAttribute("Rank")).longValue();
//Actual Swapping
prevRow.setAttribute("Rank", new Number(currRowRank));
currRow.setAttribute("Rank", new Number(prevRowRank));
adfFacesContext.addPartialTarget(tblRSCMap);
}//End of method
This is giving me the exception
1)Rank     Too many objects match the primary key oracle.jbo.Key[Group_1 7 ]. [Name is Group_1 and Rank is 7]
2)Rank     Too many objects match the primary key oracle.jbo.Key[Group_1 8 ] .[Name is Group_1 and Rank is 8]
If instead of actual rank values I update it to some random number it updates properly. i.e for example prevRow.setAttribute("Rank", new Number(900)); and currRow.setAttribute("Rank", new Number(800));
The exception occurs when I change one row value with a value that is already present in other row there by giving unique constraint problem.
How to overcome this problem??
Is there any other way of implemeting this solution.
I want the changed attribute values to commit to DB only after final commit but not immediately.
Please advice/suggest.
Thanks,
Praveen

Hi RajGopal,
Even in the model layer it gives the same error.
steps done
1.Create an attribute in entity and set its value
2.Override the method doDML in EntityImpl
protected void doDML(int operation, TransactionEvent e) {
try{     
if(this.getTestRank() != null){
this.setRank(this.getTestRank());
}else{
System.out.println("Test rank null");
super.doDML(operation, e);
}catch(Exception excep){
System.out.println("Eceptin in update");
excep.printStackTrace();
Exception
oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[Group_1 28 ].
     at oracle.jbo.server.EntityCache.throwTooManyObjectsException(EntityCache.java:588)
     at oracle.jbo.server.EntityCache.handleDuplicateKey(EntityCache.java:596)
     at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:990)
     at oracle.jbo.server.EntityCache.replaceForAltKey(EntityCache.java:1739)
     at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:3952)
Thanks,
Praveen

Similar Messages

  • Need Help ::  Current row attribute value returning null

      Hi Frds,
    I am facing the problem that
    Current row attribute value returning null............ even though value is there..... plz.. he
    This is the code in PFR
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("queryBtn")!= null)
        String  pPersonId = pageContext.getParameter("ctrlPersonId");
         String rowReference = pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
         OptionsVORowImpl curRow = (     OptionsVORowImpl) am.findRowByRef(rowReference);
        String dtlsItem =  (String)curRow.getFlexValue();   /*  this is returning null value */
    /*  here creating  the hashmap and calling the page with the hashmap*/
    Thanks & Regards,
    jaya
    Message was edited by: 9d452cf7-d17f-4d1e-8e0e-b22539ea8810

    Hi Jaya,
    You want to catch Flexfield values?
    Try below code for catch value.
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("queryBtn")!= null)
    OADescriptiveFlexBean dfb = (OADescriptiveFlexBean)webBean.findChildRecursive("flexDFF"); //get the DFF bean
    OAWebBean dffbean = (OAWebBean)dfb.findChildRecursive("flexDFF0"); //get the field that applies to the attribute1 column that is being rendered
    OAMessageStyledTextBean Stylebean = (OAMessageStyledTextBean)dffbean;
    String dtlsItem  = (String)Stylebean.getText(pageContext);
    /*  here creating  the hashmap and calling the page with the hashmap*/
    Thanks,
    Dilip

  • Change a attribute value with XSLT before importing an XML

    I need change the attribute value with XSLT before importing an XML
    <table class="x" style="width="50pt">...
    I have to divide by 200 the value of "width", and the result multiplied by 100:
    (50/200) * 100
    It's possible with a XLST?

    Hi,
    Yes you can do this via XSLT.
    You can try similar to the one below:
    <table>
       <xsl:attribute name="width">
         <xsl:value-of select="((./width) div 200)*(100)" />
       </xsl:attribute>
    </table>
    I have not tested yet... Try it....
    Green4ever
    (I am back after long time)....

  • In Hgrid one row attribute value color

    Hi,
    My requirement is, i have to show Hgrid one row attribute value in any color.
    As per my understand we can show only the whole column values not the particular field in Hgrid by using css style.
    Please advise me if it is achievable.
    Thanks in advance
    Jyostna

    If you are looking for a random field coloring (randomly any particular column for a row based on some logic), this should not be possible.
    Thanks /Santanu

  • Change an attribute value in the last level of a tree

    Hi,
    I'm using jdev 11.1.1.0.1
    I have a tree composed of 5 VO. Each VO represent a level of the tree. I made an "executeWithParam" in my VO level 1 to pass some parameters.
    I would like to make a "setAttribute" on my VO level 5. I'm working with a tree, so i can't do : "getMyVo.getCurrentRow.setAttribute..."
    How can i do?
    ideas :
    - Today, i use bind variable to pass parameters from first level VO to last level VO : can i put the bind variable value in an attribute value?
    - Is there a method to override in the viewRowImpl.java to catch the "setAttributeInternal" made by ADF? so i could change the value of this attribute
    - Is there a method to override in the viewImpl.java which can help me?
    I try a lot of think without success... hope someone can help me
    Thanks in advance
    Clément

    Hi Frank,
    Thanks for your help.
    My need is to initialize all the rows of my VO level 5. Not only the selected ones. But i keep your solution for later :)
    Today, that is what i'm doing :
    - First, i use "executeWithParam" to complete a bind parameter of the first VO.
        public void executeWithParamTreeNiv1() {
            VoLvl1ViewImpl view =
                (VoLvl1ViewImpl) getLvl1View ();
            VoSourceId rowSrc =
                (VoSourceIdRowImpl) getVoSourceIdView().getCurrentRow();
            if (rowSrc != null) {
                saisPrevTreeView.setFkId(rowSrc.getId());
        }- Then, i use the method "createViewLinkAccessorRS" of the viewImpl, to pass bindParmeters between VOs.
            protected ViewRowSetImpl createViewLinkAccessorRS(AssociationDefImpl assocDef, ViewObjectImpl accessorVO,
                                                          Row masterRow, Object[] values) {
            ViewRowSetImpl v = super.createViewLinkAccessorRS(assocDef, accessorVO, masterRow, values);
            Number fkId = (Number)((ViewRowImpl)masterRow).getViewObject().getNamedWhereClauseParam("FkId");
            accessorVO.setNamedWhereClauseParam("FkId", fkId );
            v.setNamedWhereClauseParam("FkId", fkId );- Finally, i use the method "isAttributeUpdateable" of my VO level 5, to get the bind parameter and make a setAttribute.
        @Override
        public boolean isAttributeUpdateable(int i) {
            Number fkId= (Number)this.getViewObject().getNamedWhereClauseParam("FkId");
            if (fkId!= null) {
                this.setFkId(fkId);
        }What do you think about this method?
    Thanks
    Clément

  • Error:' ' cannot appear in attribute value error while deploying ESB

    Hi,
    I am facing issue while deploying ESB using script.Below is the error which I see in while running script.
    [deployESBProjects] Deployment Attempt Response :
    [deployESBProjects] <deploymentSummary>
    [deployESBProjects] <message>Entity Deployment Failed</message>
    [deployESBProjects] <errors>
    [deployESBProjects] <error code="1000" severity="5">
    [deployESBProjects] <description>Error:'&lt;' cannot appear in attribute value.. Please see the DT Server log for details</description>
    [deployESBProjects] <fix>Contact Oracle Support</fix>
    [deployESBProjects] </error>
    [deployESBProjects] </errors>
    [deployESBProjects] </deploymentSummary>
    [deployESBProjects] Deployment Failed ...Unhandled Exception
    [deployESBProjects] java.lang.Exception: Deployment attempt failed, please review deployment attempt response above
    [deployESBProjects] at oracle.tip.esb.client.anttasks.DeploymentHelper.deploy(DeploymentHelper.java:112)
    [deployESBProjects] at oracle.tip.esb.client.anttasks.DeploymentHelper.deploy(DeploymentHelper.java:159)
    [deployESBProjects] at oracle.tip.esb.client.anttasks.ESBProjectTask.deploy(ESBProjectTask.java:107)
    [deployESBProjects] at oracle.tip.esb.client.anttasks.DeployESBProjectsTask.execute(DeployESBProjectsTask.java:103)
    [deployESBProjects] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [deployESBProjects] at org.apache.tools.ant.Task.perform(Task.java:364)
    [deployESBProjects] at org.apache.tools.ant.Target.execute(Target.java:341)
    [deployESBProjects] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [deployESBProjects] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [deployESBProjects] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [deployESBProjects] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [deployESBProjects] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [deployESBProjects] at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [deployESBProjects] at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [deployESBProjects] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    [deployESBProjects] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    In ESB DT logs I see
    <MSG_TEXT>deployment failed with error </MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[oracle.xml.parser.v2.XMLParseException: '<' cannot appear in attribute value.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.XMLReader.scanNameChars(XMLReader.java:1151)
         at oracle.xml.parser.v2.XMLReader.scanQName(XMLReader.java:1928)
         at oracle.xml.parser.v2.NonValidatingParser.parseAttr(NonValidatingParser.java:1497)
         at oracle.xml.parser.v2.NonValidatingParser.parseAttributes(NonValidatingParser.java:1447)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1286)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:291)
         at oracle.tip.esb.configuration.deployment.DeploymentXMLUtil.parseServiceXML(DeploymentXMLUtil.java:48)
         at oracle.tip.esb.configuration.deployment.JDevDeploymentManager.sortEntityXML(JDevDeploymentManager.java:314)
         at oracle.tip.esb.configuration.deployment.JDevDeploymentManager.deploy(JDevDeploymentManager.java:175)
         at oracle.tip.esb.configuration.deployment.DeploymentServlet.doPost(DeploymentServlet.java:120)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    and one more issue as well
    <MSG_TEXT>Could not patch the details of the instance '514FC70036EF11DE8F194DE6D3B1CD10' to the relationship xml</MSG_TEXT>
        <SUPPL_DETAIL><![CDATA[oracle.tip.esb.monitor.MonitorException: Unable to build the instance relationship, as the required metadata is not available
         at oracle.tip.esb.monitor.manager.database.MetadataProvider.getRelationshipXML(MetadataProvider.java:168)
         at oracle.tip.esb.monitor.manager.database.DBActivityMessageStore.getInstanceRelationship(DBActivityMessageStore.java:672)
         at oracle.tip.esb.console.XMLInstanceManagerImpl.getRelationship(XMLInstanceManagerImpl.java:116)
         at oracle.tip.esb.configuration.servlet.command.GetTrackingDetailsCommand.execute(GetTrackingDetailsCommand.java:84)
         at oracle.tip.esb.configuration.servlet.CommandServlet.doJob(CommandServlet.java:109)
         at oracle.tip.esb.configuration.servlet.CommandServlet.doPost(CommandServlet.java:76)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ]]></SUPPL_DETAIL>
    Please let me know if anyone faced such type of issue.Appriciate if somebody suggest me as this issue occured in PROD.
    Thanks
    Vinay
    Edited by: ZeroKool on May 3, 2009 10:17 PM

    Andre,
    Its not with xml,as the same codebase and the script does work in other env(dev/tst/stage) except in prod.I simply can't figureout whts the issue.
    Even I see below error in esb-dt logs
    SUPPL_DETAIL><![CDATA[oracle.tip.esb.monitor.MonitorException: Unable to build the instance relationship, as the required metadata is not available
    The above error shows in esb console as well in instances.This is a major concern.
    Thanks
    Vinay                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • .change IUCONFIG attribute value in an event-handler of IUICCON (move in)

    Hi there,
    I have been searching for over a week now both on SDN and using the debugger, hopefully this brings more luck.
    On the web-client there is this new contracts page with 3 tabs.
    On the first tab you can choose a product, select a contract and then click Configuration.
    There you can change parameters. (this is View IUCONFIG/ConfigTree) with contextnode ISUORDERITEMCONFIG.
    In this case it is not wanted that this configuration page needs to be opened.
    So I need to change the value of 1 of these attributes (always the same attribute) automatically when switching to the 2nd tab, or when clicking the save button on the last tab. Or any event on the 2nd or 3rd tab are okay. As long as they are sure to be executed in the process.
    I would prefer changing the attribute from within IUICCON/ProcessSaveButtonBar>EH_ONBT_SAVE_PROCESS
    or IUICCON/ProcessBar>EH_ONNAVTOACCOUNTDATA
    I just don't have a clue how to automatically set one value of these configuration attributes.
    Can anybody provide a solution or a workaround?
    Is there any way to change the parameters without ever going to the configuration page in the browser?
    Thanks in advance for your ideas
    Could this thread be moved to CRM webclient?

    Solved, the solution can be supplied in trade for the right amount of money
    (okay is was CRM_ISU_CONT_CHANGE_OW)

  • Runtime error to get the attribute value of an element

    mydoc.xml
    =========
    <?xml version = "1.0"?>
    <persons>
         <person name="Joe" age="22" />
    </persons>
    In mydox.xml, I want to get the attribute values of element person. Of course,
    in the actual XML file, it is more complicated.
    However, I get the following run-time error,
    Exception in thread "main" java.lang.NullPointerException
    at ParserTest.main(ParserTest2.java:18) on line element.hasAttribute("name")
    import java.io.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.transform.stream.*;
    import org.w3c.dom.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    public class ParserTest2
         public static void main(String[] args) throws ParserConfigurationException, SAXException
              String xmlFile = "mydoc.xml";
              doc = getDocumentFromFile(xmlFile);
              Element element = doc.getElementById("person");
              //Exception in thread "main" java.lang.NullPointerException
              if (element.hasAttribute("name"))
              {     System.out.println("attribute = " + element.getAttribute("name"));
         public static Document getDocumentFromFile(String xmlFile)
                   try
                        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                        DocumentBuilder builder = factory.newDocumentBuilder();
                        Document doc = builder.parse(new File(xmlFile));
                        return doc;
                   catch(IOException e)
                   {     e.printStackTrace();
                        return null;
                   catch(SAXException e)
                   {     e.printStackTrace();
                        return null;
                   catch(ParserConfigurationException e)
                   {     e.printStackTrace();
                        return null;
         private static Document doc;
    any ideas? Thanks!!

    [url http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NullPointerException.html]java.lang.NullPointerException
    Thrown when an application attempts to use null in a case where an object is required. These include:
    Calling the instance method of a null object.
    Accessing or modifying the field of a null object.
    Taking the length of null as if it were an array.
    Accessing or modifying the slots of null as if it were an array.
    Throwing null as if it were a Throwable value.
    You know what line it happens on, so you know which of these cases applies. So you know that variable "element" is null at that point. How could it come to be null? You assign to it only once, two lines above. How could that assignment be null? Check the documentation for [url http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html#getElementById(java.lang.String)]org.w3c.dom.Document.getElementById().
    Repeat every time you get one of those exceptions.

  • Changing Element Attribute Values

    I spent far to long trying to figure out how to change an element attribute value without the FDK's SetAttributes function, so I thought I'd spare someone else the time.
    Basically, you still get the attributes using the GetAttributes() function, but now you just set the beg.child.Attributes property to the updated attribute value.
    //starting with a selected element
    elemSelect=app.ActiveDoc.ElementSelection
    //get the current attributes
    var childattributes =elemSelect.beg.child.GetAttributes()
    //find the attribute and value you want to change, and change it to a new value.
    childattributes[0].values[0] = "New_Value"
    //now assign the edited attributes to the selected element.
    elemSelect.beg.child.Attributes=childattributes
    Depending on how you selected the element, I assume you could do the above with beg.parent as well, but it wasn't something I needed to consider.
    ~Christen

    Thanks for this--you've likely saved me a headache.
    While I hadn't hit this yet, it does apply to several of the projects on my to-do list. Based on the info in the OMV, I would have expected to be able to simply use a statement like myElement.Attributes[i].value[i] = "New_Value" which, as I'm sure you discovered, has no apparent effect at all.
    The other thing I noticed in my quick testing is that defining your attributes variable by using the method (x = myElement.GetAttributes()) or by referenceing the Attributes property (x = myElement.Attributes) seem to be functionally equivalent.

  • BAPI_CUSTOMERQUOTATION_CHANGE - error while changing a condition value

    Hallo Gurus,
    I am trying to use tshi BAPI BAPI_CUSTOMERQUOTATION_CHANGE to change a condition value of a condition record of a quotation.
    Every time I execute the BAPI, instead of the condition tyoe being changed, a new record is added to the list of conditions!
    Can someone please help!
    Thsi is my piece of code::
    itab_BAPISDH1X-UPDATEFLAG = 'U'.
    append itab_BAPISDH1X.
    itab_BAPICOND-ITM_NUMBER = '10'.
    itab_BAPICOND-COND_ST_NO = '31'.
    itab_BAPICOND-COND_COUNT = '00'.
    itab_BAPICOND-COND_TYPE = 'ZST3'.
    itab_BAPICOND-COND_VALUE = '15.00'.
    itab_BAPICOND-COND_UPDAT = 'X'.
    append itab_BAPICOND.
    itab_BAPICONDX-ITM_NUMBER = '10'.
    itab_BAPICOND-COND_ST_NO = '31'.
    itab_BAPICOND-COND_COUNT = '00'.
    itab_BAPICONDX-COND_TYPE = 'ZST3'.
    itab_BAPICONDX-UPDATEFLAG = 'X'.
    itab_BAPICONDX-COND_VALUE = 'X'.
    append itab_BAPICONDX.
    CALL FUNCTION 'BAPI_CUSTOMERQUOTATION_CHANGE'
      EXPORTING
        salesdocument                = p_vbeln
      QUOTATION_HEADER_IN          =
        quotation_header_inx         = itab_BAPISDH1X
      tables
        return                       = itab_BAPIRET2
       CONDITIONS_IN                =  itab_BAPICOND
       CONDITIONS_INX               =  itab_BAPICONDX
    Thanks!
    Mukta

    Hmm...
    Change the following....and check..
    itab_BAPICONDX-ITM_NUMBER = '10'.
    itab_BAPICOND-COND_ST_NO = '31'.
    itab_BAPICOND-COND_COUNT = '00'.
    itab_BAPICONDX-COND_TYPE = 'ZST3'.
    itab_BAPICONDX-UPDATEFLAG = 'X'.
    itab_BAPICONDX-COND_VALUE = 'X'.
    append itab_BAPICONDX.
    "change the above to.....
    ab_BAPICONDX-COND_TYPE = 'X'.
    append itab_BAPICONDX.
    The BAPICONDX.. should contain only X.. in the fields which you want to update.. try this change..and let us know if it works.
    Also have a look at the FUNCTION MODULE DOCUMENTATION for this bapi in SM37.
    Cheers...

  • Error in ScrollHandler row counter values

    HI all,
    I am running JDeveloper 9.0.3(.10.35), and in running a small application I get an incorrect start number in the jbo.DataScroller widget. I have set the rangeSize to 10, and only have 4 rows, but the scroller says "-5-4 of 4".
    It works correctly if I set the rangeSize to 3. If I set the RangeSize to 4, I get 0-4 of 4, and if I set it to 5, I get -1-4-4. It seems it relates the number to the number of the rangeSize, but this number should NEVER be <=0.
    Thoughs anyone? Is posting this here enough to notify of a bug?
    regards
    Brigette

    Hi RajGopal,
    Even in the model layer it gives the same error.
    steps done
    1.Create an attribute in entity and set its value
    2.Override the method doDML in EntityImpl
    protected void doDML(int operation, TransactionEvent e) {
    try{     
    if(this.getTestRank() != null){
    this.setRank(this.getTestRank());
    }else{
    System.out.println("Test rank null");
    super.doDML(operation, e);
    }catch(Exception excep){
    System.out.println("Eceptin in update");
    excep.printStackTrace();
    Exception
    oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[Group_1 28 ].
         at oracle.jbo.server.EntityCache.throwTooManyObjectsException(EntityCache.java:588)
         at oracle.jbo.server.EntityCache.handleDuplicateKey(EntityCache.java:596)
         at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:990)
         at oracle.jbo.server.EntityCache.replaceForAltKey(EntityCache.java:1739)
         at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:3952)
    Thanks,
    Praveen

  • Comparing row attribute values

    I need to compare the value of of column to another in a row value in my JSP page in order to display condition text. How can this be done?
    For instance:
    <c:forEach var="Row" items="${bindings.OrdersView.rangeSet}">
    if (OrdersView.qty1 == OrdersView.qty2)
    else

    repost

  • Tricky! Change of navi-attribute values in ABAP and use in selections

    Hi gurus,
    now I have a teaser that really keeps me busy, and which might be interesting for some of you:
    we use several statuses in our <u>Demand Planning in SCM 5.0</u>, some of which can be switched by using a user-function macro which just basically is a ABAP function module that <u>changes navigation attribute values directly on the database</u>, meaning in the master data tables of the respective characteristic.
    Now, the code works, the values are changed accordingly, leaving the data set in object status "active" - <b>BUT</b>:
    <i>when we call a selection, it still shows the old values, even after activating master data or running the attribute change run!</i>
    This is not what we expected. Our wish was, that once the table was updated with the correct field values, we would also see them in our selections.
    <u>Details:</u>
    we have two statuses as navi-attributes to an article:
    <i>DP:</i> YES/NO, and
    <i>oDP:</i> YES/NO
    Combinations originally are: <i>DP</i> YES/<i>oDP</i> NO
    After the status change macro, the table shows the following, as expected:
    <i>DP</i> NO/<i>oDP</i> YES
    As we have two selections, one on DP status "YES", the other one on oDP status "YES", we would like to see the article vanish in the first selection and show up in the other one...
    Does anybody have an idea what is wrong and what we can do to have to proper navi-attribute values from the master data table in the selection? Does the selection not read from the database but from a buffer?
    Looking forward to your answers,
    Klaus

    Hi Fabrice,
    yes indeed, I did check the object version, and it is A.
    Problem is, the function module changes the data record which is "A" anyway. So the changed data record is active - however, I just had a look at the SID master data table, and it looks that direct changes to the P-table do not affect the X-table where the SIDs are stored. So I guess I will also have to update the X-table with the correct SID-values.
    If this works, I let you know. We will be using this change by ABAP quite often, it is rather useful.
    Regards and thanks for your prompt reply,
    Klaus

  • Getting the attribute value from a table from page def using el expression.

    Hi,
    Am using Jdeveloper 11.1.2.0.0 and have a requirement as follows for which a sample is been created. Requirement is as follows..
    1. Have a Taskflow that has a readonly table Employee.
    2. On clicking of a button called "route" checks if the selected row , Manager id attribute value = 200 then navigate to first page else if manager id attribute value is 200 then navigate to second page.
    Through the page def , if it has form , then we can access the attributes like #{data.view_FirstPageDef.ManagerId} . In case of acquiring the same attribute value from table using page def ? is what am unable to get..
    Have achieved the routing concept using the Router activity on Taskflow. But am unable to get the selected row attribute value of a table from the employee page def.. Can someone suggest on the same...
    Thanks and Regards,
    Vinitha G

    On the router, right click its icon in the task flow and create a page definition. Then in the page def file, add an iterator based on the same View Object from the table in the first page, then add a value attribute mapped to managerId in the View Object iterator. Finally in the router you can write EL expressions along the lines of #{bindings.ManagerId.inputValue = 200} or #{bindings.ManagerId.inputValue != 200}.
    CM.

  • How to inherit attribute values in object tables?

    I am trying to implement object inheritance with oracle 10g express. What i have done so far is created some types and subtypes. And some tables based on those types and sub types. So far i have understood that the subtypes inherit the attributes and methods from its super types.
    But is there a way to inherit the attribute values from the object table of the super type to the object table of the sub type?
    For example: The object O1 , explicitly labeled with (sIPO1 , wIPO1) , also inherits the intended purpose (sIPT 1 wIPT 1) from T1 . Similarly, the object O3 inherits the intended purposes from T3 , O1 and T1 . Note, however, that O2 , which is not labeled, inherits the intended purpose from T2 , but not from O1 nor T1 , as the intended purposes are not inherited through the reference-of relation.
    _a visual of the above description [http://picasaweb.google.com/lh/photo/1YBAQbCMQMBmd8oyw9SyNw?feat=directlink]_
    How can the types and objects be labeled as mentioned above? And how can these labels be made inheritable by the subtypes and objects based on those subtypes?
    Possible Solution*
    Only way which i could think of is using relational tables, like this: type_label(type_name, label1, label2) and a similar table table_label(table_name, label1, label2) for labeling the object tables. Then refer to these labels through some java programming. Will this be a right approach. I doubt that this will defeat the very intentions of the object database. And i hope there is a straight solution in Object Relational methods instead of java programming.
    nested tables and vararrays... will using them help solving the above problem some how?

    From those examples i can see that although the nested tables will have the super type attributes and values with them, if i have to change those attribute values the values in the whole table gets changed.
    is it possible to change the super type attribute values which is corresponding to the nested table values alone and not disturb the over all table?

Maybe you are looking for

  • How to connect my imac to appletv

    I'm having trouble connecting my imac to my appletv thats on a LG smart tv. Can anyone explain? I've youtubed it, googled it nothings working.

  • Accessing components in a different state

    There's probably a more elegant way of doing this. Right now I'm setting certain components to be available in all states, but that means I need to make them visible or invisible depending on the state... which is a pain. How can I access a component

  • Tabular form with a metric/imperial selector

    Hi, Oracle 10g database and APEX 3.2. I have a tabular form based on a simple query (SELECT rock_type, depth FROM rock_samples) with an editable "depth" field. The user cannot add or remove records, but can make updates to that one field. MRU process

  • 2.1.3 does not support sample project files

    I just purchased Aperture 2.1.1, installed, and then updated the software to 2.1.3. I then imported the sample projects to play with before I start to mess with any of my photos. I will get an unsupported image format Red message when triing to view

  • CSS or HTML code to create resizable images to display in small view

    I am a book publisher and am publishing books to be read on Adobe Digital Editions. I'm looking for the CSS or HTML code to create resizable images that will display in "small view." Does anyone happen to know how to do this?