Changing color of report result in column

I've seen a number of examples in these forums to use a CASE statement to return the result from a select into a CSS mark up structure to change the display attributes of the result depending on a particular condition.
I've not seen a way to make it work when assigning the CASE statement to a plsql VARCHAR2. Any suggestions on how to fix this (I think it's issues with quoting)? The APEX error I get is; +"Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. "+
The problem only occurs with the CASE structure in place. If replaced with i.QUANTITY_AVAILABLE (to just get the value), it works just fine.
Here is the code.
declare
   l_query varchar2(4000) := '';
begin
   l_query := '
     select i.INVENTORY_ID,
            io.ORDER_QUANTITY,
            CASE
               WHEN i.QUANTITY_AVAILABLE=0
               THEN ''<span style="color:red;"> ''|| i.QUANTITY_AVAILABLE ||''</span>''
               ELSE i.QUANTITY_AVAILABLE
            END,
            i.QUANTITY_AVAILABLE qty_avail_hold,
            i.STRAIN_CODE,
            i.STRAIN_NAME,
            i.GENOTYPE,
            i.AGE,
            i.SEX,
            (lower(substr(i.ROOM_NUMBER,1,instr(i.ROOM_NUMBER,''-'',1,1)-1))) ROOM_NUMBER
     from   SM_INVENTORY i,
            SM_INVENTORY_ORDER io
     where  io.ORDER_ID (+)= :F111_MODIFYING_ORDER
     and    io.INVENTORY_ID (+)= i.INVENTORY_ID';
return l_query;
end;Many Thanks!
Paul
Edited by: pgtaviator on Nov 3, 2009 10:24 AM
Edited by: pgtaviator on Nov 3, 2009 10:24 AM

Hi,
Try
declare
   l_query varchar2(4000) := '';
begin
   l_query := '
     select i.INVENTORY_ID,
            io.ORDER_QUANTITY,
            CASE
               WHEN i.QUANTITY_AVAILABLE=0
               THEN ''<span style="color:red;"> ''|| i.QUANTITY_AVAILABLE ||''</span>''
               ELSE TO_CHAR(i.QUANTITY_AVAILABLE)
            END,
            i.QUANTITY_AVAILABLE qty_avail_hold,
            i.STRAIN_CODE,
            i.STRAIN_NAME,
            i.GENOTYPE,
            i.AGE,
            i.***,
            (lower(substr(i.ROOM_NUMBER,1,instr(i.ROOM_NUMBER,''-'',1,1)-1))) ROOM_NUMBER
     from   SM_INVENTORY i,
            SM_INVENTORY_ORDER io
     where  io.ORDER_ID (+)= :F111_MODIFYING_ORDER
     and    io.INVENTORY_ID (+)= i.INVENTORY_ID';
return l_query;
end;

