How to trigger the new numbering of the lines in a group?

Suppose we have an ORDER_DETAILS table with columns (ORDER_ID, LINE_NUMBER, DESCRIPTION).

We have these lines:

order_id, line_number, description

17: 1, "A".

17.2, 'G '.

17.3, 'R '.

17.4, "Q".

Next, it inserts a new line

17.2, 'K '.

How to trigger the renumbering?

This should be the result after renumbering.

17: 1, "A".

17.2, 'K '.

17.3, 'G '.

17.4, 'R '.

17.5, "Q".

Then we move the line 5 to line 2.

How to trigger the renumbering?

This should be the result after renumbering.

17: 1, "A".

17.2, "Q".

17.3, 'K '.

17.4, 'G '.

17.5, 'R '.

This question is related to another discussion:

https://forums.Oracle.com/thread/1088303

create the order_details table

(number of order_id,

number of line_number,

Description varchar2 (30)

)

rowdependencies;

Start

insert into values order_details (17, 1, 'A');

insert into values order_details (17.2, 'G');

insert into values order_details (17.3, 'R');

insert into values order_details (17.4, 'Q');

end;

Select * from order_details by line_number

ORDER_ID LINE_NUMBER DESCRIPTION
17 1 A
17 2 G
17 3 R
17 4 Q

create or replace renumber procedure (number p_order_id)

Start

Update order_details od

Set line_number = (select rn

from (select rowid, RID,)

/ * for autocommit APEX active, etc. * / row_number() on rn (order of line_number, ora_rowscn desc)

/ * for autocommit = OFF favorite above row_number() (line_number order, nulls first ora_rowscn) rn * /.

of order_details

where order_id = p_order_id

)

where rid = od.rowid

)

where order_id = p_order_id;

end;

Start

insert into values order_details (17.2, 'K');

RENUMBER (17);

end;

Select * from order_details by line_number

ORDER_ID LINE_NUMBER DESCRIPTION
17 1 A
17 2 K
17 3 G
17 4 R
17 5 Q

Start

Update order_details

Line_number = 2 set

where order_id = 17

and line_number = 5;

RENUMBER (17);

end;

Select * from order_details by line_number

ORDER_ID LINE_NUMBER DESCRIPTION
17 1 A
17 2 Q
17 3 K
17 4 G
17 5 R

Concerning

Etbin

Tags: Database

