How to make record dirty programmatically after query record from db

Hallo,
JDeveloper 10.1.3.2
I try to make record dirty after I query records.
In VORowImpl.java I overwrite the populate() method:
protected void populate(ResultSet resultSet) {
super.populate(resultSet);
setStatus("J");
If I query DB for the first time, everything is ok.
For the second time I get the errror:
500 Internal Server Error
oracle.jbo.TooManyObjectsException: JBO-25013: Te veel objecten komen overeen met de primaire sleutel oracle.jbo.Key[1 ].     
at oracle.jbo.server.EntityCache.add(EntityCache.java:555)
     at oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:1762)
     at oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:2151)
     at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1073)
     at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2946)
     at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2839)
     at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2252)
     at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2127)
     at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1501)
     at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)
     at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2818)
     at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2674)
     at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2634)
     at oracle.jbo.server.ViewRowSetIteratorImpl.getRowAtRangeIndex(ViewRowSetIteratorImpl.java:722)
     at oracle.jbo.server.ViewRowSetImpl.getRowAtRangeIndex(ViewRowSetImpl.java:3672)
     at oracle.jbo.server.ViewObjectImpl.getRowAtRangeIndex(ViewObjectImpl.java:6288)
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel._bringInToRange(FacesCtrlRangeBinding.java:541)
     at oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding$FacesModel.setRowIndex(FacesCtrlRangeBinding.java:504)
     at oracle.jheadstart.controller.jsf.bean.JhsCollectionModel.setRowIndex(JhsCollectionModel.java:361)
     at oracle.adf.view.faces.component.UIXCollection.setRowIndex(UIXCollection.java:379)
Thanks,
Anna
Edited by: adekkers on 11-nov-2010 16:13

I'll try to explain.
I have a db-view.
I have instead of triggers on this view.
The user queries my view. A set of records appears on screen (for example 15).
The user changes some attributes for 2 records.
Other records stay in retrieved state. Or he does not change any record at all
The user wants all 15 records to be committed in database. Even this records are not updated on screen.
There is logics in instead of triggers, that makes real table-updates.
I'm not a guru in jdeveloper.
I thougt it is possible make records dirty after retrieving from database. In that case the jdeveloper can use normal commit-button without extra coding from my side.
The problem: I can not put retrieved record in dirty status.
If I use populate method in VO I get the error when I query my view for the second time.
Dimitar, sorry.
I did not understand your explanation.
Can you please give some example.
Thanks,
Anna

