Webi Alternate Row Colour

Hi experts,
I have a webi report which colour lines must have alternate colours. I customized that on the table proporties, in webi, but it's not working... is there some kind of trick to activate alternate row colours?
Thanks you.
Cheers!
Inê

If you change "Alternate Row/Column colors"property of block then it should applied for that particular block only.
If you want other colors for other blocks then do the same steps.
Frequency is by default 2. Which tells us the applied color should show alternatively, and 3,4, etc..., follows like that.
FYI if you change property of a block and insert new objects then you can't see colors again for the same block.
Manually you need to do it again to appear.
Eg:
if i individually insert say 5 rows to block and drag unique report variables to each row, the alternative colours are not coming up.
How to acieve this?
This is the problem, the alternate row fucntion works for a row which have more than one value. In your case you have different variables for each row then you have to do it manually. Remember that if you have more than one value for any variable the second row of that variable will be 255,255,255. By default first row gets the alternate color. You get the same alternate color for all 5 rows because it's first row of all the 5 variables.
One trick is give alternate color as 239,239,239 for first row and 255,255,255 for second and so on.
Hope you got me.
Gracias...!!

Similar Messages

  • Alternate row colours in dynamic tables?

    Hi all,
    I know that alternate row colors are easily accomplished on static tables using class styles. Does any one know if this can be implemented on pages that dynamically display multiple records?

    Yes, it's very easy to do. The actual coding depends on your server-side language. The basic principle is to use the modulo operator (%) with a counter that's incremented with each iteration of the loop.
    Modulo division produces the remainder of a division sum. So, if you use modulo division on the counter, and divide the counter by 2, the result will alternate between 1 and 0, which can be used to determine which class to apply to the current row.
    In PHP:
    <?php $i = 0;
    <?php do {
    <tr <?php if($i++ % 2) {echo 'class="hilite"';} ?>>
    <!-- rest of code -->
    </tr>
    <?php } while ($row_recordsetName = mysql_fetch_array($recordsetName)); ?>
    Create a style rule for all table rows, and a different one for the hilite class. Stripes.

  • Alternate row different dynamic BGcolor

    I cannot find the way to handle the Dynamic BgColor
    change....
    Because in my calender report got 600 field each fields
    depend on the flag to change the Bgcolor...
    i found the lousy way is each field have to set a duplicate
    color field overlap the data fields(set transparent)...then the
    color field
    set in the property "Print when" qeury.Flg eq 1 then show
    color.....
    is it got anyway like the HTML + CFM to set every alternate
    row set the BgColor...?
    if dun have choose i need to use this lousy way...
    i Need helps...

    utardylan wrote:
    > THX FOR UR replyed Daverms...
    > Actually i also using such way to make it....
    > bcoz i have 600++ query.fields in my report....so it too
    tedious to use this
    > way...
    >
    > So i'm finding the easy way to set it...
    >
    > but anyway thanks for ur reply
    >
    assuming you want to alternate 2 colours of rows returned by
    your query:
    <cfoutput query="yourquery">
    <table>
    <cfif yourquery.currentrow MOD 2 is 1>
    <cfset bgc = "##cccccc">
    <cfelse>
    <cfset bgc = "">
    </cfif>
    <tr style="background-color:#bgc#;">
    <td></td>
    <td>...
    </tr>
    </cfoutput>
    </table>
    Azadi Saryev
    Sabai-dee.com
    Vientiane, Laos
    http://www.sabai-dee.com

  • 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.

  • 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]

  • Highlight every alternate row

    Hi,
    I have 2 queries, one for master and one for detail linked.
    In my paper layout, for my detail group I need to highlight every alternate row.
    I tried with creating a summary column in detail group
    and assigned formula as 'count' and selected reset group as the detail group, but i don't know what to assign for the source.
    also help me how the formatting trigger goes.
    thanks
    asha

    Hi Asha,
    There may be several ways to achieve this - "to highlight every alternate row" in your detail group.
    Here is just one example that I have tested - based on 2 linked queries (1 master and 1 detail).
    In your detail query, add the following column:
    mod(rownum,2)"Seq"
    to your SQL statement.
    This will give you values of 0 or 1 for alternate rows. ie row 1 "seq" will have a value of 1 and row 2 will have a value of 0, etc. This column does not need to be displayed in the layout.
    Now, you can add the following format trigger for each of the columns in the detail group:
    begin
    -- Automatically Generated from Report Builder.
    if (:mod_rownum_2 = '0')
    then
    srw.set_foreground_fill_color('red');
    srw.set_fill_pattern('solid');
    end if;
    return (TRUE);
    end;
    The above code was generated by using conditional formatting, setting the colour to "red".
    Hope the above helps.
    Regards,
    John

  • How Alternate rows to be colored  in an ALV Grid report?

    How Alternate rows to be colored  in an ALV Grid report?

    hi,
    try this
    TABLES:     ekko.
    TYPE-POOLS: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
      line_color(4) TYPE c,     "Used to store row color attributes
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          gd_tab_group TYPE slis_t_sp_group_alv,
          gd_layout    TYPE slis_layout_alv,
          gd_repid     LIKE sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
      PERFORM data_retrieval.
      PERFORM build_fieldcatalog.
      PERFORM build_layout.
      PERFORM display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    FORM build_fieldcatalog.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'EBELP'.
      fieldcatalog-seltext_m   = 'PO Item'.
      fieldcatalog-col_pos     = 1.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'STATU'.
      fieldcatalog-seltext_m   = 'Status'.
      fieldcatalog-col_pos     = 2.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'AEDAT'.
      fieldcatalog-seltext_m   = 'Item change date'.
      fieldcatalog-col_pos     = 3.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material Number'.
      fieldcatalog-col_pos     = 4.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'MENGE'.
      fieldcatalog-seltext_m   = 'PO quantity'.
      fieldcatalog-col_pos     = 5.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'MEINS'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      fieldcatalog-col_pos     = 6.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-datatype     = 'CURR'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      fieldcatalog-fieldname   = 'PEINH'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      fieldcatalog-col_pos     = 8.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
    ENDFORM.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
          Build layout for ALV grid report
    FORM build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-info_fieldname =      'LINE_COLOR'.
    ENDFORM.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    FORM display_alv_report.
      gd_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = gd_repid
          is_layout          = gd_layout
          it_fieldcat        = fieldcatalog[]
          i_save             = 'X'
        TABLES
          t_outtab           = it_ekko
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
      DATA: ld_color(1) TYPE c.
      SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
       UP TO 10 ROWS
        FROM ekpo
        INTO TABLE it_ekko.
    *Populate field with color attributes
      LOOP AT it_ekko INTO wa_ekko.
    Populate color variable with colour properties
    Char 1 = C (This is a color property)
    Char 2 = 3 (Color codes: 1 - 7)
    Char 3 = Intensified on/off ( 1 or 0 )
    Char 4 = Inverse display on/off ( 1 or 0 )
              i.e. wa_ekko-line_color = 'C410'
        ld_color = ld_color + 1.
    Only 7 colours so need to reset color value
        IF ld_color = 8.
          ld_color = 1.
        ENDIF.
        CONCATENATE 'C' ld_color '10' INTO wa_ekko-line_color.
    wa_ekko-line_color = 'C410'.
        MODIFY it_ekko FROM wa_ekko.
      ENDLOOP.
    ENDFORM.                    " DATA_RETRIEVAL

  • How to show alternate rows in different colors?

    How to show alternate rows in different colors?
    Thanks

    you should put these kind of stmt in the if condition for even row and odd row
    <xsl:attribute xdofo:ctx="block" name="background-color">yellow</xsl:attribute>
    this should help you
    Re: About highlight row
    http://blogs.oracle.com/xmlpublisher/2007/08/09
    http://garethroberts.blogspot.com/2007/09/bi-publisher-color-list-and-cell.html

  • How to get all rows in table to red using alternate rows properties option

    How to get all rows in table to red using alternate rows properties option

    Hi Khrisna,
    You can get all rows red by selecting the color red in the "Color" and "frequency" to 1 under the "Alternate Row/Column colors".
    I tried doing it and the colors freaked me out (all red) :-D
    Kindly tell me if im missing something.
    Regards,
    John Vincent

  • Using alternate rows with Spry Data Set

    Can anyone provide more information on how to implement alternate row colors with a Spry Data Set?  What I have done is:
    Create spry data set using HTML page as the data set
    The html page that displays the data set is:  <div spry:region="equipment">
    In the default.css page that is linked, I added the info in note #1 below
    When the page displays, no colors appear. Tried changing the colors and still no luck.  Is there another step to do?
    Note #1:
    within the default.css, the following are declared:
    #equipment odd {
    background-color: #CCC;
    #equipment even {
    background-color: “#F2F2F2;
    Note #2:
    Here is a link to see the actual pages referenced above.
    Any ideas? Getting frustrated!!  Thanks in advance for any advice.

    You are going to kick yourself, but, you haven't assigned any page element the ID #equipment. The region is called that but the table or the DIV does not have an idea and your selector matches nothing...

  • 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.

  • Hiding webi report row in output context

    Hello,
    I wanted to know if there is a way to hide a webi report row. ( I am not interested in filtering at query level).
    Now for example, say a query returns say
    USA 800
    UK 200
    APAC 100
    JAPAN 50
    Now i want to hide the row with JAPAN in the report output context. I am wondering if this is possible using some formulae.
    I am not interested in hiding data with say alerter and cell color, that will only create an empty row look when exported to PDF or Excel.
    Thanks in advance for your help.

    Hi,
    Yes it is possible if you write down a formula in that column.
    If "Country" = "JAPAN" then ""
    This will show nothing in the column and thn you can set column property to hide if there is nothing.
    Regards,
    Bashir Awan

  • Alternate rows with different number of columns in JTable or similar

    Hi Guys,
    I have tried searching google and these forums, but have not been able to find what I am looking for.
    Looking for ideas, on how to do the following
    I have a swing application, that I would like to have alternate rows
    eg.
    1st row has 10 columns
    2nd row has 1 column, that expands all 10 columns of the 1st row
    and keeps alternating like this for the rest of the records in the table.
    Is there a special JTable that can do this for me, or has anyone had to do this before.
    Thanks,
    Mac

    an example of merging cells is here
    [http://www.crionics.com/products/opensource/faq/swing_ex/JTableExamples4.html]
    scroll down to 'Multi-Span Cell'
    run the program, highlight some cells, click combine.
    if that's the type of thing you're after, modify your code per what's in 'combine'
    note: the original code (now) produces a stack overflow error (don't know if it's been fixed in the above link),
    but if you get that error, in AttributiveCellTableModel's setDataVector( Vector newData, Vector columnNames )
    change
    setColumnIdentifiers(columnNames);
    to
    columnIdentifiers = columnNames;

  • Alternate Row Shading or Formatting

    Hello,
    I have a report in which I want to shade the backgroud color for alternate rows.  More specifically, I'm trying to do this for a group footer (the details are suppressed and the group footer is the most detailed level displayed).  When I do this, not every other line is shaded.  Sometimes it is three in a row, sometimes once, etc.  I'm assuming this is because groups with a $0 value are suppressed.  This is the formula I'm using:  
    if (recordnumber mod 2) > 0 then Color (238,238,238) else crwhite
    Any suggestions would be greatly appreciated.
    Thanks,
    Dan

    Try this
    //Place this formula in the  group header/footer section that you with to be shaded and only in that group
    Whileprintingrecords;
    global numbervar shading;
    shading := shading + 1
    ///place the following formula in the section expert for group footer/header you wish to shade
    Whileprintingrecords;
    global numbervar shading;
    if remainder(shading,2)=1 then Color (238,238,238) else crwhite

  • How to shade alternate rows in deski

    Hi all,
    I am new to business objects. I have a requirement from the client that I need to differentiate the alternate rows by different shadings.
    Can anyone help me out.
    Thanks & Regards,
    BO

    larryc wrote:
    Yes... The value of LineShading is 1.00 for every row...
    Something is strange, then. I use this Code:
    =Mod(LineNumber() , 2)
    all the time, and it should work okay. Not to beat a dead horse, but are you absolutely sure that's the calculation that you are doing?
    If Linenumber() is working, then the Mod() function should be fine. But here's an alternate calculation you can try...
    Code:
    =If (Even(LineNumber())) Then 1 else 0
    That should also give you alternating rows, based on whether the Line Number value is even or not. Perhaps give that a try...
    All the best,
    Praveen

Maybe you are looking for

  • TRUNC function for DATE

    Another thread from today made me think of the basics of TRUNC function used for DATEs. I am confused about what it acutally does. This is what Oracle Documenations says about TRUNC function without format (like 'DD-MON-YY') "If you omit fmt, then da

  • Report for Investment reason

    Any report where in i can get Investment reason (IZWEK) against each WBS. It appears in dynamic selection in hierarchy reports, but not available as output in any of the reports. tx

  • IMac 27" (mid 2010): Will replacing the HD cause fan problems?

    Hi, I have an iMac 27" (mid 2010). My HD is broken, and I'd like to replace it. I've already installed an SSD, so replacing the HD shouldn't be much of a problem. However I've read that replacing the HD causes the fan to spin up all the time. Some si

  • 3rd Generation iPod Touch with white.

    i have a 3rd generatin ipod touch and it has a white screen. what do i do with it?

  • Need to know how to place a tiling image in the div tags

    Let me see if I can explain what I want to do in a way that makes sense. I have created a box using the <div> I want a background image I made in photoshop that has rounded corners. I need this image to stretch or tile the length and width of the box