Line in the ADF Table color

Is it possible to alternate the color of the lines of the ADF table? Do I have to use a skin?

Code example would be much appreciated.

Thank you, Mitch

Read about the line of the bands here:
http://download.Oracle.com/docs/CD/E12839_01/apirefs.1111/e12419/tagdoc/af_table.html
Basically, you can use the rowBandingInterval attribute.

Tags: Java

Similar Questions

  • How to highlight the line of the ADF table based on the value of the column?

    Hi all

    I use jdev 10.1.3.4. I want to highlight a table row or a cell based on the value of the column.

    Lets say, I have a table emp with column empid, empname and sal. I want to emphasize the lines that have sal = 10000.

    How can I achieve this? Please help me with this.

    Thank you
    Abhijit

    Hello

    You want to highlight the lines? or set a different color for the lines? If it's the second, you can set the inline style based on the salary. (+ Edit: well, never mind, both are same :)) +)

    Something like

    
    

    If you want the entire line to be a different color, you have 2 options.

    1. define the same style inline for all columns in the table (good if you want to do only for a single table).
    2. create a style class and apply the styleclass based on the value of sal (preferably if you want the same behavior in all of your application).

    Arun-

    Published by: joel Ramamoorthy, October 23, 2009 16:56

  • problem in the form of master-detail when you use the ADF table for detail

    Hello

    jdev version - 11.1.2.1.0


    I create master shape detail using datacontrol drag as ADF master shape secondary Table.


    Now when I create a new line in the detail table using the key CreateInsert a new empty row created on top of the secondary table.

    and other show line that the previous record data based on the master.

    problem is I want to when I click on the createInsert button all the line of the secondary table must be empty and what line to fill two or three user then validate.



    Thanks in advance

    Hello

    If a secondary table has data, then createInsert adds to them. If you want to hide the existing lines, create a new instance of the View object and set the option "extract database" to "No. Rows. Use an af:switcher to change the specified table when the user clicks the createInsert button. There is some coding needed to have this use case in the ADF, but its essentially declarative. Bottom line, is that there is no option automated other than to create new lines in a separate page or dialog box if you are bothered by existing lines

    Frank

  • Obtaining error APP-FND-00874: Routine FDFBDF found no line in the FND_DESCRIPTIVE_FLEXS table

    I wrote a stored procedure in our custom schema.  I have granted rights of running APPS to it.   When put in a concurrent program I get this message and it will not even start running. I'm under the it the purchase of Super user


    APP-FND-00874: Routine FDFBDF found no line in the FND_DESCRIPTIVE_FLEXS table


    So I created 2 exactly stored procedures as below but different name.  I put one in our custom schema and the other in the scheme of the APPS and I still get the same error message.


    create or replace

    PROCEDURE TESTPROCEDURE1 (errbuf OUT VARCHAR2, OUT VARCHAR2 retcode) HAVE

    BEGIN

    NULL;

    END TESTPROCEDURE1;

    Was that there was a control on behalf of the simultaneous request character and, possibly, the short name.   It was not visible until I stuck in another application.

    Thank you for all your help.

  • How to add new features to the line in the nested table advace?

    Hello

    I want to create a new line in the nested table advance.

    Help, please.

    Thank you

    Hello

    Use the code below to add a line in the nested Table.

    If (PageContext.GetParameter ("addRows")! = null) {}

    OAAdvancedTableBean sectionsTable = (OAAdvancedTableBean) webBean.findChildRecursive ("AdvTblRN");

    OAInnerDataObjectEnumerator sectionsEnum = new OAInnerDataObjectEnumerator (pageContext, sectionsTable);

    {while (sectionsEnum.hasMoreElements ())}

    Set of rows sectionsRowSet = sectionsEnum.nextElement () (set of lines);

    for (int i = 0; i)< 1;="">

    NewRow = sectionsRowSet.createRow ((OARow)) OARow;

    sectionsRowSet.insertRowAtRangeIndex (sectionsRowSet.getRowCount (), newRow);

    }

    }

    Thank you

    Dilip

  • making line for the current line on the expansion table

    Hello

    I use JDeveloper 11.1.1.5.0

    I have a table with facet detailstamp enabled. Each line is to have an arrow icon to expand this line.

    My problem is that line expand action seem to work independently with the selection of rows in the table. When I develop a line, it does not only rank as current. I tried with the code below to make the line of the current table, but could not do.
        public void makeCurrentRow(RowDisclosureEvent rowDisclosureEvent) {
            usersTable = (RichTable)(rowDisclosureEvent.getSource());        //usersTable is the binding of the table on the page
            RowKeySet discloseRowKeySet = usersTable.getDisclosedRowKeys();
            usersTable.setSelectedRowKeys(discloseRowKeySet);
    
            AdfFacesContext.getCurrentInstance().addPartialTarget(usersTable);
        }
    Please let me how can know I do the table row under the current name on the expansion of this line.

    Kind regards
    Fox

    I implemented a sample here http://tompeez.wordpress.com/2013/04/12/make-disclosed-row-the-current-row-when-using-a-detail-facet-of-a-table/

    Timo

  • view multiple lines in the advanced table

    Hi all

    I have a requirement. I created advancedtable. When the page loads, to display 4 rows at a time. Can anyone please help how to achieve this req

    Kind regards
    Murali

    Hello

    Write the code below in AM that will create 5 blank lines in the advanced table.

    xxVOImpl voImpl = getxxLineVO1();
    voImpl.setWhereClause ("1 = 2");
    voImpl.executeQuery ();
    for (int i = 1; i)<=5>
    {
    Line = voImpl.createRow ();
    voImpl.insertRow (row);
    row.setNewRowState (Row.STATUS_INITIALIZED);
    row.setAttribute ("column1", i);
    row.setAttribute ("column2", "XYZ");
    }

    Kind regards
    Mary

  • Restore the value of the selected line in the editable Table.

    Hello, I use Jdeveloper 11.1.2.1.0.

    My problem is:
    1. Select a line in the editable table.
    2. change the value inside elements of the af:inputText of columns.
    3. tap on restore.
    4. the values of the selected line remains the same.

    If I select another line, before the restore, the restore will work as expected.

    I want to when you press the button cancel the values of the selected row to be rollback-ed as well.

    Set the immediate on all the inputTextFields in the table and it worked.

    Thank you.

  • Add lines to the slot table with apex_item.checkbox form?

    Hello

    I created a data manipulation process to add a line in a tabular presentation. The problem is that I have a few boxes and when I click on the button to call the procedure for adding line is not
    create one of the only text fields. Is anyway for me to create the checkboxes in this way?

    Thanks in advance!

    Hello

    Take a look on Re: Add a line in the detail table when the checkbox is enabled on a table of master report clone an entire line so it should include check boxes. Just make sure that ypu run updateInputs() or something similar to make sure that all the boxes have unique attributes "name".

    Andy

  • Updating of the ADF Table strangely after delete line

    Hello

    I use ADF Table with ArrayList to the model of the collection. I do not use View object

    < af:table var = value ' row' = "#{pageFlowScope.dataBean.collectionModel}"... "

    I have a SelectOnceChoice in each row of the table and bind their values to a property of the line

    < af:selectOneChoice value = "#{row.label}"... "

    I have a command link to remove each line and the delete method:

    collectionModel.remove (idx);

    The model is correctly updated, but the table of the ADF is not. Somehow, the value of the selection of the next line is set to the value of the deleted row.

    For example: If there two select with values respectively: Foo, Bar. If I remove the line with Foo, the remaining line (initially Bar) is set to Foo.

    If I refresh (F5) the page, it appears correctly. I also tried to use addPartialTarget and partialTriggers but no help.

    Can someone help me? Thanks in advance.

    Post edited by: 2925664

    Hello

    Previously I use table binding, that's why it has that name.

    BTW, I don't know what's causing the problem. It is related to the life cycle ADF. I put the immediate = "true" for the select box and it is working fine now.

    Concerning

  • The ADF Table data validation and highlighting

    I have an ADF table, supported by a VO. Gets the data loaded from a spreadsheet file. There are some required columns marked with the required attribute. the columns do not get highlighted when loaded data are empty. How can I get auto table validated during the loading of data and WITHOUT a commit / submit to the rear end table?

    My requirement is.

    1 load the data into the table.

    2. a way to highlight the rows or columns that have no values (how?) I tried the style inline for column as #{row.bindings.invamt == null?' background-color: Red;': ' background-color: White;'}, but no luck.

    3. validate data from db.

    User, tell us your version of jdev, please!

    If the table is editable, you can add this to the inputText of the column

    contentStyle = ' #{empty row.bindings.PhoneNumber.inputValue?» "{- color: red;':"} ".

    For the PhoneNumber column. If the table is read only the cellular connection is

    973564 wrote:

    I have an ADF table, supported by a VO. Gets the data loaded from a spreadsheet file. There are some required columns marked with the required attribute. the columns do not get highlighted when loaded data are empty. How can I get auto table validated during the loading of data and WITHOUT a commit / submit to the rear end table?

    My requirement is.

    1 load the data into the table.

    2. a way to highlight the rows or columns that have no values (how?) I tried the style inline for column as #{row.bindings.invamt == null?' background-color: Red;': ' background-color: White;'}, but no luck.

    3. validate data from db.

    contentStyle = ' #{blank line.» Phone number? "{- color: red;':"} ".

    So I guess that the connection you are using is not correct.

    Timo

  • How to get the selected row in a programmatic table of the ADF (table generated from a bean)

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    How to get the selected line in a programmatic (using a SortableModel custom not a display object) ADF table (generated from a bean)?


    We are trying to get the selected row in a bean of a programmatic ADF table to retrieve data based on the selected line.


    Any idea?

    Well, you can use selectionListener to set the selected line to a variable of bean (but this bean must be in extended view or some superiors)

    Something like this: http://www.awasthiashish.com/2015/07/get-selected-row-singlemultiple-from.html

    Dario

  • Update of the ADF table

    Hi all

    < < Jdeveloper Studio Edition Version 11.1.2.3.0 > >

    I have a table with EditingMode ADF as "click to edit", so the user can change only one line at a time.

    My requirement is as below

    1. the table must be refreshed every 5 minutes

    2. If the user is in the middle of editing a particular line and the table is updated, the values entered by the user may not be reset.

    Is it possible to do so.

    Thanks in advance

    Best regards

    bnkr

    DCIteratorBinding iter = bindings.findIteratorBinding ("Iterator");
    RowSetIterator rs = iter.getRowSetIterator ();
    While (rs.hasNext ()) {}
    Line r = rs.next ();
    r.Refresh (r.REFRESH_WITH_DB_ONLY_IF_UNCHANGED);
    }

    You need to reset your RowSetIterator because this loop will run only for the first event of af: pool.

    In addition, it is unwise to iterate by default RowSetIterator, because the user interface components are related to this iterator (you can iterate, but then you need to add the logic of the line being restored...)

    Instead, try something like this:

    RowSetIterator rs = iter.getViewObject () .createRowSetIterator (null);

    While (rs.hasNext ()) {}

    Line r = rs.next ();

    r.Refresh (r.REFRESH_WITH_DB_ONLY_IF_UNCHANGED);

    }

    rs.closeRowSetIterator ();

    Dario

  • How can I align two different text lines in the same table in two different directions (centered on one and one on the left)?

    Hello

    I want to focus the two different text lines that are in the same table, but one on the Center and the other on the left. I put a < span > tag in the hope that he was overwhelmed the family of police .bottomsel table class properties and the. Police-family Cig84 and color but the text-align only: they are both on the left.

    Here is my source and CSS codes:

    Source:

    < table width = "600" border = "0" >

    < b >

    < class td = "bottomref" > < p > < span class = "bottomsel" > | < a href = "index.html" target = "_self" > Main < /a > | " < a href = "about.html" target = "_self" > on < /a > | " < a href = "clients.html" target = "_self" > customers < /a > | " < a href = "contact.html" target = "_self" > Contact < /a > | " </span > < br / >

    < span class = 'credits' > credits: < span class = "Cig84" > Cig84 </span > < / span > < /p > < table >

    < /tr >

    < /table >

    CSS:

    {.bottomsel}

    text-align: center;

    do-family: Georgia, "Times New Roman", Times, serif;

    }

    {.credits}

    text-align: left;

    }

    . {Cig84}

    Color: #F00;

    do-family: "Comic Sans MS", cursive;

    }

    Use tags to paragraph with CSS classes.

    CSS:

    . Center {text-align: center}

    .the {text-align: left}

    HTML:

    This text is centered

    This text is left-aligned

    Nancy O.

  • The center of the ADF table column data

    I use JDeveloper 11.1.1.6

    I would like to be able to focus some of the attributes stored for some columns in my table of the ADF. Here are 2 of the columns in my table ADF I tried to center data. For some reason, the data remain justified left. In my skin file I am centering the header values for all columns in all tables. I don't want to do that, but with the row data. For row data, I want to selectively choose the columns that are left centered or justified. Do you have any ideas on what I'm missing.



    < af:table value = "#{bindings." Data1.collectionModel}.
    var = "row".
    lines = ' #{bindings. " Data1.rangeSize}.
    emptyText = "#{bindings." Data1.viewable? "{'No data to display.': 'Access Denied.'}".
    fetchSize = "#{bindings." Data1.rangeSize}.
    rowBandingInterval = '1 '.
    Binding = "#{backingBeanScope.backing_ui_pages_DataDispatch_Processing_update." Table"}
    ID = "myTable" columnStretching = "last".
    rowSelection = "single" displayRow = "selected".
    selectedRowKeys = ' #{bindings. " Data1.collectionModel.selectedRow}.
    selectionListener = "#{bindings." Data1.collectionModel.makeCurrent} ">"


    ...........


    < af:column sortProperty = "MyId" sortable = "false".
    headerText = "#{bindings." Data1.hints.MyID.label}.
    ID = "c1" >
    < af:outputText value = "#{rank." MyId}"id ="ot10.
    inlineStyle = "" text-align: center; "/ >"
    < / af:column >
    < af:column headerText = "#{bindings." Data1.hints.size.label}.
    ID = 'c4' width = "75" >
    < af:selectOneChoice value = "#{row.bindings.Size.inputValue} '"
    label = "#{row." Bindings.Size.label}.
    required = "#{bindings." Data1.hints.size.mandatory}.
    shortDesc = "#{bindings." Data1.hints.size.ToolTip}.
    ID = "soc3" readOnly = 'true '.
    inlineStyle = "" text-align: center; ">"
    < f: selectItems value = "#{row.bindings.Size.items} '"
    ID = "si3" / >
    < / af:selectOneChoice >
    < / af:column >


    ...........


    < / af:table >

    I'm sorry. The attribute align = 'center' is at the level of the spine.

    Try this:

    Try this:


    var = "row".
    lines = ' #{bindings. " Data1.rangeSize}.
    emptyText = "#{bindings." Data1.viewable? "{'No data to display.': 'Access Denied.'}".
    fetchSize = "#{bindings." Data1.rangeSize}.
    rowBandingInterval = '1 '.
    Binding = "#{backingBeanScope.backing_ui_pages_DataDispatch_Processing_update." Table"}
    ID = "myTable" columnStretching = "last".
    rowSelection = "single" displayRow = "selected".
    selectedRowKeys = ' #{bindings. " Data1.collectionModel.selectedRow}.
    selectionListener = "#{bindings." Data1.collectionModel.makeCurrent}">

    ...........


    headerText = "#{bindings." Data1.hints.MyID.label}.
    ID = "c1" align = "center" >



    ID = 'c4' width = "75" align = "center" >

    label = "#{row." Bindings.Size.label}.
    required = "#{bindings." Data1.hints.size.mandatory}.
    shortDesc = "#{bindings." Data1.hints.size.ToolTip}.
    ID = "soc3" readOnly = 'true '.
    >

    ID = "si3" / >

    ...........

    Thank you
    Nini

Maybe you are looking for

  • minimize, maximize and quit smoking

    The above options are no longer visible in Firefox. I use Windows 7Pro. I have tried the previously listed solutions (safe mode, default theme). I already use the default theme and have no appearance or plug-in modules installed. I've upgraded to ver

  • PowerSupply

    Hello, recently I bought hp pavilion p7 - 10191.it came with 2 GB of ram but I update to 4 GB and also with the nvidia gtx 650 graphics card, it works perfectly on my diet but now, I want to upgrade to 760 gtx graphics card, so the question is will b

  • How to replace HDD on Equium A100-147?

    I'm looking to replace my drive hard Toshiba A100-147. I can't find any tutorials on the internet, can anyone help? I am looking for clear instructions or a guide that would help. Thanks in advance.

  • black screen in Internet Explorer

    PC opens without fault, but the attempt to access Internet Explorer gets met with black screen, UNLESS I have "Start without Add-ons. Homepage is Google, but was no problem until lately. Help!

  • AERO: Why aero color appear if you have aero?

    On my Dell Inspiron 531 Windows, when I click on the upper part of the customization, I see some aero colors. Why aero color appear if you have aero? (My computer is Windows Vista Ultimate, 32-bit and no service pack). Sincerely,. Numbuh3wearsabutter