Similar Questions

  • How to trigger the dictation from the smart keyboard on the iPad pro.

    I use dictated on my iPhone and my iPad quite often.

    However on my new iPad Pro with the smart keyboard attached, I do not how to trigger the dictation from the keyboard.

    I don't see how to get the soft keyboard back to press the button of the microphone are there, such space suggested by some on this forum.

    This doesn't seem to work in the latest iOS Update 9.

    I would be fine with a hotkey, or have to invoke the keyboard of the shop, then press the button of the microphone, but I don't see how do either.

    When the Emoji button on the keyboard smart strike as the keyboard, the software keyboard emoji is displayed, the space but when I press the soft ABC capital but I cannot get to the regular keyboard with the microphone button.

    A possible alternative would be to use Siri to dictation trigger in recording a memo or another application, space but I didn't understand how to do this job either.

    Has anyone experience this problem and found a solution?

    Unfortunately I had to spend a good hour on the phone with technical support when they finally admit that it was an oversight by Apple.  I hope someone reads this post until they spend countless hours trying to understand something, but has no solution at the moment. Frustrated!

  • ODI: how to trigger the error return prior to loading in Essbase?

    Hi John... If you read my post, I want to say that you impress me! really, thank you for your blog.

    Today, my problem is:
    -J' received a poor quality of extract of ERP data file
    -J' saw the reference table (Source == > target)
    -> > How to trigger the error prior to loading in Essbase!

    My idea is this, (first of all, I don't know if it's a good thing, and also I have the problem to do in ODI!)
    -Step 1: make the JOIN between data.txt and cross-reference Table == > create a DATA_STEP1 table in the ODISTAGING schema (columns of DATA_STEP1 are adding data.txt columns than the table of cross references (... there more than 20 columns in my case))
    -Step 2: Control if there is no NULL value in the target column (NULL means that the data.txt file contains the value that are not defined in my Table of cross references) by using the filter (filter = Target_Account IS NULL or Target_Entity IS NULL or...)
    The result of this interface is sent to the queue of reject.txt - if reject.txt file is not empty, then a mail is sent to the administrator
    -Step 3: do the opposite: filter NOT (Target_Account IS NULL or Target_Entity IS NULL...) == > the result is sent in the DATA_STEP3 Table
    -Step 4: run correctly mapping: source: DATA_STEP3 (own and verified data!) with reference Tables and send data into Essbase - NORMALLY, it is not rejected record!

    My main problem is: what is the right IKM to send data in the DATA_STEP3 Table, which are the Oracle Table in my scheme of ODISTAGING or DATA_STEP1! I tone with Oracle IKM incremental update but I get error and in fact I don't need an update (which is a time trust), I just need an insert!
    "I'm just lookiing for a ' IKM SQL for Oracle...
    concerning
    Xavier

    Create a sequence in oracle, you use the sequence in the mapping of your target.

    < %="odiRef.getObjectName" ("l",="">","","< d="" ou="" w="">") %>.nextval"

    so, for example, it might be

    <%=odiRef.getObjectName("L","DATASEQUENCE","DATALOGICALSCHEMA","D")%>.nextval

    Make sure that you run the mapping target or intermediary.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to draw the line under STROKE and fill of an object in illustrator cc? Ideas: D...

    How to draw the line under STROKE and fill of an object in illustrator cc? Any ideas ...

    Aleksandar,

    If I (put) understand it, you will need to divide the object. You can:

    (1) select the object and Ctrl / Cmd + C + F, and then remove the filling of the copy and the blow of the original;

    Draw 2) and drag the new piece down between Division 1 objects) in the layers palette, or select 1 copy) and Ctrl / Cmd + C + F + X + F or similar.

  • How to choose the line PFI to use on the port of the 5761?

    I understand that the VIDEO that I use on my DAC 5761 allows me to access 8 PFI lines.  However, when I access my 5761 devices in the project window by clicking the "+" next to the name of the module, I see that 'PFI Input' and ' output PFI.  I tried to get this to send a signal in the past, but I have been unable to determine how to select the line PFI I want to use.   How can I select the PFI line?

    Any ideas?  I was able to get the my AWG PFI (5422) for work and it is amazing.  I want to order an attenuator digital step for a ground penetration radar that I develop.

    Your time and your help is very appreciated.

    PS: I have worked with this PXI system (chassis, embedded controller, FPGA digitizer 5761 and AWG) for 1 year and I am afraid that it is time to learn this one way or another.

    Good day!

    -Daniel

    I found the solution. In addistion to the node which is visible in my previous post, there must be a node to enable PFI write with an entry of decimal number indicating the line is activated. Then, there must be a node PFI active connector, set to true. Not sure if the node of the latter is really necessary, however. Otherwise above examples should work as is.

  • How to trigger the value change in the structure of the event

    HII everyone, like the title, how should I trigger the value change event to display a message... Here is my connection... I want to trigger structure of the event to bring up the subvi, when the flame and the led are TRUE State... I have using the node property, but still not able to run event structure... How should I connect? Thank you very much...

    There are several ways you can do. First of all, you need to configure your sub - vi while he does everything you want when you run (in the properties of vi, top most window for example) and to make sure that it closes completely when you're done (when you click on the 'OK' button, for example).

    Spend you need an asynchronous call to the subvi. There are several ways to do so. My favorite one below. You go in the palette under 'Application control' and select a static reference VI. I like this approach because it keeps track of the way subvi for you, as long as the subvi is in the same project. Then, drag the sub - vi on the empty square which will be changes to your sub - vi icon. Then, you connect to an invoke node in the same palette under and select run VI. "Wait, that 's" set to false and the main VI will continue to function after the start of the vi of Sub. Together "Auto Ref" is the best way to go. Otherwise, you will need to follow the sub - vi reference and shut up yourself when you are finished.

  • How to trigger the call by program key

    Hi guys,.

    How to raise the event to programmatically call key?

    Scenario:

    > Device is now enabled with the phone call screen. The user presses the number for example say "123".

    Now, is there a way by which we need programmatically call the event to press button 'call '.

    > If the problem mentioned above is not possible, is there a way to recover the value of number or current telephone channel that is currently active in the screen of the phone (in the example below the "123")

    PhoneArguments phArg = new PhoneArguments (PhoneArguments.ARG_CALL, "123");

    Invoke.InvokeApplication (Invoke.APP_TYPE_PHONE, phArg)

    Thank you

    You can use getForegroundProcessId() in the ApplicationManager class to determine the current foreground process.

    Click the star on the left to give glory to a post.

  • How to trigger the workflow of UCM criteria while pushing the Webcenter Imaging paper

    Hello

    (With the help of Webcenter 11.1.1.9.X)

    We work for installation of the Imaging Solution. I defined and activated a workflow of criteria to the AAU and able to trigger when I check in a document directly from the console of the Complutense University of MADRID. But this workflow does not occur when a document is pressed at the UCM Webcenter Imaging as part of the Imaging Solution.

    Is it possible to trigger workflow UCM criteria through validation of imaging profile somehow?

    As shown ( Doc ID 1286047.1), I realized that if we can fill metadata IdcService, flow of criteria can be triggered. But do not know how can I fill value to metadata IdcService in IPM for the document corresponding to a UCM.

    Any input would be greatly helpful.

    Note: according to the ( Doc ID 1253304.1), It is not possible to trigger the workflow of criteria if the document is pushed with the charger in batches. I am confused with these two Metalink. Please help.

    Thank you

    Abhishek K

    All notifications of OOTB in Content Server (workflow those subscriptions) will focus on your Content Server users. If your intention is to display an image from imagery (for example with additional annotation via the Viewer), this could be quite undesirable.

    Imaging, OOTB notifications are listed here: https://docs.oracle.com/cd/E23943_01/admin.1111/e12782/c02_security.htm#CDDGGHDI and it recommends BPEL.

  • How to trigger the function Listfind

    Hi all

    If the field is empty, this code sets the variable nxtstep depending on the day of the week, check if the form field "is not date" and works very well in this case.

    If the form field is not empty, then it assigns to the variable nxtstep as the date on which is selected what he does, however, he is not checking to see if it is a holiday. It should trigger the function listfind and check to see if that date is a holiday, but it is just to enter the date without going through this review.

    Why does this work? Thank you

    <!--> REQUEST UPDATE
    < cfif isDefined "(form. UPDATEADDBTN") >
    < cfif FORM. GTE ENTID 1 >
    < cfset isCOMPANYNull = iif (len (trim (form.COMPANY)) EQ 0, true, false) >
    < cfset isCOMMENTSNull = iif (len (trim (form.COMMENTS)) EQ 0, true, false) >

    <!--> SET DATE AS FORM FIELD

    < cfset nxtstep = trim (form. ABUNDANCE) >

    <!-SET DATE IF NO DATE ENTERED->
    < cfif not isDate (nxtstep) >

    < cfif DayOfWeek (Now ()) eq 2 >
    < cfset nxtstep = dateAdd ("d", now())) 2, >

    < cfelseif DayOfWeek (Now ()) eq 3 >
    < cfset nxtstep = dateAdd ("d", now())) 2, >

    < cfelseif DayOfWeek (Now ()) eq 4 >
    < cfset nxtstep = dateAdd ("d", now())) 2, >

    < cfelseif DayOfWeek (Now ()) eq 5 >
    < cfset nxtstep = dateAdd ("d", now())) 4, >

    < cfelseif DayOfWeek (Now ()) eq 6 >
    < cfset nxtstep = dateAdd ("d", now())) 3, >

    < cfelseif DayOfWeek (Now ()) eq 7 >
    < cfset nxtstep = dateAdd ("d", now())) 2, >

    < cfelseif DayOfWeek (Now ()) eq 1 >
    < cfset nxtstep = dateAdd ("d", 1, now())) >
    < / cfif >

    <! - IF a DATE IS ENTERED CHECK TO SEE IF it IS a holiday - >

    < cfelse >

    <!-CHECK TO SEE if the DATE ENTRIES IS one day public HOLIDAY AND ADD DAYS-->
    < cfif ListFind (ValueList (hols.holiday), nxtstep) >

    < cfif DayOfWeek (nxtstep) eq 2 >
    < cfset nxtstep = dateAdd ("d", 2, nxtstep) >
    < cfelseif DayOfWeek (nxtstep) eq 3 >
    < cfset nxtstep = dateAdd ("d", 5, nxtstep) >
    < cfelseif DayOfWeek (nxtstep) eq 4 >
    < cfset nxtstep = dateAdd ("d", 2, nxtstep) >
    < cfelseif DayOfWeek (nxtstep) eq 5 >
    < cfset nxtstep = dateAdd ("d", 4, nxtstep) >
    < cfelseif DayOfWeek (nxtstep) eq 6 >
    < cfset nxtstep = dateAdd ("d", 6, nxtstep) >
    < cfelseif DayOfWeek (nxtstep) eq 7 >
    < cfset nxtstep = dateAdd ("d", 2, nxtstep) >
    < cfelseif DayOfWeek (nxtstep) eq 1 >
    < cfset nxtstep = dateAdd ("d", 1, nxtstep) >
    < / cfif >


    < / cfif >


    < / cfif >

    You do several things that can contribute to the problem.  In your first block of code, you use dateadd to assign to a variable datetime nxtstep.  In the following code block, you check to see if this datetime variable appears in a list.

    A list is just a delimited string, looking for datetime variables is doomed to failure unless you convert these variables in a string.  You can use dateformat for that.  Choose the right format should also fix your another of your variables of datetime whose part of the time, while your list of holidays is probably not.

    I remember vaguely similar issues on your part.  You should re-read the answers you got.  You may be ignoring some of them.

  • How to set the line current

    Dear all,

    I have a panelFormLayout with some fields on this and there are other hidden required fields I want to put values in the button submit, I'm here links but I don't know how to set the current row programmatically.

    Thanks in advance.

    Hello

    You could do something like this:

    Binding DCIteratorBinding = ADFUtils.findIterator ("EmployeesView1Iterator");

    Line currentRow = binding.getCurrentRow ();

    currentRow.setAttribute (attrName, "attrValue");

    Concerning

    PS:

    public static DCIteratorBinding findIterator (String name) {}

    DCIteratorBinding iter =

    getDCBindingContainer () .findIteratorBinding (name);

    If (iter == null) {}

    throw new IteratorNotFound ("iterator '" + name + "' not found");

    }

    Return to iter;

    }

  • How to change the lines in the interactive report?

    I want to change the lines in interactive reports before and after filtration. I added "edit_link in SQL and the column in the region but settings I don't know how to load data into the page with form created for editing data in line.

    There are examples in the sample applications, but the steps are.

    Create a new page which, with the right ID available, select the database details and allow you to edit the details and save them in return. A positive result of the Save (or cancel) arange the page with a branch back to your interactive report.

    On your interactive report, for your chosen link column, set it to branch to the page you created above and set the item of page ID on the page to the value of the ID in your crrent folder.  Selection lists will help here.

    Now, by clicking on your link edit show open the new page and select the details of the database preparation n for any update, you choose to make and record.

    Stewart

  • How to change the line width of underline and color (on my MacBook or iPad)

    When you use my MacBook or iPad, how can I change the line width and color when you use the underline tool or the pencil tool?

    Hi Backpacker48,

    .. using the underline tool or the pencil tool

    I'm fairly certain that you may have about the comment tools.

    To highlight the tool, there is no option to change the line width (thickness).  But you can change the color and opacity.  In addition, you can change the style in the desktop application.

    For the Pencil tools or drawing freehand, you pouvez change the width of the line (thickness) in addition to the color and opacity.

    The key here is to change the properties of an existing comment, once it is added to a page.

    Acrobat Reader DC (desktop application) on your MacBook

    1. Right click on the brand of underscore or existing pencil.
    2. Select properties from the context menu.
    3. Select appearance (if not already displayed).
    4. Specify the value of a property (color, opacity, Style or thickness).

    Acrobat Reader for iOS (mobile application) on your iPad

    1. Tap the existing underlining or drawing freehand.
    2. Select a property (color, opacity, thickness) in the menu that appears.
    3. Specify the value of the property.

    Once you change a property (for example, thickness, color, opacity), the mobile app will remember the new value of type specific comment for next time.

    Please let us know if you have any additional questions.

  • How to limit the lines on the union of two sqls

    Hi all

    The sql below returns two lines when the column value 3 (VALUE2) has a value other than 0 in the second sql.

    I want that the result set to return the second row, when there is a match in the first row.

    Thanks for you help,
    Hozy

    ---------------------------

    with options like
    (
    Select the PROPERTY 'AUDIT_CREATE_ROLE', "CREATE ROLE" VALUE, VALUE2 0 in union double
    Select the PROPERTY 'AUDIT_DROP_ANY_ROLE', 'DROP ANY ROLE' VALUE, 0 VALUE2 to double union
    Select the PROPERTY 'AUDIT_EXECUTE_PROCEDURE', 'PROCEDURE' VALUE, VALUE2 0 in double union
    Select the PROPERTY 'AUDIT_SELECT_ANY_DICTIONARY', "SELECT ANY DICTIONARY" VALUE, 0 union double VALUE2
    Select the PROPERTY 'AUDIT_GRANT_ANY_OBJECT', 'GRANT ANY OBJECT' VALUE, 0 VALUE2 to double union
    Select the PROPERTY 'AUDIT_CREATE_LIBRARY', 'CREATE LIBRARY' VALUE, VALUE2 0 in union double
    Select ' AUDIT_AUD$ ' PROPERTY 'AUD$ ' VALEUR0, VALUE2 to double union
    Select the PROPERTY 'AUDIT_ALTER_ANY_TABLE', 'ALTER ANY TABLE' VALUE, 0 VALUE2 to double union
    Select the PROPERTY 'AUDIT_ALTER_USER', 'ALTER USER' VALUE, VALUE2 0 in union double
    Select the PROPERTY 'AUDIT_CREATE_USER', "CREATE USER" VALUE, VALUE2 0 in union double
    Select the PROPERTY 'AUDIT_CREATE_SESSION', "CREATE SESSION" VALUE, VALUE2 0 in double union
    Select the PROPERTY 'AUDIT_DROP_ANY_PROCEDURE', 'DROP ANY PROCEDURE' VALUE, 0 VALUE2 to double union
    Select the PROPERTY 'AUDIT_DROP_ANY_TABLE', 'DROP ANY TABLE' VALUE, 0 VALUE2 to double union
    Select the PROPERTY 'AUDIT_GRANT_ANY_PRIVILEGE', 'GRANT ANY PRIVILEGE' VALUE, 0 VALUE2 to double union
    Select the PROPERTY 'AUDIT_GRANT_ANY_LIBRARY', 'CREATE ANY LIBRARY' VALUE, 0 double VALUE2
    )

    Select the PROPERTY VALUE, value2
    one of the options
    Union
    SELECT "AUDIT_ | REPLACE (audit_option, ", '_') as a PROPERTY.
    audit_option as VALUE, COUNT (*) as VALUE2 - how can I get this information from County?
    OF dba_stmt_audit_opts
    WHERE UPPER (audit_option) IN ('EDIT ANY TABLE', 'ALTER USER', 'CREATE a ROLE', 'CREATE a USER', 'CREATE THE SESSION', "DROP ANY PROCEDURE', 'DROP no matter WHAT TABLE", 'GRANT NO PRIVILEGE', "DROP no matter WHAT ROLE", "PROCEDURE", "SELECT ANY DICTIONARY", "No matter WHAT PURPOSE of the GRANT", 'CREATE any WHAT LIBRARY', 'CREATE LIBRARY')
    AND the success = "BY ACCESS.
    AND failure = "BY ACCESS.
    AND user_name IS NULL
    AND proxy_name IS NULL
    Audit_option group

    Hozy says:
    This is what the original sql looks like and now I don't know how to insert it in your suggested sql.

    Where I put your original query in a subquery with an alias by dsao, just replace this application with your new query.

    Another thing - you use 'union '; I think this safely could be replaced by "union all", as it seems that the lines will not be duplicated between the two queries.

    with options as (select 'AUDIT_CREATE_ROLE' property, 'CREATE ROLE' value from dual union all
                     select 'AUDIT_DROP_ANY_ROLE' property, 'DROP ANY ROLE' value from dual union all
                     select 'AUDIT_EXECUTE_PROCEDURE' property, 'EXECUTE PROCEDURE' value from dual union all
                     select 'AUDIT_SELECT_ANY_DICTIONARY' property, 'SELECT ANY DICTIONARY' value from dual union all
                     select 'AUDIT_GRANT_ANY_OBJECT' property, 'GRANT ANY OBJECT' value from dual union all
                     select 'AUDIT_CREATE_LIBRARY' property, 'CREATE LIBRARY' value from dual union all
                     select 'AUDIT_AUD$' property, 'AUD$' value from dual union all
                     select 'AUDIT_ALTER_ANY_TABLE' property, 'ALTER ANY TABLE' value from dual union all
                     select 'AUDIT_ALTER_USER' property, 'ALTER USER' value from dual union all
                     select 'AUDIT_CREATE_USER' property, 'CREATE USER' value from dual union all
                     select 'AUDIT_CREATE_SESSION' property, 'CREATE SESSION' value from dual union all
                     select 'AUDIT_DROP_ANY_PROCEDURE' property, 'DROP ANY PROCEDURE' value from dual union all
                     select 'AUDIT_DROP_ANY_TABLE' property, 'DROP ANY TABLE' value from dual union all
                     select 'AUDIT_GRANT_ANY_PRIVILEGE' property, 'GRANT ANY PRIVILEGE' value from dual union all
                     select 'AUDIT_CREATE_ANY_LIBRARY' property, 'CREATE ANY LIBRARY' value from dual),
            dsao as (select 'AUDIT_'||replace(audit_option, ' ', '_') as property,
                            audit_option as value,
                            count(*) as value2
                     from   dba_stmt_audit_opts
                     WHERE  UPPER(audit_option) IN ('ALTER ANY TABLE',
                                                    'ALTER USER',
                                                    'CREATE ROLE',
                                                    'CREATE USER',
                                                    'CREATE SESSION',
                                                    'DROP ANY PROCEDURE',
                                                    'DROP ANY TABLE',
                                                    'GRANT ANY PRIVILEGE',
                                                    'DROP ANY ROLE',
                                                    'EXECUTE PROCEDURE',
                                                    'SELECT ANY DICTIONARY',
                                                    'GRANT ANY OBJECT',
                                                    'CREATE ANY LIBRARY',
                                                    'CREATE LIBRARY')
                     AND    success = 'BY ACCESS'
                     AND    failure = 'BY ACCESS'
                     AND    user_name IS NULL
                     AND    proxy_name IS NULL
                     GROUP BY audit_option
                     union all
                     select 'AUDIT_'|| replace(object_name,' ','_') as property,
                            object_name as value,
                            count(*) as value2
                     from   dba_obj_audit_opts
                     where  object_name='AUD$'
                     and    owner in ('SYSTEM','SYS')
                     and    object_type='TABLE'
                     and    upd='A/A'
                     and    del='A/A'
                     group by audit_option)
    select o.property, o.value, nvl(dsao.value2, 0) value2
    from   options o,
           dsao
    where  o.value = dsao.value (+)
    
  • How to follow the line with the vision of the webcam and move along in this

    Hello world

    I have a question that I can't really find a topic about it.

    Currently, I had made my rover robot wireless control using a 3-axis joystick and works perfectly.

    But I want to add some features to the vision on board the rover system.

    I'm doing the webcam to detect a black line on a white background, and then, he moves just independently along the the line black.

    The thing is that I only know abit about installation in a vision... So, if anyone here able to guide me on the way?

    I use filtering color or color matching or model of a match?

    How to make sure that the black line remains in the middle of the vision? (Eg. moving itself at the center of the line within his vision)

    How can I control the engines using the achievements of the vision of the foregoing?

    Hey,.

    Your questions:

    I use filtering color or color matching or model of a match?

    Pattern Matching or Color Pattern Matching would slow down.

    I would use a 1 d Simple edge detection that returns the coordinates and the edge angle.

    How to make sure that the black line remains in the middle of the vision? (Eg. moving itself at the center of the line within his vision)

    You must control your motors that for example the angle is 0 degrees or 90 degrees (depending on your coordinate system) all the time.

    How can I control the engines using the achievements of the vision of the foregoing?

    This robot manual should tell you how to control the motors.

    Hope this helps,

    Christian

  • How to disable the line for lines of saved selection.

    Hi Experts,

    JDEV 12.1.2.0

    I have a popup and below, I have a table. Initially, all lines are in createInsert mode.  How can I disable the selection of rows to only save of the lines. And activate the lines which are not saved.

    Thanks in advance.

    Roy

    As Cvele_new_account already mentioned, your use case is not clear. I guess you want to do something like https://blogs.oracle.com/adf/entry/highlighting_new_rows_in_adf but this is only a guess.

    Timo

Maybe you are looking for