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

Similar Messages

  • Change color of key field in salv_table

    Hello,
    this is my first post in scn. This community helped me a lot so far.
    Now i have a problem with the SALV. I can change the color of normal fields but not of key fields. I changed the attribute like this:
    INCLUDE <color>.
         lv_col-col = col_negative.
         TRY.
             lo_column ?= lo_columns->get_column( 'AUFNR' ).
             lo_column->set_key( ' ' ).
             lo_column->set_visible( 'X' ).
             lo_column->set_edit_mask( ' ' ).
             lo_column->set_color( lv_col ).
           CATCH cx_salv_not_found.
         ENDTRY.
    TRY.
             lo_column ?= lo_columns->get_column( 'RSDAT' ).
             lo_column->set_key( ' ' ).
             lo_column->set_color( lv_col ).
           CATCH cx_salv_not_found.
         ENDTRY.
    He get the correct column and changes set_key from 'X' to ' ' but the color is still blue. Maybe anyone has an idea what to change on the column object.
    Thanks in advance

    Hi Marco,
    Try to change the key field to normal like this :
    lo_column->set_key( if_salv_c_bool_sap=>false ).
    Regards,
    Tanmay

  • Changing color of a field after changing the data using OOPS ALV.

    Hi Experts,
    I have displayed three fields (price, no. of products and total amount) in my ALV grid using OOPS.
    Then am changing the data in either price or no. of products fields. When I click ENTER key the value in total amount changes correspondingly. Am able to achieve till this point.
    Now I have to change the color of the three fields( price, products and total amount) of the affected row alone and not the entire set of rows in the output grid.
    Please provide suggestions.
    Thanks in advance.

    Hi,
    You have to use Layout and Output data in your OO ALV. The below code is using FM you can replicate it in OO ALV
    types: begin of t_data,
             flg(3) type c,
             sty    type lvc_t_styl,
             col    type lvc_t_scol,
           end of t_data,
           t_tdata type table of t_data.
    constants: c_red type i value '255',
              c_g   type i value '1'.
    DATA: i_fcat type LVC_T_FCAT,
          s_fcat type lvc_s_fcat,
          s_lay  type lvc_s_layo,
          s_sty  type lvc_s_styl,
          s_col  type lvc_s_scol,
          i_data type t_tdata,
          s_data type t_data.
    s_lay-stylefname = 'STY'.
    s_lay-CTAB_FNAME = 'COL'.
    s_fcat-FIELDNAME = 'FLG'.
    APPEND s_fcat to i_fcat.
    CLEAR: s_data.
    s_data-flg = 'Yes'.
    s_sty-FIELDNAME = 'FLG'.
    s_sty-style = CL_GUI_ALV_GRID=>MC_STYLE_HOTSPOT.
    insert s_sty into TABLE s_data-sty.
    s_col-fname = 'FLG'.
    s_col-color-col = 6.
    s_col-color-inv = 1.
    insert s_col into table s_data-col.
    APPEND s_data to i_data.
    CLEAR: s_data.
    s_data-flg = 'No'.
    s_sty-FIELDNAME = 'FLG'.
    s_sty-style = CL_GUI_ALV_GRID=>MC_STYLE_HOTSPOT_NO.
    insert s_sty into TABLE s_data-sty.
    APPEND s_data to i_data.
    CLEAR: s_data.
    s_data-flg = 'No'.
    s_sty-FIELDNAME = 'FLG'.
    s_sty-style = CL_GUI_ALV_GRID=>MC_STYLE_HOTSPOT_NO.
    s_col-fname = 'FLG'.
    s_col-color-col = 6.
    insert s_col into table s_data-col.
    insert s_sty into TABLE s_data-sty.
    APPEND s_data to i_data.
    CLEAR: s_data.
    s_data-flg = 'Yes'.
    s_sty-FIELDNAME = 'FLG'.
    s_sty-style = CL_GUI_ALV_GRID=>MC_STYLE_HOTSPOT.
    insert s_sty into TABLE s_data-sty.
    APPEND s_data to i_data.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
    EXPORTING
       IS_LAYOUT_LVC                     = s_lay
       IT_FIELDCAT_LVC                   = i_fcat
      TABLES
        T_OUTTAB                          = i_data
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2
    IF SY-SUBRC <> 0.
    ENDIF.
    Thanks,
    Kiruba

  • Report Designer change color

    I created a report using Report Designer and would like to change color of the field base on the data criteria.
    I want to add code using Report Function, but I am not sure how to enter code there and which language I can use.
    Can you please advise me a example how to do the task?
    Your help and information is great appreciated,
    Regards,
    Iccsi

    Hi,
    it's a setting...
    just select the section you want to change to another place, and then select the tabpage "properties"
    There you have an option : 'position'
    The first section in your report (top of page) has position 1, the second position 2...
    So if you want to swap the last section to the first place, just change the position to 1...
    Ciao!
    Joke

  • Simple way to change color of field in an interactive report

    Is there a simple way with css to change the color of a field in an interactive report. I want certain fields to stand out.
    Can you provide an example and where the code is inserted in APEX? TY.

    jfr620 wrote:
    Is there a simple way with css to change the color of a field in an interactive report. I want certain fields to stand out.On what basis?
    The appearance of cells based on the report structure can be controlled using CSS: +{message:id=10373505}+
    Conditional formatting based on cell values is better handled using the built-in highlighting, or Dynamic Actions/JavaScript, which provide better separation of concerns than generating HTML in the query: +{message:id=10493230}+
    (For even better separation, use the Dynamic Action to apply <tt>class</tt>es rather than setting style properties directly, and use separate CSS rules to apply the formatting.)

  • How to Change color on control break fields

    I have created a master detail report. I then did a control bread on the three fields below. I would like to change the color of the break to blue instead of the standard black. What settings or method would I use to change the color on the control break line to blue? TY.
    Request Seq No : 1, Employeee Name : Steve , Supervisor Name : Alex
    John

    Those navbar links are generated by javascript and are not user editable. You can create your own navbar using a Text Based Navbar and then have complete control over font (stick with the Web Safe Fonts), color, size and rollover colors.
    Cyclosaurus has posted an HTML snippet that can change the font style of the navbar of each page that the snippet is applied to. You can find it here: http://discussions.apple.com/message.jspa?messageID=8596966#8596966. This page tells how tol change the navbar test to all caps: http://discussions.apple.com/thread.jspa?messageID=8523772#8523772.
    And the following code, again courtesy of Cyclosaurus will change the rollover color of the navbar on any page the snippet is added to:
    HTML Widget to change rollover color for this page in the navbar above to orange The code used, courtesy of Cyclosurus, is:
    <script type='text/javascript'>
    styleCSS = 'div#widget0 li a:hover{color: orange;}'; // change color to your liking;
    eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[func tion(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'e(c)'\\b','g'),k[c]);return p}('1=2.3.5(\'6\');1.4.7=\'8/9\';1.4(\'a\',\'b\');1.c=d;2.3.e(\'f\')[0].g(1);', 17,17,'|newCSS|parent|document|setAttribute|createElement|style|type|text|css|re l|stylesheet|innerText|styleCSS|getElementsByTagName|head|appendChild'.split('|' ),0,{})); </script>
    You can see an example of that in this demo page: Misc. Items.
    OT

  • How do I get a field to automatically select a value and change color based on another automatic field?

    Here is the situation:
    I have a row on a form called Finding Risk Rating. In this row are four fields: Probability, Severity, Risk Rating, Color.
    Probability is a drop down menu with the following values: 1, 2, 3, 4, 5
    Severity is a drop down menu with the following values: A, B, C, D, E
    Risk Rating is a field that I have a custom calculation script:
    var riskRating = this.getField("Probability").value+this.getField("Severity").value;
    event.value = riskRating;
    So, when I pick Probability = 1 and Severity = D, Risk Rating will automatically change to 1D, etc. This works fine on the surface as far as I can tell.
    The part where I am stuck, is the fourth field Color.
    Ideally, I want Color to be automatically populated depending on the value of Risk Rating. For example, for 1E I would want it to say "YELLOW" and the field to change color to yellow. For 1A it would be "GREEN" with the color green, etc.
    I tried doing an if else for all cases, but it never refreshes to the correct value. I then checked using app.alert to see what fields riskRating and colorRank are (see code below), and I noticed that riskRating never changes, even though the value in Risk Rating changes. Is there a way to order script(s) so that if I execute one, the other will follow? I'm new to scripting for forms and haven't done any programming in 10+ years, so feel free to rip my code in favor or something more efficient, or direct me to a good resource I can learn from.
    Here's the basis of what I have for scripting on Color. It's brief because I wanted to test it out before writing every 'if else' statement.
    var colorRank;
    var riskRating = this.getField("Risk Rating").value;
    if (riskRating = "1E") colorRank = "YELLOW";
    else if (riskRating = "1A") colorRank = "GREEN";
    else if (riskRating = "5A") colorRank = "RED";
    event.value = colorRank;
    app.alert("colorRank = " + colorRank + ", riskRating = " + riskRating);
    Any help is appreciated. Thanks!

    One problem is if more than one combo box item has the same number associated with it, you cannot simply set the export value to the corresponding number since they need to be unique (or the user interface behaves weird). One thing you can do is set up an object to associate a list item with a value, and look up the value in code when a list item is selected.
    For more information, see: http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle

  • 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

  • Report needed: Customer master TAXKD field changes

    We are looking to track changes made to TAXKD (tax code) in customer master.   Is there any report we could generate weekly that would detail changes made to the field. 
    Also, we'd like what change was made.  (i.e. customer number, date, field changed from 0 to 2)
    Thanks,
    Michelle

    Hi Michelle,,
    Those changes will be recorded in the CDHDR and CDPOS tables with your field name based on the dates..
    and also with the Old value and the New value
    from the CDPOS
    pass
    OBJECTCLAS = 'DEBI'.
    OBJECTID      =  Your document number "optional
    TABNAME    =  'KNV1.
    FNAME       =   'TAXKD'.
    if you pass these thins you will get the in the fileds VALUE_NEW and VALUE_OLD
    hope these informatino useful to you.
    Thanks
    Edited by: Prasanth on Apr 13, 2009 7:40 PM

  • Color Changes in Spry Data Fields

    Hi All,
    I'm new to Javascript & PHP  programming. Currently I have coded neccesary apperances for the Web  Page and also Spry Data Set to read an external XML date source file.
    What I need  to do is one of the fields, needs to have color based status changes  based on certain data or criterias received.
    For example,
    I have a  Spry Table displayed on my browser,
    Name
    Current  Status
    Lane
    Jane
    6  Mins
    1
    Peter
    Boarding
    2
    Sally
    Arriving
    3
    Alex
    Delayed
    4
    With the  above, what I need is when the current status show in minutes, the text  color will be white (This has been coded with CSS Style)
    For the  Current Status color changes, when I received anything apart from  minutes, the display will be as of below :-
    Minutes = Black
    Boarding  = Red
    Arriving = Green
    Delayed = Yellow
    My question  is can this be coded with just Javascript, HTML and normal CSS
    OR
    This  needs to be coded in PHP, ASP ?
    I'm not familiar with ASP and only have very  little knowledge of PHP. If anyone here have some experience with this,  can offer some advice on how I can apply this theory into my existing.  And if possible some code example would be great.
    Thanks.

    I have tried many times on Ben's method and it didn't work.
    I have also tried the method from Adobe's documentation site.
    Method 1
    <ul spry:region="dsStates" spry:if="{ds_RowCount} != 0" spry:repeat="dsStates" spry:test="'{name}'.match(/^[amn]/i);" spry:choose="choose">
         <li spry:when="'{name}'.match(/^n/i);" style="color: red;">{name}</li>
         <li spry:when="'{name}'.match(/^m/i);" style="color: blue;">{name}</li>
         <li spry:when="'{name}'.match(/^a/i);" style="color: green;">{name}</li>
    </ul>
    Method 2
    <div spry:region="dsStates" spry:if="{ds_RowCount} != 0">
    <table border="1" spry:repeatchildren="dsStates" spry:test="'{name}'.match(/^[amn]/i);" spry:choose="choose">
         <tr spry:when="'{name}'.match(/^n/i);" style="background-color: red;"><td>{name}</td></tr>
         <tr spry:when="'{name}'.match(/^m/i);" style="background-color: blue;"><td>{name}</td></tr>
         <tr spry:when="'{name}'.match(/^a/i);" style="background-color: green;"><td>{name}</td></tr>
    </table>
    </div>
    Can anyone make it plain and simple of how the data source should look like ?
    I'm posting my source code here to make things easy.
    <!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" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    var KomtarETA = new Spry.Data.XMLDataSet("KomtarETA.xml", "komtareta/bus", {useCache: false, loadInterval: 100});
    </script>
    </head>
    <body>
    <div spry:region="KomtarETA">
      <table>
        <tr>
          <th>Route</th>
          <th>Current</th>
          <th>Destination</th>
          <th>Next</th>
          <th>Lane</th>
        </tr>
        <tr spry:repeat="KomtarETA">
          <td>{route}</td>
          <td>{current}</td>
          <td>{destination}</td>
          <td>{next}</td>
          <td>{lane}</td>
        </tr>
      </table>
    </div>
    </body>
    </html>
    The above is the HTML file I start working with.
    The {Current} field needs to have it's data periodically changing color & addition of flashing effect based on it's input from the XML data.
    So my question is how do I work about ? I don't quite get the explanation above.
    Thanks.

  • Compare 2 fields and change color when they do not match

    I have a form where I am totaling up 2 columns.  When all is said and done both totals should match, but if they don't I want to change the color of one field to red and display a message. 
    Thanks,
    Diane

    You can use the following custom calculation script for a hidden text field. Just make sure that it is after the other two fields in the field calculation order:
    (function () {
        // Get references to the two fields
        var f1 = getField("column1_total");
        var f2 = getField("column2_total");
        // Get the field values, as numbers
        var v1 = +f1.value;
        var v2 = +f2.value;
        // If the values don't match, set f2 text color to red, otherwise black
        if (v1 !== v2) {
            f2.textColor = color.red;
            app.alert("Column values don't match.", 3);
        } else {
            f2.textColor = color.black;
    This will work if you're summing integers, but not if you're summing real numbers, which is usually the case. For example, this is what JavaScript calculates for the following two additions:
    0.4 + 0.5 = 0.9
    0.3 + 0.6 = 0.8999999999999999
    This is due to the way floating point calculations are performed in JavaScript. In such a case, the code above will consider the two values to be different, even though they may display as the same value (e.g., 0.90) in the field. To deal with this, you can round each field value to a certain number of significant digits before you compare them, like this:
        // Get the field values, as numbers rounded to two decimal places
        var v1 = util.printf("%.2f", +f1.value);
        var v2 = util.printf("%.2f", +f2.value);
    and that should take care of it.

  • Re: Is it possible to change row colors on array fields ors

    HI Martin!
    Yes, it is possible to change row colors on array fields.
    I have attached a PEX (tools.pex) which has an object which changes FillColor
    and PenColor for Arrays. The PEX has it's own test window, so you can try
    various combinations. (There are a few other Objects in the Project which are
    not relevant
    I'm not sure that you can change colors on individual choices in a scroll list.
    I haven't tried playing around with it.
    The test window actually changes the color of scroll lists as well.
    The object keeps track of which rows have changed color, same with pen color, so
    that when you scroll it keeps track of which rows are a different colors.
    The pex is self-contained, just import the file and do a test run.
    Please let me know if you have any problems.
    -later
    -labeaux
    Is it possible to change row colors on array fields or scroll lists?
    I need to create a list field that will allow me to dynamically change the
    fillColor and/or penColor attributes of individual rows. (I just want to
    highlight the rows, and those seem to be the obvious attributes...) It appears
    you can't do that on scroll lists (the elements are list elements, and don't
    have those attributes) and I can't figure out how to do it on an array field
    either. Any ideas for how to accomplish this?
    -Martin ([email protected])

    FreshWebmuse,
    Version 2 of iCal has the "Group Calendar" feature. It was released as part of Mac OS X v10.4, and if you really want/need that feature you will have to upgrade to Tiger.
    ;~)

  • How change the report graph color in teststand

    how change the report graph color in teststand?

    Michael,
    You might also be able to customize the style sheet associated with the report. The TestStand Help provides some information about how to customize ATML or XML style sheets to change report colors based on the status of test steps.
    Please take a look at the following topics; are these helpful?
    ATML Report Style Sheets
    Modifying Cell Background Color Based on Step Status in ATML Test Results 5.0 Reports
    XML Report Style Sheets
    Modifying Cell Background Color Based on Step Status in XML Reports
    Tom
    TestStand Documentation

  • Unnecessary Report refresh on the dashboard when changing the dashboard prompts

    Hello All
    I have two reports on a dashboard with two dashboard prompts for example Report 1) Year, State, Count; Filter: Year is prompted 2) Year, State, Count; FIlter: State is prompted. On the dashboard we have two reports Report1) and Report 2) with Year and State dashboard prompts.
    The issue is when you change year prompt both the reports gets refreshed even though nothing changes on report 2 but it still dissapears and appears as it is refreshing and  the same happens with report 1 when i change the state prompt it refreshes that report.
    Please letme know how i can limit the dashboard prompt to refresh only the report where it is prompted.
    Thanks
    Ravi

    are you talking about the database table caching? if so we are using OLAP cubes and I am not sure if caching is disabled. Is my issue related to caching? also another updated if I have just one dashboard prompt for example just year  only report 1 refreshes and the report 2 doesn't disappear. But when I add state dashboard prompt, which ever prompt I change state or year  both reports refreshes. The problem is when I add more than one prompt on the dashboard all the reports refreshes when the dashboard prompt selection changes. Any ideas.
    Thanks

  • Print a new report whenever a change occurs to data field

    Post Author: goffj1
    CA Forum: General Feedback
    Please forgive my ignorance but this is my first experience with CR. 
    I have a dynamic dataset with multiple records.  Each records contains a TASK number that groups all the records relating to that TASK.
    Can I force a sperate printed report for each TASK number?
    I can do this with other reporting tools using group headers and such but so far how to do this in CR has eluded me.

    Post Author: pandabear
    CA Forum: General Feedback
    Goffj1,
    I'm not 100% sure I understand what you want, but this is what I think you want:
    Go to Reports/Group Expert
    Select the field "Task Number".
    Go to the Section Expert for the "Task Number" group you just created,
    and select "New Page After".
    This will separate each "Task Number" group by a page when you print.
    Under the "Task Number" group on the report, you can now add
    more groups or add more fields to the Details line as needed.
    Hope this helps,
    The PandaBear