Similar Messages

  • How to make text STAY up after removing mouse from button?

    Hello!
    I honestly hope that this thread title makes sense. Allow me to explain my predicament.
    Someone has created a map where there are little colored buttons over building locations. The buttons were made so that when you hover your cursor over them, they will bring up a little chat bubble (like the ones you see in comics) with the appropriate street address text. What I cannot figure out is how to, after removing the cursor from over a button, make the text bubble stay put so that those who see the map can highlight then copy and paste the street address from it.
    Is there any advice?

    It kinda depends on what version of actionscript you're using, but one that may work for AS2 and AS3 is to use setTimeout to call a function that does what your rollout code currently does... meaning in your rollout function you use: setTimeout(callFunction, x-seconds)... where callFunction is a function that contains what your rollout function did originally.

  • How to make outer join in Sub Query?

    Hi!
    I'm facing one problem. Can anyone tell me - how to make outer join in sub query?
    I'm pasting one sample code -
    select e.empno, e.ename,e.job,e.sal,d.deptno,d.dname
    from d_emp e, d_dept d
    where e.deptno(+) = (
                          case
                            when d_dept.deptno = 10
                              then
                                  select deptno
                                  from d_dept
                                  where dname = 'SALES'
                          else
                            d_dept.deptno
                          end
    SQL>
    ERROR at line 15:
    ORA-01799: a column may not be outer-joined to a subqueryHow to resolve this issue?
    Regards.

    And any luck with this?
    SQL> with emp as
      2  (select 100 empno, 'Abcd' ename, 1000 sal, 10 deptno from dual
      3  union all
      4  select 101 empno, 'RRR' ename, 2000 sal, 20 deptno from dual
      5  union all
      6  select 102 empno, 'KKK' ename, 3000 sal, 30 deptno from dual
      7  union all
      8  select 103 empno, 'PPP' ename, 4000 sal, 10 deptno from dual
      9  )
    10  ,dept as
    11  (select 10 deptno, 'FINANCE' dname from dual
    12  union all
    13  select 20 deptno, 'SALES' dname from dual
    14  union all
    15  select 30 deptno, 'IT' dname from dual
    16  union all
    17  select 40 deptno, 'HR' dname from dual
    18  )
    19  select e.empno, e.ename, e.sal, d.deptno, d.dname
    20  from emp e,
    21       (select decode(a.deptno, 10, b.deptno, a.deptno) deptno, decode(a.deptno, 10, b.dname, a.dname) dname
    22      from dept a, (select deptno, dname
    23                    from dept
    24                      where dname = 'SALES'
    25                     ) b
    26       ) d
    27  where e.deptno(+) = d.deptno
    28  /
         EMPNO ENAM        SAL     DEPTNO DNAME
           101 RRR        2000         20 SALES
           101 RRR        2000         20 SALES
           102 KKK        3000         30 IT
                                       40 HR
    SQL> Cheers
    Sarma.

  • How to make tomcat still running after reboot

    hi all,
    i want ask about how to make tomcat still running after our computer reboot.
    so our server still can serve the the request without we start manualy the tomcat.
    please replies
    thank's before

    *nix or win32 or other?                                                                                                                                                                                                                                           

  • How to make records  to the table TRFCQIN

    hi all,
    anyone can tell me
    how to make records  to the table TRFCQIN
    regards

    Hi Wanna,
                    Write a module pool program to enter record into table TRFCQIN.
    Take fields to which u want to make entries in module pool.
    Use insert command to append data in table TRFCQIN.
    Refer this code :
    CASE OK_CODE_101.
    WHEN 'SAV1'.
    TRFCQIN-QNAME = 'XYZ'.
    TRFCQIN-QCOUNT = "Screen field name at which user will enter value
    INSERT TRFCQIN.
    if sy-subrc <> 0.
    message e007.
    else.
    clear TRFCQIN.
    clear ok_code_101.
    endif.
    endcase.
    Reward points if helpful.
    Regards,
    Heamnt

  • How to make a category highlighted after it clicked

    Hi there! Just want to know how to make a category highlighted after user click on it, so he will able to track on which category he is currently on?
    I've already created 3 categories (links) through creating library elements, I already have the hover effect  I made through CSS external stylesheet, everything works, but the category is not highlighted when I browse within it.
    Here is my HTML code of these 3 links:
    <td bgcolor="#663300"><!-- #BeginLibraryItem "/Library/Top_links.lbi" -->
    <div align="right" class="link"><a href="index.html">Home</a>     <a href="Accessories.html">Accessories</a>    <a href="Contact Us.html">Contact Us</a>    </div>
    <!-- #EndLibraryItem --></td>
    And here is my CSS code for these links:
    .link, .link a:link, .link a:visited, .link a:active {
        font-family: "Times New Roman", Times, serif;
        font-size: 18px;
        font-weight: normal;
        color: #FFFF33;
        text-decoration: none;
        padding: 5px;
        #home: color:#00FFFF;
    .link a:hover {
        font-family: "Times New Roman", Times, serif;
        font-size: 18px;
        font-weight: normal;
        color:#FF0000;
        text-decoration: none;
    So how to make the active link highlighted when browsing within it??
    Thank you

    My pages are offline in developing stage, can't give you an URL.
    Here is my HTML code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>untitled</title>
    <link href="css.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    </style>
    </head>
    <body class="home">
    <table width="450" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
    <td bgcolor="#663709"><!-- #BeginLibraryItem "/Library/Top_links.lbi" -->
    <div align="right" class="link"><a class="home" href="index.html">Home</a>    <a href="Accessories.html">Accessories</a>    <a href="Contact Us.html">Contact Us</a>    </div>
    <!-- #EndLibraryItem --></td>
      </tr>
    And here is my CSS:
    body {
        background-image: none;
        background-color: #2d2625;
    body,td,th {
    .link, .link a:link, .link a:visited, .link a:active {
        font-family: "Times New Roman", Times, serif;
        font-size: 18px;
        font-weight: normal;
        color: #FFFF33;
        text-decoration: none;
        padding: 5px;
        #home: color:#00FFFF;
    .link a:hover {
        font-family: "Times New Roman", Times, serif;
        font-size: 18px;
        font-weight: normal;
        color:#FF0000;
        text-decoration: none;
    What should I modify?

  • How to make an before and after effects?

    So, I want to make a video that show the audience this is before and after the edit. And i want to make it look like this YouTube Rewind 2014: Behind the Scenes - YouTube
    How to make it?
    Thanks:)

    Really? You take footage of you shooting the video with another camera then you edit it together with shots of the finished project. If you want to show before and after shots of an effect you just put the original footage on top and animate a mask or opacity to reveal the rendered effect below.
    If you can't figure out how to make a before and after then you will have a very difficult time doing any effects using AE because there is absolutely nothing in this before and after but very basic editing and masking.

  • HT1495 how to restore iphon-without backup, after it synchronization from ipod

    how to restore iphon-without backup, after it synchronization from ipod

    Thanks Eric,
    After inserting the original DVD I installed OSX and after reboot I had a working computer.
    There was no opportunity to restore the TM backup. however when I rebooted from the
    DVD again I saw that possibility from a menu of the install utility.
    I ran through the restore over night (8 hours) and when I woke up, I had my computer back!
    Thanks for helping me out.
    Cheers, Rob

  • How to update Records from Internal table to u2018Zu2019 table?

    Hi Friends,
    How to update Records from Internal table to u2018Zu2019 table.
    I have records in Internal table , that records want to update on u2018Zmarau2019 Table.
    ( my internal table & u2018 Zu2019 table structures are same.)
    Thanking you.
    Regards,
    Subash

    Hi,
    loop at internal table.
    modify <Z- table > from values < internal table Workarea>.
    if sy-subrc = 0.
      COMMIT work.
    else.
      ROLLBACK waork.
    endif.
    endloop.
    or
    UPDATE <Z- table > from table < internal table Workarea>.
    if sy-subrc = 0.
      COMMIT work.
    else.
      ROLLBACK waork.
    endif.
    Prabhudas

  • How to make compressor give me 1280x720   h.264 from my 1440 x 1080 sequenc

    can someone please tell me how to make compressor give me 1280x720 h.264 from my 1440 x 1080 sequence, with compressor I load up my high defition h.264 but i cant see where i can chage the size, I can tab on the preset and change max bit rates and other stuff but not to make it 1280 x 720,
    Thanks for the help,
    Daz

    In Compressor 3's Settings window:
    Apple > Apple Devices > H.264 for Apple TV
    this is one of the presets that is supplied as standard and it is pre-configured for H.264 1280x720 output
    if you're building your preset from scratch then you can set the output frame size in the Dimensions area of the Geometry pane

  • How can i record from radio to mp3 format?

    How can i record from radio to mp3 format?
    because i want to record a radio program, and save it, how can i do it?

    If you can, the instructions will be in the user manual - iPod Manuals

  • Record dirty immediately after query

    Records are dirty immediately after quering/retrieved. I find it is only a certain type of record. I am very new to Jdeveloper. How do I go about researching what may be causing this? any suggestons?

    Hi,
    the transaction is dirty only if you set values to attributes of a row. So if you just follow the wizards to create the AM then this should not be the case. There must be more in what you do. You can run the tester first to see if this is originated from the business service. If it is then think about what you did beyond following the wizard steps
    Frank

  • SAP Query: How to filter records from SAP Query output before display

    Hi Friends,
      Can I delete records from an SAP query basic list before it is displayed?
    For example I want to delte all the orders whose system status is "RELEASED" before the basic list of that SAP query is displayed.
    I have gone through SAP help and found out that we can write some code in <b>END code</b> section which will execute before the basic list of the query is displayed. But I could not figure out how the code this...following is an excerpt form SAP help.
    <b>"The END-OF-SELECTION code consists of two parts (Before list output and After list output). The first part is processed before the list is output and the second part afterwards."</b>
    Can anybody help me?
    Regards,
    Bharat.
    Message was edited by:
            Bharat Reddy V

    Try this simple procedure. <b>Hope</b> this should work for you.
    You do the slection of the status in the List-Processing. say your final field of status flag is GF_STATUS.
    Immediatly after that use this within the List-Processing.
    CHECK GF_STATUS EQ '<RELEASED STATUS>'
    How it works:
    SELECT  <>       "<-------Query processing(system code).
    *< Your code put in the List processing
    CHECK GF_STATUS EQ '<RELEASED STATUS>'   "< --only released records passed.
    *>
    ENDSELECT      "<-----Query endselect(system code).
    Please let me know the result.
    Regards,
    A.Singh
    Message was edited by:
            Amarjit Singh

  • How to display records from a query into non-database field

    Hi
    I a have a problem:
    I have a query with many tables and 6 column(select a,b,c,d,e,f from x,y,z,t,s,g where conditions) and I use 3 parameters.
    I create 3 parameters :datai,:dataf and :partener and a button with a trigger when button is pressed.
    Then a create a manualy block with six field non-database a1,b1,c1,d1,e1,f1.
    Now I want to display all the records from my query into a1,b1,c1,d1,e1,f1 where a1=a,b1=b,etc. and all the records (if I have 20 record, it will display 20 records in non-database field) when I press the button.
    How I made:
    I create a cursor with query then
    begin open cursor
    loop
    fetch cursor into :a1,:b1,:c1,:d1,:e1,:f1;
    end loop;
    close cursor;
    end;
    It display one record in a1,b1,c1 only and it have to display 100 records and are date for all the fields.
    Can somebody help me in this problem?
    Thanks.
    Edited by: 928437 on Oct 1, 2012 2:55 AM

    Creating a view, and querying that into a database block is an excellent solution.
    To use the non-database block:
    You're missing the all-important Next_Record; command.
    <pre> Begin
    Go_block('X'); -- block X is the non-database block
    Clear_Block(No_Validate);
    open cursor X1;
    loop
    If :System.Record_status != 'NEW' then
    Next_Record;
    End if;
    fetch X1 into :a1,:b1,:c1,:d1,:e1,:f1;
    Exit when X1%NOTFOUND;
    end loop;
    close X1;
    end;</pre>

  • How to make Multiple parameters to sql query string seperated by ,(comma) ..

    Hi,
    I would like to konw how I can make multiple parameters to sql query string seperated by ,(comma)  ..
    For example, this parameters can be printed like 'abc,dde,ggf,eeg' ,once I use  "join(Parameters!rpCode.Value,",")" with report builder , 
    By the way, when I test this multiple parameters by Query Designer of report builder there was no problem,.(using Define query parameters, I put abc,dde,ggf,eeg)
    however, when I run this report , it won't be executing ,  with (rsErrorExecutingCommand)
    Plz, help me....

    If its sql query then it should like this
    Select t.*
    from table t
    inner join dbo.ParseValues(@Parameters,',')f
    on f.val = t.ID
    ParseValues can be found him
    http://visakhm.blogspot.in/2010/02/parsing-delimited-string.html
    or easier way is
    Select t.*
    from table t
    where ',' + @Parameters + ',' LIKE '%,' + CAST(t.ID AS varchar(10)) + ',%'
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

Maybe you are looking for

  • Display data vertically using sap script

    Hi Developers, Is there any way to display data vertically in a form using sap script? thanx in advance, binu

  • Highlighting text in pages

    I used to have a "a" icon available to back highlight text.  Recently, it disappeared.  The only highlighting alternative I get is "none".  What can I do to fix this?

  • Self Check and Your self check printing process steps and program in SAP

    Hi  SAP-FICO's My client required  in SAP-ECC-6.0 1.Self Check printing for cash withdrawel  2. your self check for one Vendor or group of vendors  for getting DD from the Bank 3.How to issue  the  same check for more than one vendor   and get debite

  • Excise capturing during Tcode-MIGO

    Currently the Excise Invoice is captured through J1IEX for the entire quantity, the captured Excise invoice is then referred to in the MIGO screen while posting the GR. In the GR; the entire quantity received; is split into multiple batches by giving

  • Accessing PHP variables (especially _SESSION)

    Hi, since CaioToOn! suggested here that I should use $_SESSION and I need to do this anyway, I spent the last 1+ hours trying to figure out how to do that. Sadly, I could not really figure it out except that there seems to be an issue with the sessio