Display the background of table row alternatively and hiding cell border

Hi all,
I am trying to display the background of the table using different color alternative and at same time I need to hide the border of all cells.
What I found in <af:table> is using bandingInterval="1" banding="row", but how can I set the background color? And how to hide the cell border?
Or if there is a thing like row index so that I can mod it like rowIndex%2==0 in every column to determine the inlineStyle?
Thanks.
Shawn

<af:table value="..." var="row" varStatus="status">
  <af:column inlineStyle="#{status.index % 2 > 0.5 ? 'border:none;' : ''}">
  </af:column>
</af:table>For some reason, EL operation always seems to return a double, so the condition has to be defined with that in mind.
Regards,
~ Simon

Similar Messages

  • How to find the average of table row values it should display in next row in libwindow/​CVI

    Hi,
    How to find the average of table row values it should display in next row in libwindow/CVI
    Please let me know the solution.

    There isn't a built-in function to perform calculations on thable cells. What you can do is to retrieve thable cells values and calculate the average by yourself.
    To retrieve a bunch of cells in a single instruction you can use GetTableCellRangeVals: prerequisite for this function to work correctly is that cells are all included in a Rect structure (shortly, a rectangle) and are all of the same data type. See the help for the function for some explanations and the link to an example of its usage. In Cell range parameter you can pass VAL_TABLE_ROW_RANGE (row) macro to retrieve an entire row. See here for details.
    Once you have retrieved cell values in an array, you can pass it to Mean function to calculate the average.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Display the total number of rows for the report in OBIEE 11g

    Hi, In obiee 11g, the pagination will be 1-25. Is there any possiblity in obiee to show the total rows count next to pagination. Ex: if the result contains 120 rows. it should display after the pagination
    Records 1-25. Total of Records : 120
    Is there any way we can display the total number of rows for the report.
    Kindly help me.. Its very urgent requirement.
    MAny Thank in advacne

    Check this http://obiee100.blogspot.com/2011/07/display-total-number-of-records-in.html
    and
    http://docs.oracle.com/cd/E28280_01/bi.1111/e10544/appsql.htm#CHDCDIDA
    You have to go something like as suggested in previous link.
    Mark as correct/helpful

  • While updating my ipad to new software through itunes it got stuck and does not work anymore - it just displays the screen with symbols of itunes and the cable to connect to it - help - what should i do?

    while updating my ipad to new software through itunes it got stuck and does not work anymore - it just displays the screen with symbols of itunes and the cable to connect to it - help - what should i do?

    Disconnect the iPad, do a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. The screen will go blank and then power ON again in the normal way.] It is 'appsolutely' safe!, reconnect and follow the prompts.
    If that does not work then see here http://support.apple.com/kb/HT1808

  • How to print the row  ,column,and particular cell in separate color

    how to print the row  ,column,and particular cell in separate color IN ALV GRID

    HI,
    Here you go good program links
    <a href="http://www.sapfans.com/forums/viewtopic.php?t=52107">How to Set Color to a Cell in AVL</a>
    <a href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_color.htm">ALV Grid Coloring</a>
    Thanks
    Mahesh

  • My apple tv main menu no longer displays the "movies" section, just internet, computers, and settings. Does anyone know why or how to get it back up? Recently rented a movie directly through apple tv but can't see the movies section in main menu now.

    My apple tv main menu no longer displays the "movies" section, just internet, computers, and settings. Does anyone know why or how to get it to show again? Recently rented a movie directly through apple tv but can't see the "movies" section in main menu now. WiFi and home sharing are working.

    Welcome to the Apple Community.
    Check the location setting for the iTunes Store is correct.
    You might also try restarting the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router.
    If you are still having problems try a restore.

  • WHATS THE USE OF TABLE STRIP CONTROL AND TABLE VIEW CONTROL

    WHATS THE USE OF TABLE STRIP CONTROL AND TABLE VIEW CONTROL

    Subhash,
    You create and distribute a model in BD64. The details of that are stored in this tables.
    A model gives you the details of the sender / receiving systems and what are the message types that are getting transferred between these systems.
    Regarding the IDOC segments issue, can you explaing how are you triggering the IDOC and which message / idoc type you are dealing with.
    Regards,
    Ravi
    Note :Please mark the helpful answers
    Message was edited by: Ravikumar Allampallam

  • Itunes will open, but I cannot play any songs, nor enter the store.  It displays the message 'itunes have stopped working' and then closes

    I went in to use itunes today.  It opened up right away, but I can't play any songs nor enter the store.  It displays the message ' itunes has stopped working' and then closes.  I tried removing itunes and reloading.  Same thing.  This is on my PC.  My wife can still open itunes on her PC.  Can anyone help?

    Hello printer12
    Start your troubleshooting with the article below as it goes over issues with iTunes crashing and multiple options to troubleshoot.
    iTunes for Windows XP: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/ts1421
    Regards,
    -Norm G.

  • HT3209 Why in the heck can I not download an HD video if my monitor isn't capable of displaying the movie.   My iPhone can and will be downloaded to the phone.   So why stop me from downloading the movie?    Have I lost this freedom to download HD?

    Why in the heck can I not download an HD video if my monitor isn't capable of displaying the movie.   My iPhone can and will be downloaded to the phone.   So why stop me from downloading the movie?    Have I lost this freedom to download HD?

    Never mind.   I bought the movie through my 4S phone.  
    iTunes is beginning to really suck with their latest version. 

  • My cat sat on my keyboard and now the background of everything is black and the writing is white... I can't seem to find how to change it back... Any suggestions?? Thanks so much!!!!

    My cat sat on my keyboard and now the background of everything is black and the writing is white... I can't seem to find how to change it back... Any suggestions?? Thanks so much!!!!

    System Preferences > Universal Access:
    As an aside: Some people report that their cat will "mark" the MBP/MBA keyboard, and such "marking" is not civered under warranty.   Closing it while unattended may be wise.

  • Read the table row data and dispaly it in the ME21n transaction

    Hi All,
    i'm new to ABAP and OO ABAP .Please somebody help me out for my req. My req is , when i double click on the table row which is having PO details , then that data  should be displayed in the ME21n transaction. please some on tell me how to achive this using SALV class..
    thanks,
    Rajeev.

    Hi rajeev bikkani ,
    you can use the events 'Double_click' in alv. below given the code, try out.
    class lcl_list_event_handler definition.
    PUBLIC SECTION.
    methods on_double_click
          for event double_click of cl_gui_alv_grid
            importing e_row .
    endclass.
    class lcl_list_event_handler implementation.
    method on_double_click.
    call transaction 'ME21N'.
    ENDMETHOD.
    ENDCLASS.
    before executing the method SALV.
    write code    
      set handler obj2(reference for lcl_list_event_handler) ->on_double_click
                    for obj1(referenece for cl_gui_alv_grid).

  • Ttitle not displaying the title when no rows selected from a table

    My requirement is display the Ttitle value even when there are no rows fetched from a table. I tried the following -it didn't work. We are on Oracle 9.2.0.7.0. Anybody has thoughts on this... your help greatly appreciated.
    ORACLE_SID = [oracle] ? ABCDE
    PSDEVDB1:>sqlplus babu
    SQL*Plus: Release 9.2.0.7.0 - Production on Mon Jul 10 17:56:52 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Enter password:
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.7.0 - Production
    SQL> ttitle center 'testing'
    SQL> column x noprint
    SQL> select 'x' x from dual;
    testing
    SQL> select *from mytable3;
    testing
    NAME NO
    KUMAR 10
    RAMU 10
    BABU 10
    SQL> select *from mytable3 where no=20;
    no rows selected
    SQL>

    If your concepts are clear for Right outer join, Left outer join and Full outer join you can achieve what you are looking for.
    http://www.oreillynet.com/pub/a/network/2002/04/23/fulljoin.html
    Play with the data and may the force be with you.

  • New Mac Air and HP monitor.  The monitor only displays the background.  How Can I get both to display the same thing?

    I have a new Mac Air and want to use my HP Monitor HPLP2475w to save $$.  I attached it to the Mac Air but all I get is the background of my laptop.  How do I get this to match or use in the dual mode.
    Thanks,

    Hi Jackie,
    Welcome to the Support Communities!  How did you attach the Macbook Air to your HP Monitor?  What cable did you use?  The article below will explain how to setup the display.  Video Mirroring is the option that will allow you to see your computer's display on your HP.
    OS X Yosemite: Connect a display
    http://support.apple.com/kb/PH19035?viewlocale=en_US
    You can easily view the contents of your Mac on a display, like an Apple Thunderbolt Display, or on your TV.
    Connect an Apple Thunderbolt Display: 
    Plug the display’s cable directly into the Thunderbolt port  on your Mac. 
    Connect an Apple LED Cinema Display: 
    Plug the display’s cable directly into the Thunderbolt port  on your Mac. 
    Connect a TV or display with an HDMI connector: 
    Plug the cable directly into the HDMI port on your Mac. For more information about using a TV, see Use your TV as a display. 
    Connect a display with a VGA connector: 
    Use a Mini DisplayPort to VGA Adapter to connect the display to the Thunderbolt port  on your Mac. 
    Connect a display with a Mini DisplayPort: 
    Plug the display’s cable directly into the Mini Display port  on your Mac. 
    After you connect your Mac, the contents of your screen automatically appear on the display or TV. 
    If your display uses a video port that’s not available on your Mac, you may be able to use an adapter to connect your display. For example, If your Mac doesn’t include an HDMI port, you can use a Mini DisplayPort to HDMI video adapter with the Thunderbolt port on your Mac.
    OS X Yosemite: Connect multiple displays to your Mac
    http://support.apple.com/kb/PH19039
    Set up the displays for video mirroring
    Video mirroring shows the entire desktop on each connected display.
    Choose Apple menu > System Preferences, click Displays, then click Display.
    Set both displays to the same resolution.
    Click Arrangement, then select Mirror Displays.
    Enjoy your new Mac!
    - Judy

  • Why aren't my CSS and div tag boxes displaying the background images I'm plugging in?

    I'm using the CSS dialog boxes to places images via the background image option into my dreamweaver site. Everything looks fine in dreamweaver but when I view it any of the browsers, two of the images I've place as div tag background images don't work....the overal background image of the site works, but these don't show up ....
    here's my code if it helps to answer
    <!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=UTF-8" />
    <title>Main</title>
    <style type="text/css">
    body {
    background-image: url(images/realgrade.jpg);
    background-repeat: repeat-x;
    text-align: center;
    html, body {
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-top: 0px;
    padding-top: 25px;
    #wrapper {
    width: 930px;
    text-align: left;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    position: relative;
    background-image: url(file:///Macintosh%20HD/Users/jimmymoreira/Unnamed%20Site%204/images/possible%20image. jpg);
    background-repeat: no-repeat;
    #header {
    height: 192px;
    width: 237px;
    background-image: url(images/logo_fill.jpg);
    background-repeat: no-repeat;
    position: absolute;
    left: 35px;
    top: -25px;
    #mainNav {
    background-color: #33F;
    height: 200px;
    width: 272px;
    float: left;
    margin-top: 233px;
    #maincontent {
    height: 600px;
    width: 608px;
    float: right;
    margin-bottom: 45px;
    padding-right: 25px;
    background-repeat: no-repeat;
    background-position: center 270px;
    background-image: url(file:///Macintosh%20HD/Users/jimmymoreira/Unnamed%20Site%204/images/opaqueMaincontent .png);
    #sidebar {
    background-color: #F36;
    height: 250px;
    width: 272px;
    clear: left;
    float: left;
    #footer {
    height: 525px;
    width: 870px;
    clear: both;
    padding-top: 45px;
    padding-right: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
    background-image: url(images/footer_image.jpg);
    background-repeat: no-repeat;
    margin-top: 45px;
    </style>
    </head>
    <body>
    <div id="wrapper">
      <div id="header">
        <p> </p>
        <p> </p>
        <p> </p>
      </div>
      <div id="mainNav">
    <p> </p>
    </div>
      <div id="maincontent"></div>
      <div id="sidebar"></div>
      <div id="footer"></div>
    </div>
    </body>
    </html>
    here's what I'm going for
    here's what I'm getting in the browser
    Please help!

    Your image files are pointing to your hard drive, not your server.  You have this
    background-image: url(file:///Macintosh%20HD/Users/jimmymoreira/Unnamed%20Site%204/imag es/opaqueMaincontent.png);
    and you should have this
    background-image: url(imag es/opaqueMaincontent.png);
    Also, is your images file named imag es?
    Gary

  • How I can display the values in one row when they come from the same colum

    This query
    SELECT
    sorints_ints_code
    FROM
    saturn.sorints a,
    connman.cc_adm_prospect_master
    WHERE
    sorints_ints_code like 'Z%'
    and sorints_pidm = prospect_pidm
    give me the results of
    ZA
    ZB
    ZC
    I want to use this query in a cursor to update a column in another table, the problem is that I need to update the table concatenating the values ZA,ZB,ZC
    I have 24 different codes stored in the column sorints_ints_code, so I don’t want to use 24 different cursors and I don’t to use cross reference, It is there any way that I DON’T know to display the data like this za,zb,zc without using cross reference, I don’t want to use the table 24 times…
    Like THIS, this is only for two values…
    SELECT
    a.sorints_ints_code,
    b. sorints_ints_code
    FROM
    saturn.sorints a,
    saturn.sorints b
    connman.cc_adm_prospect_master
    WHERE
    a.sorints_ints_code = ‘ZA’
    AND a.sorints_ints_code = ‘ZB’
    and a.sorints_pidm = prospect_pidm
    and b.sorints_pidm = prospect_pidm
    REMEMBER, I have 24 different values
    I am trying to write a procedure like this;
    Someone suggest this v_int_code1 := v_int_code1||interest_coach_rec.sorints_ints_code;
    BUT IT IS NOT WORKING!!!
    PROCEDURE prospect_coach_interest_upd
    p_prospect_term_code IN srbrecr.srbrecr_term_code%TYPE,
    p_prospect_admin_err_code OUT VARCHAR2,
    p_ora_err_code OUT NUMBER,
    p_ora_err_msg OUT VARCHAR2
    ) IS
    v_out_path VARCHAR2(40) := '/home/connman/student';
    v_out_file VARCHAR2(40) := 'cc_adm_prospect_'||p_prospect_term_code||'_'||TO_CHAR(SYSDATE,'YYYYMMDDHH');
    v_file_handle UTL_FILE.FILE_TYPE;
    v_pidm NUMBER;
    v_int_code1 varchar2(30);
    v_int_code2 varchar2(2);
    v_int_code3 varchar2(2);
    CURSOR cur_pidms IS
    SELECT prospect_pidm
    FROM connman.cc_adm_prospect_master
    WHERE prospect_term_code = p_prospect_term_code
    FOR UPDATE;
    CURSOR interest_coach_cur is
    SELECT
    sorints_ints_code
    FROM
    saturn.sorints
    WHERE
    sorints_ints_code like 'Z%'
    and sorints_pidm = v_pidm ;
    interest_coach_rec interest_coach_cur%ROWTYPE;
    BEGIN
    UTL_FILE.FCLOSE_ALL;
    v_file_handle := UTL_FILE.FOPEN (v_out_path, v_out_file, 'a');
    UTL_FILE.PUT_LINE (v_file_handle,
    CHR (10) || TO_CHAR (SYSDATE, 'DD-MON-YYYY HH:MI:SS')
    UTL_FILE.PUT_LINE (v_file_handle, 'Entering the Admin Name procedure.');
    --- BEGIN
    FOR rec_pidms IN cur_pidms
    LOOP
    EXIT WHEN cur_pidms%NOTFOUND;
    v_pidm := rec_pidms.PROSPECT_pidm;
    v_int_code1 := v_int_code1||interest_coach_rec.sorints_ints_code;
    IF interest_coach_cur%ISOPEN
    THEN
    CLOSE interest_coach_cur;
    END IF;
    OPEN interest_coach_cur;
    FETCH interest_coach_cur
    INTO interest_coach_rec;
    IF interest_coach_cur%FOUND
    THEN
    UPDATE
    connman.cc_adm_prospect_master
    SET
    PROSPECT_COACH_INTEREST = interest_coach_rec.sorints_ints_code
    WHERE CURRENT OF cur_pidms;
    END IF;
    END LOOP;
    COMMIT;
    p_prospect_admin_err_code := '0';
    UTL_FILE.put_line (v_file_handle, 'Successful Completion.');
    EXCEPTION
    WHEN OTHERS
    THEN
    p_prospect_admin_err_code := '1';
    p_ora_err_msg := SUBSTR (SQLERRM, 1, 2000);
    p_ora_err_code := SQLCODE;
    END; -- prospect_coach_interest_upd;

    Search in the forum or web you will find many solutions
    Return multi-row result as one comma-delimited row
    http://www.oracle-developer.net/display.php?id=412

Maybe you are looking for

  • Macbook Pro power button

    My boss gave me a 2008 15" Macbook Pro to set up ready for another employee, everything had been wiped off the laptop. He told me that first he wanted it fixed - the power button only worked occasionally- it always worked for me but I took it to the

  • IS-Retail Upgrade

    Hi, Is there any documentation available for IS-Retail ECC upgrade including POS, ITS ? Any check-list/questionnaire for integration with POS/ITS? Thanks, Mithun

  • Object queue error

    While connecting to the object queue within the Sun Java System RFID Massage Queue the following error is output: Unable to connect to the object store 'EpcisObjectStore'/ com.sun.messaging.jmq.admi.objstore.GeneralNamingException: A general naming e

  • Self registered guests on WLAN

    I'm attempting to get several slightly different types of public access web configured on a Cisco WLC 4404. the first type is a pre-registration service, whereby the user needs to go to reception or some other designated staff, who configures a user

  • Color LaserJet CP1515n and ghost printing in Windows 7

    I have an odd problem with my printer, that has otherwise worked perfectly. In XP there was never a problem, but with Windows 7 it is not going as well. The test pages from the printer look correct, and as i said there was no problem until i switched