Color format upon condition in RTF

Hi
will anyone help me in this issue i've a column i want when it be a negative value to display its font in red . how can i apply that in rtf template ???

See this related thread - BI Publisher conditional formatting
Srini

Similar Messages

  • Between condition in rtf

    hi all,
    can i have between condition in RTF. i'm trying to use <?if:+ExpirationDate+ between StartDate and EndDate ?> but doesn't work.
    any idea about this?
    please share your experience.thx
    rgrds,
    dityo

    No,
    There is no syntax called Between.
    But you can use, > and < , if the dates are in canonical format.

  • How to set colors on some condition in barchart

    Hi,
    I want to design a crystal report with a barchart. I should specify the color of the bar based on some conditions, this colornames are maintained in the database. I tried using chart expert -> color highlights,
    is there any other way to set the color of the bar?
    Regards,
    Deepa V

    Hi Deepa,
    In charts Color Highlight is the only way to conditionally change the color of the riser bars.
    You can use multiple conditions at a time in color highlight.
    To change the color directly you can right click the bar and select the Format Series Riser and change the color (but not conditionally)
    Regards,
    Aditya Joshi

  • ALV rows coloring based on condition

    Hai ,
    I want Color the rows in the list based on some condition ..
    Hope to get the helpful suggestion s on this asap
    regards,

    Hi shishupalreddy,
    1. Not only the full row color,
      we can also manipulate the color in each cell,
      based upon conditions.
    2.
    IMPORTANT THINGS
    a. Extra field in internal table
    clr TYPE slis_t_specialcol_alv,
    (this field will contain the colour codes)
    b. assign fieldname to alv layout
    alvly-coltab_fieldname = 'CLR'
    c. work area for colour
    DATA : clrwa TYPE slis_specialcol_alv.
    d. Populating the color
    Once again
    Loop at ITAB.
    *********logic
    if itab-field < 0 "---negative
    clrwa-fieldname = 'FIELDNAME'. "<--- FIELDNAME FOR COLOR
    clrwa-color-col = 6. <------- COLOUR 0-9
    APPEND clrwa TO itab-clr.
    MODIFY ITAB.
    endif.
    ENDLOOP.
    5. just copy paste in new program
    6.
    REPORT abc .
    NECESSARY / MUST
    TYPE-POOLS : slis.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    DATA : alvly TYPE slis_layout_alv.
    ITAB DECLARATION
    DATA : prg TYPE sy-repid.
    DATA : BEGIN OF itab OCCURS 0.
    INCLUDE STRUCTURE t001.
    DATA : clname(3) TYPE c,
    clr TYPE slis_t_specialcol_alv,
    END OF itab.
    DATA : clrwa TYPE slis_specialcol_alv.
    PARAMETERS : a TYPE c.
    DATA : flname TYPE slis_fieldname.
    SELECT
    START-OF-SELECTION.
    SELECT * FROM t001
    INTO CORRESPONDING FIELDS OF TABLE itab..
    LOOP AT itab..
    IF SY-TABIX <= 5.
    itab-clname = 'C50'.
    ELSE.
    itab-clname = 'C30'.
    ENDIF.
    MODIFY itab.
    ENDLOOP.
    LOOP AT ITAB.
    check itab-bukrs = '1000'
    clrwa-fieldname = 'BUTXT'.
    clrwa-color-col = 6.
    APPEND clrwa TO itab-clr.
    MODIFY ITAB.
    clrwa-fieldname = 'LAND1'.
    clrwa-color-col = 4.
    APPEND clrwa TO itab-clr.
    MODIFY ITAB.
    ENDLOOP.
    prg = sy-repid.
    flname = 'CLNAME'.
    alvly-info_fieldname = 'CLNAME'.
    alvly-coltab_fieldname = 'CLR'.
    LOOP AT ITAB.
    if sy-tabix = 3.
    clrwa-fieldname = 'BUTXT'.
    clrwa-color-col = 6.
    APPEND clrwa TO itab-clr.
    MODIFY ITAB.
    clrwa-fieldname = 'LAND1'.
    clrwa-color-col = 1.
    APPEND clrwa TO itab-clr.
    MODIFY ITAB.
    endif.
    ENDLOOP
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = prg
    i_internal_tabname = 'ITAB'
    i_inclname = prg
    CHANGING
    ct_fieldcat = alvfc
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    minimum
    *CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    it_fieldcat = alvfc
    TABLES
    t_outtab = itab
    EXCEPTIONS
    program_error = 1
    OTHERS = 2
    extra
    sy-uname = 'XYZAB'.
    prg = sy-repid.
    Excluding
    DATA : excl TYPE slis_t_extab.
    DATA : exclwa TYPE slis_extab.
    exclwa = '&OUP'.
    APPEND exclwa TO excl.
    exclwa = '&ODN'.
    APPEND exclwa TO excl.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    it_fieldcat = alvfc
    i_callback_program = sy-repid
    is_layout = alvly
    i_callback_user_command = 'ITAB_USER_COMMAND'
    it_excluding =
    excl
    i_save = 'A'
    TABLES
    t_outtab = itab
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    *& Form itab_user_command
    text
    -->WHATCOMM text
    -->WHATROW text
    FORM itab_user_command USING whatcomm TYPE sy-ucomm whatrow TYPE
    slis_selfield.
    BREAK-POINT.
    ENDFORM. "itab_user_command
    regards,
    amit m.

  • Using OR condition in RTF Template

    Hi,
    How to use OR condition in RTF?
    say for example,consider the EMP table.
    I want to show the employees of department 10 and 20 in my XML Publisher report.
    How can i write --
    if deptno = 10 or deptno =20 in RTF template

    you can add the condition in RTF template
    <?if:XMLfield=30 or XMLfield=10 ?> to display <?end if?>

  • In competitive exams photo in "true color" format.... How to do it in adobe photoshop please replay it.....

    In competitive exams photo in "true color" format.... How to do it in adobe photoshop>>> please replay it.....

    Mayuk, you are not making any sense here.
    True color (24-bit)
    "True Color" redirects here. For images with natural color rendition, see true-color.
    http://en.wikipedia.org/wiki/File:Truecolor.png 24 bits (16,777,216 colors, "truecolor")
    True color supports 24-bit for three RGB colors. It provides a method of representing and storing graphical-image information (especially in computer processing) in an RGB color space such that a very large number of colors, shades, and hues can be displayed in an image, such as in high-quality photographic images or complex graphics. Usually, true color is defined to mean 256 shades of red, green, and blue, for a total of 224 or 16,777,216 color variations. The human eye can discriminate up to ten million colors.[13]
     Color images composed from 3 grayscale images A, B & C assigned to R,G & B in different orders.
    "True color" can also refer to an RGB display-mode that does not need a color look-up table (CLUT).
    For each pixel, generally one byte is used for each channel while the fourth byte (if present) is being used either as an alpha channel, data, or simply ignored. Byte order is usually either RGB or BGR. Some systems exist with more than 8 bits per channel, and these are often also referred to as true color (for example a 48-bit true-color scanner).
    Even with true color, monochromatic images, which are restricted to 256 levels, owing to their single channel, can sometimes still reveal visible banding artifacts.
    True color, like other RGB color models, cannot express colors outside of the gamut of its RGB color space (generally sRGB).
    Macintosh systems refer to 24-bit color as "millions of colors".
    RGBA color space, or 32-bit color, is a variant of true color in which the additional 8-bit is allocated to transparency and indicates how transparent is the element to which the color is assigned, when overlaid on other elements.

  • Color formatting in SSAS

    Using SQL Server 2008 R2:
    I have a star schema with a fact table containing the following:
    ID BIGINT IDENTITY, FK_Dimension1 BIGINT, FK_Dimension2 BIGINT,
    dataValue NUMERIC(20, 8), classification NVARCHAR(20)
    The classification defines the security classification for each dataValue, and can contain either "public" or "confidential".
    I've created a degenerate dimension which contains the classification field, and the dataValue resides in the associated measure table.
    My requirement is to format the dataValue in any tool that is rendering the data as RED if any value in the aggregation of that field contains an associated classification of "confidential". So for example if in an excel pivot table I was displaying
    the aggregation of 3 values and one of them was confidential then the value should display as red text.
    I have the following MDX query in my cube calculations to handle the formatting:
    CALCULATE;
    SCOPE
    [Measures].[dataValue]
    If([MyDegenDimension].[Classification].[Confidential]) Then
    Fore_Color(This) = 255
    End If;
    END SCOPE;
    This works great whenever there are values in the dataValue field other than zero. If I drill down in my pivot table to show a single value that happens to be zero then the color formatting does not apply. The business requirement is that any confidential value
    should be flagged as red, and it's valid that a zero value could be confidential. Note it displays the dataValue as red even if the classification dimension is not used in the pivot table.
    Is there any way I can alter my MDX query so that it works for zero values as well?

    Hi Greg,
    According to your description, you need to set the measure value to red when associated classification measure value is "confidential", right?
    In your scenario, there is a classification value for each record, right? In this case, you can create a measure based on classification, then set the DataValue measure value's color based on the classification measure. Here is the sample query for you reference.
    CREATE MEMBER CURRENTCUBE.[Measure].[X] AS [Measures].[DataValue]
    , FORE_COLOR=IIF([Measures].[Classification]="confidential", RGB(255,0,0), RGB(0,0,0))
    , BACK_COLOR=RGB(255,255,255)
    , FONT_SIZE=10
    , FORMAT_STRING='#,#.000'
    Reference
    http://msdn.microsoft.com/en-IN/library/ms145573.aspx
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Scanning conflict   Acrobat 9 pro   "Color Format Selected Not Supported"

    I have had several conflicts with Adobe Acrobat 9 and my HP C5180 printer/scanner/copier.   I have downloaded new drivers from HP.   When I try to create  a PDF from the scanner,  I get this conflict warning:   "Color Format Selected Not supported".    So, I change the color format selections in both HP and Acrobat and I still get the warning.    I must admit I haven't tried the black and white color format.  But I want to scan simple color images.  No luck.  
    Has anyone else had such a problem?

    This may have nothing to do with your problem, but -- at least with Acrobat 8, there is a 100MB limit to the scanned image. Are you trying to scan something larger than that?

  • Unable to apply color formatting to document library custom view using javascript

    Hello,
    I have applied color formatting to some values in Document library at "Allitems.aspx" page.
    Created one view where record of library displaying as per sort rule and trying to apply the color formatting on that view, but its not getting apply.
    also tried to insert that list as web part in one page with the same view(created by me) and tried applying color..but not working.
    I used below script for color formatting, included in script editor web part:
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function()
    $Text = $("td.ms-cellstyle.ms-vb2:contains('Very limited risk - acceptable A')");
    $Text.css("background-color", "#7FFF00");
    $Text = $("td.ms-cellstyle.ms-vb2:contains('Measures Required (in 6 months) - M')");
    $Text.css("background-color", "#D2691E");
    $Text = $("td.ms-cellstyle.ms-vb2:contains('Immediate measures required - I')");
    $Text.css("background-color", "#6495ED");
    $Text = $("td.ms-cellstyle.ms-vb2:contains(Stop work until measures are taken - S)");
    $Text.css("background-color", "#DC143C");
    </script>
    Could please suggest a way out.
    Thanking you in advance.
    Regards,
    Jayashri

    Hi Jayashri,
    Follow the steps to debug your JS code, preferable in IE browser
    Press F12 to open your developer tool
    Select Script tab
    Search for your code, set debugger point by clicking on the left extreme position on line numbers
    Click on Start debugging at top, if its not there in your browser just refresh the page, it will hit the debug point.
    Hope it will help you in debugging your code, if you need any further details about debugging this, mail me @
    [email protected]
    Thanks
    Shakir

  • RGB vs. CMYK color formats

    I have an HP6600 and want to print in RBG color formating, not sure if default might be CMYK ??  colors are not printing in the proper colorations in pdf files received using RBG formating designs.  Can anyone advise??  Can this be viewed or changed in this printer?

    Hi moll4,
    Welcome to the HP Support Forums! I understand you would like to print in RBG color formating, but would like to know if the default is CMYK.
    To get a better understanding, take a look here: Overview of Advanced Color Management
    Support for ICC profiles is available in printer driver version 5.1 and later. ICC enables profile-based color management solutions. ColorSync and Windows ICM are specific implementations of ICC color management. For more general information on ICC color management, please see www.color.org.
    I hope this helps!
    Thanks,
    HevnLgh
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • I receive the error "The Selected Color Format is not supported" when I try to scan from my HP Office Jet Pro 8610.

    I receive the error "The Selected Color Format is not supported" when I try to scan from my HP Office Jet Pro 8610 using Adobe Acrobat Pro 11. I recently purchased the printer. I believe I ame using all of the defaults. How can I correct the problem?

    Hi,
    Both printer and computer seem to be on same network.
    Please download and run the following utility to troubleshoot on the issue.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03275041&cc=us&dlc=en&jumpid=reg_r1002_usen_c-0...
    Also download and install the firmware update from the link below.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=mp-89897-4&cc=us&dlc=en&lc=en&...
    Although I am an HP employee, I am speaking for myself and not for HP.
    --Say "Thanks" by clicking the Kudos Star in the post that helped you.
    --Please mark the post that solves your problem as "Accepted Solution"

  • Forcing RGB24 color format instead of YUV12

    Hi,
    I have problems with the colors when capturing from an Avermedia card (Conexant chipset). I have made several test and I am able to reprocude the same behaviour when usen VLC capturing in YUV12 color format. When I use RGB24 in VLC the colors are rigth.
    It seems to me that FMLE is capturing in YUV12 (also from what I have read in the forums), but in the FAQs says that it supports RGB24 capture cards. Is there any way of force FMLE to use RGB24?
    Best regards
    Sergio

    plz see
    R12: Request Logs Contain the Message "REP-0004: Warning: Unable to open user preference file" [ID 1120529.1]
    Concurrent Processing - Concurrent Reports Failing With Errors REP-0004,REP-0082 and REP-0104 [ID 844976.1]
    R12: Executing a Report fails with REP-0004: Warning: Unable to open user preference file. [ID 1303903.1]
    also
    - xml output is correct?
    - what type of execution method for cp?
    - when you run cp the template picked up for cp?

  • How to save jTextPane colored format save to html file?

    ok, I've been able to implement my stuffs using such example:
    http://www.java2s.com/Code/Java/Swing-JFC/JTextPaneStylesExample2.htm
    so now that my jTextPane has colored format. How do I allow user to save this to a file? Not a plain text file but a formated file such as html or doc?

    Use HTMLEditorKit's write() method and pass your document in the method.
    Regards,
    Stas

  • Conditional Row formatting not working in RTF

    Hi Everyone,
    Using the code from the documentation, I have managed to get every other row in my report to highlight, but only when displayed in a PDF. It doesn't come out with any row formatting when viewed as an RTF.
    Can anyone explain why this is, or how I can get the RTF to how the formatting as well??
    The code I am using is from page 6-90 from the documentation, in the "for-each ROW" text field formatting options:
    <?if@row:position() mod 2=0?><xsl:attribute name=”background-color” xdofo:ctx="incontext">#D9D9D9</xsl:attribute><?end if?>

    Ok, thank you for your reply.
    I think it is a bug, because, if I remember correctly, the example we mentioned is within a section about RTF templates, so it should work.
    Anyway, I found a workaround. Based on the example where the CASE switch is used: you just draw all the posible formats (including background color) for the rows in your table in your template and conditionally display the correct format for each row. You can use 'IF' instead of 'CASE' (I personally find it easier).
    I hope this helps.
    Greetings.

  • Conditional color formating in SSRS 2005

    Hi
    I have a report with customers bill amount and bill date. The customers have to pay within a grace period of 21 days after bill date
    I want to conditionally format the bill_date column so that when the number of days after the 21 days grace period is within 7 days then no color,30 days then blue, 61-90 days then Red
    Thanks a lot
    Please very urgent
    CRM Manager

    Hi!
    I have almost the same doubt.
    Have a date time field, what i need is to change the BackgroundColor if the date
    exceeds 6 months or another background if exceeds 1 year.
    Obviously i have to compare the date shown on my report with the
    current date.
    I know that i have to use an expression in the BackgroundColor property of textbox.
    Thanks !!!
    Please need help!!

Maybe you are looking for