Alternate row color for table question

I'm alternating the row color on a table, and if I have a
<a href> in
the table, the background behind the <a href> isn't the
same as the row
color based on:
<tr bgcolor="###iif(currentrow mod
2,de('ffffff'),de('efefef'))#">
Is there a way to have the CSS that formats the <a
href> change at the
same time as the background color for the row??

How about a way to do it without having to learn something
else (like a
framework??)
Anyone done something like what I'm looking to do? Just
change the <a href>
formatting to go along with the inline iif shown below?
<tr bgcolor="###iif(currentrow mod
2,de('ffffff'),de('efefef'))#">
Steve
"Daverms" <[email protected]> wrote in
message
news:fgn5vi$83b$[email protected]..
> Hi,
>
> Try implementing the "JQuery" framework in your
application. It really
> minimizes the coding time and enables you to concentrate
on development
> alone.
>
> (Try Googling, You can find more JQuery solutions for
this TR alternative
> bgcolor issues, ).
>
>
>
>

Similar Messages

  • How to create a Listbox in UI5 with alternate row color for the Listitems.

    Hi,
    I need to create a Listbox for browser (not mobile). But not getting any properties for alternate row color for the list items.
    If anyone worked on this pls share.
    Thanks,
    Nigam

    Hi Guys
    Chandra's solution is sweet.
    Here is another one so that it will not affect the other lists (if any) that you do not want alternate colors.
    -D

  • Alternating row color for CF report Builder?

    I have a user who wants one of her reports to display
    alternating row colors for better read clarity. The reports are
    rather lengthy and the rows tend to blend in with eachother.

    Thanks Epulfy. I am going to give this a try later today.
    Much appreciated
    EDIT:: This does work. however I'm not sure how to set a
    rectangle to the background of the report so it's behind my
    details. I draw the rectangle and it just hides whatever I want to
    display. When I look at the report it does alternate with rows, but
    I can only see details from the rows that it does not alternate on.
    Any clue how to set it to the background?

  • Is there a Terminal command to set alternate row colors in Mail?

    I'd like to enable the alternate row colors in the message list, but the only way I can find to do it requires Developer tools to be installed.
    Not bad for my Mac, but it seems a bit of a workload for the other 19 Macs in the office. There's nothing in Onyx or Secrets that'll do this.
    Here's what I found on the web: http://pjkh.com/articles/2007/10/08/alternating-row-colors-in-apple-mail
    There's a plug-in called WideMail which I'm using but it doesn't seem 100% stable.
    Thanks

    Just do the hack once and copy that version of the Mail.app application (or just the MessageViewerContents.nib file) to the other machines. Just make sure that they are running exactly the same version of Mail and MacOS X. This hack will probably not work in Snow Leopard, by the way.

  • GROUP attribute ruins alternate row coloring

    I had the alternate row colors working, but then when I added
    the "GROUP" attribute to my
    <cfoutput> tag, it's not working any more. More like
    random row coloring!
    Any thoughts?
    Thanks!
    Rick
    <table width="100%" border="1" cellspacing="0"
    cellpadding="0">
    <cfoutput query="q_reqmnts_f3" group="req_Cat">
    <tr bgcolor="###iif(currentrow MOD
    2,DE('c5c7c9'),DE('9dc7fc'))#">
    <td height="12"><font
    size="3"><strong>#req_Cat#</strong><br></font>
    <font size="3"><cfoutput>
    <li>     <strong>#req#</strong>   #Spec1#  #Spec2#  <a
    href="
    http://#Link#">#Link#</a> <br
    style="empty-cells:hide"></li></cfoutput><br>
    </td>
    </tr>
    </cfoutput>
    </table>

    when you use the GROUP attribute of CFOUTPUT, your data is no
    longer being output in the same order in which it was retrieved.
    the CURRENTROW variable is no longer in chronological order (you're
    displaying the first grouped element, then 1-n members of that
    group, then repeating).
    you'd need to set an iterating variable.
    <cfset myRowCountVar = 0 />
    <cfoutput query="q_remnts_f3" group="req_Cat">
    <cfset myRowCountVar = myRowCountVar + 1 />
    (now use 'myRowCountVar' to key off of to determine the
    background color rather than currentrow)

  • Setting alternate row color of DataGridColumn

    Is there a way to set alternate row color of a
    DataGridColumn? I need to set different alternating row color to
    different DataGridColumn.

    Please Check this example
    http://www.flex4ex.com/?p=9

  • Scroll bar and alternate row color in Trinidad table

    I am using Jdeveloper 11g
    I have two question on tinidad table see below sample code
    *1)How to set scroll bar on table*
    *2)how to set different colors for alternate rows*
    <tr:form>
    <tr:panelGroupLayout>
    <tr:panelFormLayout inlineStyle="width:965px; height:512px; margin:50px;">
    <f:facet name="footer">
    <tr:table value="#{bindings.UserFavoriteVO.collectionModel}"
    var="row" rows="#{bindings.UserFavoriteVO.rangeSize}"
    binding="#{UserActionBean.table1}"
    emptyText="#{bindings.UserFavoriteVO.viewable ? 'No rows yet.' : 'Access Denied.'}"
    rowSelection="multiple" id="table"
    inlineStyle="border-width:none; outline-color:ActiveCaption; outline-style:groove; border-color:Navy; color:MenuText; font-size:medium;"
    horizontalGridVisible="true" verticalGridVisible="false">
    Thanks for all help
    Jaydeep

    Hi Sireesha,
    Thanks for reply.
    I forgot to mentioned that i already tried that option *(rowBandingInterval)*
    <tr:table value="#{bindings.UserFavoriteVO.collectionModel}"
    var="row" rows="#{bindings.UserFavoriteVO.rangeSize}"
    binding="#{UserActionBean.table1}"
    emptyText="#{bindings.UserFavoriteVO.viewable ? 'No rows yet.' : 'Access Denied.'}"
    rowSelection="multiple" id="table"
    inlineStyle="border-width:none; outline-color:ActiveCaption; outline-style:groove; border-color:Navy; color:MenuText; font-size:medium;"
    horizontalGridVisible="true" verticalGridVisible="false"
    rowBandingInterval="1">
    but no any success.
    *@ scroll* I found in Frank post it is related to ADF table .So i just want to ask will it be applicable to Trinidad table too.

  • Alternate row shading in tables

    Hi all
    I've been trying again and again to get alternate rows of my long table in Frame 11 to be shaded.
    I succeeded, then did something to remove them, and now I CANNOT get them to reapply.
    I am using the Table Designer, Shading tab.
    The Heading and Footing Shading works fine, it changes as I change colour or fill.
    But the Body Shading refuses to.
    Have set Body shading to Shade by Body Rows
    First : 1
    Fill 3%
    Color: Secondary Blue
    Next 1
    Fill: None   
    Colour White
    When I apply, nothing seems to change. I have the whole table highlighted.
    The Custom Ruling and Shading dialog works fine but this is a long table and I don't want to go down that route. Though given the amount of time I've spent on this I probably could have done it twice over...
    Can anyone help please? It feels like a FM bug but it could just be something I'm doing wrong.
    Thanks
    Laura

    To understand what your table tag is doing, create a blank table using that table tag.
    Once you've got the settings of that table squared away, apply to your existing table.
    If you still have problems, then you have custom ruling and shading applied (which I strongly recommend against, along with other format overrides). Use Error's method for removing the overrides, but examine your choices carefully; the custom ruling and shading box is particularly confusing.
    -Matt 
    Matt Sullivan
    roundpeg, Inc. contractor
    @mattrsullivan
    P: 714 798-7596 | F: 360.230.7269 | [email protected]

  • Alternate row color?

    hi all,
    I would like to know how to make all the rows in a table have alternate color just like the forum message board as we it (i.e white and purple).In fact i am retrieving the data from a Db and displaying it in a table.
    Please help.

    This code you have is going through a result set and adding the acronyms to a list.
    The bit to deal with alternating colours would be the bit where you iterate through the list, and output <tr><td> tags in a table.
    Easiest way is to use a JSTL forEach loop and css styles
    <head>
      <style>
        tr.line1style{background-color:blue}
        tr.line2style{background-color:red}
      </style>
    </head>
    <table>
    <tr>
      <th>ACRONYM</th>
      <th>DEFINITION</th>
    </tr>
    <c:forEach var="acronym" items="${acronymlist}" varStatus="status">
    <tr class="${status.index%2==0 ? 'line1Style' : 'line2Style'}">
      <td><c:out value="${acronym.acronym}"/></td>
      <td><c:out value="${acronym.definition}"/></td>
    </tr>
    </c:forEach>
    </table>

  • Alternate row color urgent

    Hi I have to make alternate color rows.
    now possible solution is below but it is giving one extra line below table.so i dont want to use this.
    is there any idea
    thanxs<%
    int num = 0;
    String SLATE = "#E4E4E4";
    String WHITE = "#FFFFFF";
    String bgColor = null;
    %>
    <logic:iterate id="element" name="dateMap">
    <%
    num++;
    if((num % 2) == 0) {
    bgColor = SLATE;
    } else {
    bgColor = WHITE;
    %>

    That's odd. When I select alternating row color in the Table Inspector I get alternating row colors in the entire table. Is your spreadsheet based on the Blank template?

  • SQL - alternate rows from 2 tables

    Hi, not sure how to best put this, but I have 2 tables for a Sales database. One is for our Sales Agents Actual sales (Agent_Sales, Product, Jul, Aug, Sep, Oct....) showing the actual sales by agent. PK is composite Agent_Sales and Product. The other table is similar but for the Targets (Agent_Target , Product, Jul, Aug, Sep, Oct....) with the PK again being composite Agent_Target and Product.
    What I would like to do is get a listing for each agent in a table listing the actuals on the first line, then Targets on the second. Furthermore the 3rd line will be the variance between actuals and target and 4th line a percentage to target.
    I would like the output to look like this:
    Jul Aug Sep Oct
    Agent_Sales 8 9 10 8
    Agent_Target 9 8 8 9
    Variance -1 1 2 -1
    Percent 0.89 1.12 1.25 0.89
    Thanks in advance.

    Hi,
    Another way:
    WITH  cntr  AS
         SELECT  LEVEL  AS n
         FROM     dual
         CONNECT BY  LEVEL <=4
    SELECT     a.agent_sales
    ,     a.product
    ,     DECODE (c.n, 1, a.jul, 2, t.jul, 3, t.jul-a.jul, 4, a.jul/t.jul)     AS jul
    ,     DECODE (c.n, 1, a.aug, 2, t.aug, 3, t.aug-a.aug, 4, a.aug/t.aug)     AS aug
    ,     DECODE (c.n, 1, a.sep, 2, t.sep, 3, t.sep-a.sep, 4, a.sep/t.sep)     AS sep
    ,     DECODE (c.n, 1, a.oct, 2, t.oct, 3, t.oct-a.oct, 4, a.oct/t.oct)     AS oct
    FROM          actual_sales     a
    JOIN          target_sales     t     ON     a.agent_sales     = t.agent_sales
                             AND     a.product     = t.product
    CROSS JOIN     cntr          c
    ORDER BY  a.agent_sales
    ,         a.product
    ,         c.n
    ;It sounds like each row in each table has a matching row in the other table. If that's not the case, then you might want to make the join between actural_sales and target_sales an outer join. All the computations might be messier, if they need NVL or NULLIF to deal with missing items.
    I wonder if this is the best table design. Perhaps something with a separate row for each month would be better.
    Edited by: Frank Kulash on Aug 2, 2009 4:09 PM

  • Multiple row selection for table element

    Hi,
    I have a requirement where I require to select multiple rows from a table element in a WD for abap application.
    I have defined a node with cardinality and selection set to 1..n.
    The contex node contains 4 fields : emp_name, pernr, manager and position.
    The attributes of the table element for selectionmode is set to 'multi' and 'selectionchangebehaviour' is set to 'auto'.
    I have defined an action on the 'onleadselection' event.
    The code in this method also includes the statement 'lo_el_team_view->set_selected( EXPORTING flag = abap_true ).' 
    When I execute the application only 1 row is highlighted at any one time when I select it. You can select multiple rows by holding down the 'ctrl' key but I want to avoid having to do this. Is there anything I have missed out causing multiple row selections not to be all highlighted.
    Thanks in advance for any assistance.

    Hi raj,
    you can try the following code in the 'onleadselect' event of the table,
    create one attribute ' Flag'  of type WDY_BOOLEAN under the node which has been binded to the table.
    DATA lo_nd_node_tab1 TYPE REF TO if_wd_context_node.
      DATA lo_el_node_tab1 TYPE REF TO if_wd_context_element.
      DATA  lo_elements TYPE wdr_context_element_set.
      DATA  lo_ele_select_new TYPE REF TO if_wd_context_element.
      DATA lv_deselect TYPE wdy_boolean.
      DATA lv_flag TYPE wdy_boolean.
      DATA lv_select TYPE wdy_boolean.
      DATA lv_index TYPE i VALUE 0.
      lo_nd_node_tab1 = wd_context->get_child_node( name = wd_this->wdctx_node_tab1 ).
    get the current selected element
      lo_ele_select_new = wdevent->get_context_element( name = 'NEW_ROW_ELEMENT' ).
      CHECK lo_ele_select_new IS NOT INITIAL.
    check whether it has been selected or not
      CALL METHOD lo_ele_select_new->is_selected
        RECEIVING
          flag = lv_select.
      lo_ele_select_new->get_attribute( EXPORTING name = 'FLAG' IMPORTING value = lv_deselect ).
    check whether element has been previously selected or not,if not, set the flag to select it
    IF lv_select IS NOT INITIAL AND lv_deselect IS INITIAL.
        lo_ele_select_new->set_attribute( name = 'FLAG' value = 'X' ).
    if selected currently and previously then set the flag as false,in order to delect it
      ELSEIF lv_select IS NOT INITIAL AND lv_deselect IS NOT INITIAL..
        lo_ele_select_new->set_attribute( name = 'FLAG' value = ' ' ).
      ENDIF.
      CALL METHOD lo_nd_node_tab1->get_elements
        RECEIVING
          set = lo_elements.
    according to the falg, select and delect the elements
    LOOP AT lo_elements INTO lo_el_node_tab1.
        lo_el_node_tab1->get_attribute( EXPORTING name = 'FLAG' IMPORTING value = lv_flag ).
        IF lv_flag = 'X'.
          lo_el_node_tab1->set_selected( abap_true ).
          lo_nd_node_tab1->set_lead_selection_index( lv_index ).  * this statement deselects the lead selection index*
        ELSE.
          lo_el_node_tab1->set_selected( abap_false ).
          lo_nd_node_tab1->set_lead_selection_index( lv_index ).
        ENDIF.
      ENDLOOP.
    I hope this resolves your problem.
    Thanks,
    krishna

  • How to display alternate row colors in struts form?

    hi,
    I am using struts lib to display data in jsp page.
    <logic:iterate id="result" name="listofPorjetcts" indexId = "i">
    <tr>
    <td ><bean:write name="result" property="projectName"/></td>
    </tr>
    how to display alternaternate row colors ?
    any one can help?

    hey i not sure abt structs, what i did for jsp was using a boolean.
    declare boolean red=true;
    <tr
    <%
    if(red){%>
    class="red" >
    <%
    red=false;
    }else{%>
    class="white">
    <%
    red=true;
    %>
    take note that the class is a predefined css. I think u can use style="background-color:#red "
    You can seearch the web for more info.

  • My song lists used to alternate row colors but now they're all white... How do I undo this ?

    I do not know how this problem began.  All I know is that in a guest account, the colors of the rows alternate between white and blue.  But now the background is completely white.  However, if a webpage or another window overlaps the iTunes page, immediately off the edge of the overlapping page you can see the alteration of colors just a little bit.

    This was driving me crazy too, after some digging around here in the forums I found the problem.
    Go to System Preferences
    Click on Accessibility
    Under Display, move the slider labeled "Enhance Contrast" all the way to the left (Normal)
    You should now have alternating row colors back!

  • Alternate row highlighting for library and playlist display

    I recently upgraded to iTunes 7 from an old version (4). The old version had a readability feature that appears to be lacking in 7 -- library and playlist contents had alternate rows highlighted subtly. As I have a high screen resolution and use many columns, this highlighting was very useful to me.
    Does anyone know if there is a way to turn this on for iTunes 7?
    Thanks,
    Per
      Windows XP Pro  

    I don't think the source bar ever had the alternate bars, and the library still has it. It does seem to be much more subtle than before, though. Have you tried adjusting the contrast on your monitor?

Maybe you are looking for

  • I cannot open PDF document in Photoshop CS

    Hello, I have a problem with Photoshop CS (Photoshop 8)... When I tray to open a page of an PDF (not PSD) document in Photoshop a message it show me at the begining:  Could not complete your request because is not enough memory (RAM) That PDF documen

  • Problem in Changing the Query of LOV using Forms Personalisation

    Hi all, I have a problem while trying to change the LOV of job field in the people--> assignment form. I am trying to do through forms personalisation. I defined all the rquired fields: Following are the description of fields Idescribed in the form P

  • Router Problems

    Hi people... I wanted to set up a wireless network off the back of my 10mb Virgin Cable connection, so I bought a Belkin (F6D4230-4) Wireless Router today - Mac compatible obviously. It installed fine. Speaks to the Virgin Cable modem perfectly. I ha

  • BPC Custom Menu

    Hi We have created a Custom Menu in SAP BPC V5.1 SP7, BPC for Excel . When we run it, each time we open a report or schedule accessed from the custom menu it does not automatically expand and refresh on open so does not update the current view.  We n

  • Pixels size of photos

    I recently bought an iMac and the Genius guys transferred everything over from my PC. I emailed a couple of photos of my house to my real estate agent and she said they arrived as 640 x 480. I am certain that they were taken with a 7 megapixel camera