Maybe you are looking for

  • Illustrator CS4 Running Extremely Slow

    We are running Illustrator CS4 (version 14.0.0) on a Mac Pro with OS 10.5.8. When we are working on files with a fair to large amount of linked, not embedded, images, the speed of Illustrator is DRAMATICALLY slower. We get the lovely beach ball with

  • Is it possible to package PDF files so that a single file appears as if it is located in multiple folders?

    I am currently working on a project for a client that contains numerous hyperlinked files. As an overview, there is a guidebook that contains several sets of activities. Each set of activities calls on two or more individual files that reside in fold

  • Best way to implement particularly Bex query

    Hi all, we are on Hana 7.31 and we have a particularly request about Bex. We have a DSO with the monthly income, the key are the ID (User ID) and 0calmonth, as ex ID   calmonth    income A1   012014       10000 A1   022014       10000 A1   032014    

  • PXA_NO_SHARED_MEMORY

    Dear Guys we are facing ABAP dump almost 1000+ can you please check and suggets solution Short text     600000 kilo bytes of shared memory for PXA not available. What happened?     When starting the R/3 System, 600000 Kbytes of storage space     was

  • Import movies - no sound

    I'm trying to import movies from my Sony HDD Handycam, If I import to iPhoto, the clips come in with no sound on playback. When I import to iMovie I get sound fine. I'd like the clips in iphoto really: how do I fix my sound issue? thanks Tim