Similar Messages

  • Change color on Report Painter

    Dear gurus.
    Pls give idear about Report painter.
    Now I am making comparson report between planned data and
    actual data on report painter in order to check variance between them.
    Column1: Planned data
    Column2: Actual data
    Column3: Variance between Column1 and 2
    Then, I want to change the font color of Column3 only in
    case that the variance over the criteria such as 10,000 $.
    Do you know how to do it on report painter?
    I don't care whether "Change color" or "make font Bold" or "Font blinking".
    My purpose is to give warning to report's readers which record
    they have to read carefully.
    BR
    yoshitada

    Dear Sadashivan
    Thanks for your info.
    I tried the way you mentioned.
    However, the thing I want to do is not to change the font color of specified column.
    The thing I want to do is to setup the threshhold such as percentage or amount
    and emphasize the data which over the threshhold by changing the color
    automatically.
    Thanks anyway.
    BR
    Yoshitada

  • Column order is changed in criteria tab ,result tab column order unchanged

    I created a report in sample database with these columns in 11.1.1.6
    1- C50 Region 2 D1 Office, 3 P1 Product 4 1-Revenue and 5 C1 Customer Name
    Hit Results and I can see the result in this order.
    If I change column order in result tab to say 1,5,2,3,4, result tab table view is updated. Now if I go back to criteria tab, column order remains the same ( 1,2,3,4,5)
    This may be expected functionality in 11.1.1.6 but was not the case in 10g. This may be due to changes allowed in html layer.
    Now if I go back to criteria tab and reorder columns (say 1,3,2,4,5) and then click result, result tab columns are not ordered as set here. Result tab continues to show 1,2,3,4,5
    I saved the report with order 1,3,2,4,5 and log back in, order remains 1,2,3,45/ I believe if I restart presentation services, it will be come OK. The only way is to create a new report that I know now other than restarting presentation service.
    Question
    Have you observed this?
    If yes, what is the solution, how can result tab refresh with the order of the columns in criteria tab?
    Bhupendra

    Hi,
    In OBI 11g,the column order in the criteria tab and the results tab are not coupled to each other.
    When you create the report for the first time, both are in sync. If you need to reorder the columns, goto result tab and click on edit report, in the columns and measures section of the report, reorder the columns the way you desire.
    Save the report and the report should have the columns in the order you have set.
    P.S : this is not a bug !
    Thanks,
    Vineeth

  • Change color records report

    Hi,
    Is there a way to change the color of records based on a condition item?
    For example i want to change to red the records that have 'D' and to green those that have 'C'.
    'C' and 'D' values come from the query from database column SIGN.
    thnks

    Here is an example that really works. I got it from an article on the web:
    Query:
    select empno,ename,sal,
    case when sal < 1000 then 'red'
    when sal between 1000 and 2000 then 'purple'
    when sal > 2000 then 'green'
    end the_color
    from emp
    Navigate to
    Report Attributes > Column Attributes for “SAL” > Column Formatting > HTML Expression
    Enter: <span style="color:#THE_COLOR#;font-weight:bold;">#SAL#</span>
    Also, since, the_color is part of your query you can uncheck the "Show" checkbox for the field called the_color via Report Attributes

  • Change color of data in a column

    Hello experts,
    i am trying to change the color of data being displayed in a column based on the condition that it the value is 0 then it should be in red
    i have tried the following but it does not work.
    when-validate-item trigger on data block level
    if forecast_cnt = 0 then
    SET_ITEM_PROPERTY('FORECAST_CNT',foreground_color,'R255g0b0');
    end if;Am i doing something wrong?

    Hello,
    Might be the value you are checking is having null. How about trying like this?
    if NVL(:forecast_cnt,0) = 0 then
      SET_ITEM_PROPERTY('FORECAST_CNT',foreground_color,'R255g0b0');
    else
      SET_ITEM_PROPERTY('FORECAST_CNT',foreground_color,'R0g0b0');
    end if;-Ammad

  • Change color in alv column

    how do change color of a column in ALV.

    Hi
    The below abap program shows how to change the colour of individual ALV cells /fields. Only a small number of changes are required from a basic ALV grid which include adding a new field to ALV data declaration table(it_ekko), populating this field with the field name identifier and colour attributes and finally adding an entry to layout control work area. These changes are highlighted in bold below.
    REPORT  zdemo_alvgrid                 .
    REPORT  ZALV_CELLCOLOR.
    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,
      CELLCOLOR TYPE LVC_T_SCOL,
    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,
          gt_events     type slis_t_event,
          gd_prntparams type slis_print_alv.
    *Start-of-selection.
    START-OF-SELECTION.
      perform data_retrieval.
      perform build_fieldcatalog.
      perform build_layout.
      perform set_cell_colours.
      perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you  more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
                  I.e. Field type may be required in-order for
                       the 'TOTAL' function to work.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
    fieldcatalog-do_sum      = 'X'.
    fieldcatalog-no_zero     = 'X'.
      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-do_sum      = 'X'.
      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-totals_text       = 'Totals'(201).
      gd_LAYOUT-coltab_fieldname = 'CELLCOLOR'.  "CTAB_FNAME
    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
                i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
               i_callback_user_command = 'USER_COMMAND'
               i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
               it_special_groups       = gd_tabgroup
              it_events               = gt_events
              is_print                = gd_prntparams
                i_save                  = 'X'
               is_variant              = z_template
           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.
      select ebeln ebelp statu aedat matnr menge meins netpr peinh
       up to 10 rows
        from ekpo
        into CORRESPONDING FIELDS OF TABLE it_ekko.
    endform.                    " DATA_RETRIEVAL
    Form  TOP-OF-PAGE                                                 *
    ALV Report Header                                                 *
    Form top-of-page.
    *ALV Header declarations
      data: t_header type slis_t_listheader,
            wa_header type slis_listheader,
            t_line like wa_header-info,
            ld_lines type i,
            ld_linesc(10) type c.
    Title
      wa_header-typ  = 'H'.
      wa_header-info = 'EKKO Table Report'.
      append wa_header to t_header.
      clear wa_header.
    Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      CONCATENATE  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) INTO wa_header-info.   "todays date
      append wa_header to t_header.
      clear: wa_header.
    Total No. of Records Selected
      describe table it_ekko lines ld_lines.
      ld_linesc = ld_lines.
      concatenate 'Total No. of Records Selected: ' ld_linesc
                        into t_line separated by space.
      wa_header-typ  = 'A'.
      wa_header-info = t_line.
      append wa_header to t_header.
      clear: wa_header, t_line.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = t_header.
               i_logo             = 'Z_LOGO'.
    endform.                    "top-of-page
    *&      Form  SET_CELL_COLOURS
          Set colour of individual ALV cell, field
    FORM SET_CELL_COLOURS .
      DATA: WA_CELLCOLOR TYPE LVC_S_SCOL.
      DATA: ld_index TYPE SY-TABIX.
      LOOP AT IT_EKKO into wa_ekko.
        LD_INDEX = SY-TABIX.
      Set colour of EBELN field to various colors based on sy-tabix value
        WA_CELLCOLOR-FNAME = 'EBELN'.
        WA_CELLCOLOR-COLOR-COL = sy-tabix.  "color code 1-7, if outside rage defaults to 7
        WA_CELLCOLOR-COLOR-INT = '1'.  "1 = Intensified on, 0 = Intensified off
        WA_CELLCOLOR-COLOR-INV = '0'.  "1 = text colour, 0 = background colour
        APPEND WA_CELLCOLOR TO wa_ekko-CELLCOLOR.
        MODIFY it_ekko from wa_ekko INDEX ld_index TRANSPORTING CELLCOLOR.
      Set colour of NETPR field to color 4 if gt 0
        if wa_ekko-netpr gt 0.
          WA_CELLCOLOR-FNAME = 'NETPR'.
          WA_CELLCOLOR-COLOR-COL = 4.  "color code 1-7, if outside rage defaults to 7
          WA_CELLCOLOR-COLOR-INT = '0'.  "1 = Intensified on, 0 = Intensified off
          WA_CELLCOLOR-COLOR-INV = '0'.  "1 = text colour, 0 = background colour
          APPEND WA_CELLCOLOR TO wa_ekko-CELLCOLOR.
          MODIFY it_ekko from wa_ekko INDEX ld_index TRANSPORTING CELLCOLOR.
        endif.
      Set colour of AEDAT field text to red(6)
        WA_CELLCOLOR-FNAME = 'AEDAT'.
        WA_CELLCOLOR-COLOR-COL = 6.  "color code 1-7, if outside rage defaults to 7
        WA_CELLCOLOR-COLOR-INT = '0'.  "1 = Intensified on, 0 = Intensified off
        WA_CELLCOLOR-COLOR-INV = '1'.  "1 = text colour, 0 = background colour
        APPEND WA_CELLCOLOR TO wa_ekko-CELLCOLOR.
        MODIFY it_ekko from wa_ekko INDEX ld_index TRANSPORTING CELLCOLOR.
      ENDLOOP.
    ENDFORM.                    " SET_CELL_COLOURS

  • Change cell color of query results,font size,style

    Change cell color of query results,font size,style
    Hello
    I have this code below and I want to know if it is possible
    to make the column header a font style different
    Example:
    Font size =12
    Verdena
    blue
    And the cell of the column name a different color for ex
    Yellow
    Can this be done here and where in this code do I put it??
    Thank you so much
    <cfquery name="gelov datasource="kl90">
    SELECT
    FROM
    WHERE
    ORDER BY
    <cfswitch expression="#Form.orderBy#">
    <cfks value="KSNUMBER">
    KS.KS_NBR
    </cfks>
    <cfks value="CREATIONDATE">
    KS.KREATDAT
    </cfks>
    </cfswitch>
    </cfquery>
    <!---html report--->
    <cfswitch expression="#Form.outputFormat#">
    <cfks value="HTML">
    <!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=iso-8859-1" />
    <title>Ctwye Kss Report</title>
    </head>
    <style type="text/css">
    table{
    font-family:Arial, Helvetica, sans-serif;
    font-size:10px;
    td{
    font-family:Arial, Helvetica, sans-serif;
    font-size:10px;
    th{
    font-family:Arial, Helvetica, sans-serif;
    font-size:10px;
    h2{
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    h3{
    font-family:Arial, Helvetica, sans-serif;
    font-size:13px;
    </style>
    <body>
    <cfoutput>
    <table border="0" cellpadding="3" cellspacing="0">
    <tr>
    <td align="center">
    <h3>Ctwye Kss
    Report</h3><br><br></td>
    </tr>
    <tr>
    <td align="center">
    </h2>report returned #getCtwyeKss.RecordCount#
    records</h2></td>
    </tr>
    <tr>
    <td>
    <table border="1" cellpadding="2" cellspacing="0">
    <tr>
    <td width="160">Ks Number</td>
    <td>K-date</td>
    <!--- <td class="dataField">Address</td>
    <td class="dataField">Type</td>
    <td class="dataField">Description</td>--->
    </tr>
    <cfloop query="getCtwyeKss">
    <tr bgcolor="<cfif currentrow mod
    2>GHOSTWHITE<cfelse>WHITE</cfif>">
    <td>#KS_NBR#</td>
    <td>#dateformat(KREATDAT,"mm/dd/yyyy")#</td>
    </tr>
    </cfloop>
    </table>
    </td>
    </tr>
    </table>
    </BODY>
    </HTML>
    </cfoutput>
    </cfks>
    <cfks value="CSV">
    <CFHEADER NAME="Content-Disposition" VALUE="attachment;
    filename=ctwye.csv">
    <cfcontent type="application/msexcel">"Ks
    Number","K-date"
    <cfoutput
    query="getCtwyeKss">#ltrim(KS_NBR)#,"#dateformat(KREATDAT,"mm/dd/yyyy")#"
    <tr #IIF(getCtwyeKss.CurrentRow MOD
    2,DE(''),DE('backgroundColor="##999"'))#>
    <!---<tr bgcolor="<cfif currentrow mod
    2>##808080<cfelse>##ffffff</cfif>"> --->
    </cfoutput>
    </cfks>
    </cfswitch>

    By using <TH> instead of <TD> on your header row
    you can then specify different font type and size in your CSS code.
    th{
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    I'm guessing this is your header?
    <tr>
    <td width="160">Ks Number</td>
    <td>K-date</td>
    <!--- <td class="dataField">Address</td>
    <td class="dataField">Type</td>
    <td class="dataField">Description</td>--->
    </tr>
    If so, change these <TD> to <TH>
    <tr>
    <th width="160">Ks Number</th>
    <th>K-date</th>
    <!--- <th class="dataField">Address</th>
    <th class="dataField">Type</th>
    <th class="dataField">Description</th>--->
    </tr>

  • Change source (sql) of interactive report based on column value?

    I've got an Interactive report displaying 10 columns. What I'd like to do is show different columns depending on the value of the first column. All the rows in the result will have the same value in the first column.
    If value in column 1 (on any row) = 'aaaa' then
    display columns 1,2,3,4, 9, 10
    If value in column 1 (on any row) = 'bbbb' then
    display columns 1,2,3,4, 7, 8
    If value in column 1 (on any row) = 'cccc' then
    display columns 1,2,3,4, 5, 6
    Should i somehow make the sql query dynamically change or can I use apex to dynamically hide the columns I don't want in the interactive report?
    Appreciate if you could point me in the right direction...
    /A

    Hello Andy,
    You can solve that in your SQL query:
    select col1, col2, col3, col4
    ,   case col1
        when 'aaaa' then col9
        when 'bbbb' then col7
        when 'cccc' then col5
    end newcol5
    from tableYou may have to use to_char or to_number conversions when the datatypes of the col5,7 and 9 are different.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Change font color in reports depending on condition

    I have an application that generates a number of new records at
    the click of a button, which the user can then modify through
    several report-form links. My users have requested that the data
    appear in one color in the reports if they have not yet updated
    the records, and that they change color, permanently, when
    updated. I'm not sure how to accomplish this. I do well with
    PLSQL, but I think this is probably a Javascript issue(?) - or
    is it possible to specify font color of a report when you call a
    URL?
    Any ideas anyone?

    Thank you, both Michaels. I was excited. I was sure this would
    work, so I added the updated_by fields to all my reports (they
    should be useful anyway). I worked on a couple of other issues
    related to this, and returnred this morning to add the HTML font
    tags to my report queries. I CAN'T MAKE IT WORK! I've attached
    my code, and error message. Any thoughts on what I'm doing
    wrong? Thanks.
    (Note: The query works fine without the HTML tags.)
    My code:
    select '<font color=red>'||activity.act_text||'</font>' act_text,
    from Activity, survey, temp
    where activity.survey_id = survey.survey_id and
    survey.survey_id = temp.survey
    Error message:
    Unable to describe SQL statement. Please correct it (WWV-13010)
    Invalid SQL statement: SELECT '<FONT
    COLOR=RED>'||ACTIVITY.ACT_TEXT||'</FONT>' ACT_TEXT, FROM
    ACTIVITY, SURVEY, TEMP WHERE ACTIVITY.SURVEY_ID =
    SURVEY.SURVEY_ID AND SURVEY.SURVEY_ID = TEMP.SURVEY (WWV-13005)
    ORA-01001: invalid cursor (WWV-11230)
    ORA-00936: missing expression (WWV-11230)
    Failed to parse as MCHBGA - SELECT '<FONT
    COLOR=RED>'||ACTIVITY.ACT_TEXT||'</FONT>' ACT_TEXT, FROM
    ACTIVITY, SURVEY, TEMP WHERE ACTIVITY.SURVEY_ID =
    SURVEY.SURVEY_ID AND SURVEY.SURVEY_ID = TEMP.SURVEY (WWV-08300)
    I appreciate your help. I'm tearing my hair out.
    Karli

  • Change row's color in report painter

    Hi all!!!
    anybody knows how change row's color in report painter,
    for example
    number   name        |  money          
       7020   payments1 | 100.00   
       7021   payments2 | 200.00
        summary            |  300.00
    change color of row  "7020   payments1" and "7020   payments1"
    Regards!!!

    Hi,
    For it, first place the cursor on the row and choose Formatting > Row. In the next dialog box, select a color (for totals, subtotals, inserted rows, or for emphasis). The system assigns a color based on the selection you make here.
    Regards,
    SDNer

  • How do i change the color of a JTable's column names

    hai,
    i'm very new to java and trying to customize the look of a JTable.
    how do i change the color of a JTable's Column names. i know its very simple, i just couldn't figure out how to do it!!
    thanx in advance

    table.getTableHeader().setForeground(Color.RED);

  • How to change colors of individual column bar in the same data series

    in mac numbers, how to change colors of individual column bar in the same data series. The entire column series gets selected in the column bars and cannot select to change colors of specifc bars.

    Hi Kiran,
    no its not possible through Theme editor also ,because these colors are coming from Compiler which u are using.
    Regards,
    Govindu

  • How do I change color of hyperlink search results in WebHelp Pro?

    I'm trying to figure out how to change the color of search result hyperlinks when using WebHelp Pro in RH8. The links currently are vibrant blue and purple after clicked on. I can't find anywhere in the style sheet or in the skin editor options to define this. Any help would be greatly appreciated.

    In your .css file, use something like the following; the "A:" would be your default link, and the "A.topic:" would be a different class of link (we use it for some in-topic navigation links). Note that the order in which the qualifiers appear is important. Follow the LoVeHate method (Link, Visited, Hover).
    Feel free to try it and use your own combinations (you might not want the expanded letter-spacing, for example). We also reversed the underline format from the default html (none for link and visited, underline for hover).
    A:link,
    A:visited {
    color: #0000CD;
    letter-spacing: 0.25pt;
    text-decoration: none;
    A:hover {
    color: #000080;
    letter-spacing: 0.25pt;
    text-decoration: underline;
    You would add the class=topic qualifier to your links for this class of link (a class=topic href="targettopic.htm")
    A.topic:link,
    A.topic:visited {
    color: #0000CD;
    font-size: 8pt;
    font-weight: normal;
    margin-left: 10px;
    margin-top: 0pt;
    margin-bottom: 0pt;
    letter-spacing: 0.25pt;
    text-decoration: none;
    A.topic:hover {
    color: #000080;
    font-size: 8pt;
    font-weight: normal;
    letter-spacing: 0.25pt;
    margin-top: 0pt;
    margin-bottom: 0pt;
    margin-left: 10px;
    text-decoration: underline;
    Good luck,
    Leon

  • Style to change color of single column in list

    Hi,
    I need to get below functionality in results list. need to break part of sentence to another line with different color.
    How to achieve this.
    Thanks & Regards,
    Siva

    Hi
    check this solution
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/1f2f74b6-9260-4dc4-a093-a36947e1eb29/is-it-possible-to-add-colored-text-to-a-list-column-description?forum=sharepointgenerallegacy
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Reporting: Change Color on Prompt fields

    I need to know if we can change color options for prompt fields?
    Thanks,
    Rick

    Regarding prompt feild no idea.
    We can change the colour of that data which comes after prompting parameter.
    I mean  you have created a parameter Country then you can change the colour of field based on parameter by writing formula.
    Right click on field-> Format field->Font tab->on color clik on X-2
    write formula if {?My parameter}="USA" then red
    Have a look to Sample reports:
    [Crystal Reportsample |https://boc.sdn.sap.com/crsamples]
    Hope that helps!!
    Regards,
    Shweta

Maybe you are looking for

  • How to get Report Builder to print a section on the same page

    I have a section of my report that is three bands. A header band, the detail band, and a total line band. Sometimes this section will get split up and print part on the next page. So basically I need for this section to print on the same page. I know

  • HT2729 How can I move a rented movie from my iPhone4s to my computer?

    I am tryingt to move a movie I rented on my iphone4s to my macbook so I can watch it on a bigger screen but cannot figure it out!

  • How to search a word in PDF using acrobat javascript?

    Hi, I need to find a word in acrobat PDF using javascript. I used find text("abx"); select text("abx"); This doesn't work for me.. Someone guide me. Thanks in advance, Poovili V

  • Release strategy for Quotation

    pl let me know my requirement is whoever (sales guy) creates quotation thru va21, the same is to be approved or released by superior and then only the quotation is sent thru mail or pdf format to customer. this is required to avoid unnecessary commit

  • Hide menu bar in Webgui of HTML

    Hi, Can you please let me know how to hide the menu bar in WEBGUI of HTML. I have to hide the menu bar for an ALV Report which i have created in SRM 5.0 which i am going to publish in SRM Web interface . Also please let me know after hiding menu bar