Skinning af|messages background color based on error type

Hi,
I would like to skin background color of af|messages body depending on the message type. For example, if message raised is of type "Warning", I would like the af|messages body's background color to be yellow. If message raised is "Error", then I would like the background to be orange and if the message is of type "Info", then I would like background to be green.
I wonder if this is possible and if any has any idea on how to achieve this would be highly appreciated.
Thanks
Using JDeveloper 10.1.3 and Standalone OC4J 10.1.3.

Hi samsam,
You should post ADF questions to the JDeveloper & ADF forum: JDeveloper and ADF
I guess you get more help there...
Groeten,
HJH

Similar Messages

  • Change Column Header / Column Background color based on a value in a specific row in the same column

    SSRS 2012
    Dataset (40 columns) including the first 3 rows for Report layout configuration (eg: the <second> row specifies the column background color).
    Starting from the 4th row, the dataset contains data to be displayed.
    I would like to change the background color of the ColumnHeader/Column based on the value in the same column in the <second> row.
    How can I accomplish the this requirement? (this must be applied for all the columns)
    Thanks

    Hi Fasttrck2,
    Per my understanding that you want to specify the background color of all the columns/column header based on the value in one special column of the special row, right?
    I have tested on my local environment and you can add expression to condition show the background color in the columns properties or the column header properties.
    Details information below for your reference:
    Specify the background color in the Column header: you can select the entire column header row and in the properties add expression in the Background color :
    If you want to specify the background color for the entire column, you can select the entire column and add the expression, repeat to add background color for other columns.
    If you want to specify the background color based on the value in the specific columns and row, you can create an hidden parameter to get the list of values from the  specific column, specify the Available values and default values by select "Get
    values from a query", finally using the expression as below to get the specific value you want:
    Expression(Backgroud Color):
    =IIF(Parameters!Para.Value(1)="1221","red","yellow")
    If your problem still exists, please try to provide some smaple data of the report and also the snapshot of the report structure to help us more effective to provide an solution.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • How to set background color based on values in column grouping

    Hello,
    I have query
    select 1 as CustomerID,'Reality' as Type, 100 as Turnover
    UNION
    select 1 as CustomerID,'Budget' as Type, 120 as Turnover
    UNION
    select 2 as CustomerID,'Reality' as Type, 140 as Turnover
    UNION
    select 2 as CustomerID,'Budget' as Type, 120 as Turnover
    I have matrix, where in rows are customers, there is columngroup based on field Type and in details are summaries of Turnover. I need to change background color of Reality field, when lower than Budget. How can I do that please ?

    Hi volyn,
    After testing the issue in my own environment, we can use custom code to achieve your requirement. For more details, you can refer to the following steps:
    Copy the custom code below and paste it to your report. (Right-click report>Report Properties>Code)
    DIM PreviousValue AS Decimal
    Dim CustomerID AS String = ""
    Public Function  GetPreviousValue(byval Val as Decimal, byval CusID as string)  as Decimal
    DIM Local_PreviousValue AS Decimal
    IF CustomerID <> CusID THEN
    CustomerID  = CusID 
    PreviousValue  = val
    Local_PreviousValue  = 0
    ELSE
    Local_PreviousValue =  val - PreviousValue 
    PreviousValue  = val
    END IF
    return Local_PreviousValue 
    End function
    Click the cell which contains [Sum(Turnover)] value, modify the expression of BackgroundColor property to like this in the Properties Window: 
    =iif(Code.GetPreviousValue(Fields!Turnover.Value,Fields!CustomerID.Value)<0,"Brown","White")
    In this scenario, you can change Brown color to any color you like. The following screenshot is for your reference (I added some data to make it more clearly):
    If you have any other questions, please feel free to ask.
    Thanks, 
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Messages background color not saving

    I have about 15 computers and we use Messages as our in-house chat. We have different groups/areas/rooms assigned different background colors (it makes quick identification of where it's coming from easier). But we have an issue where some computers will randomly revert back to "Automatic", which is just grey.
    They are all updated, and I've changed color, closed Messages, and restarted all of them. What's odd is that, after a restart, the color will be saved, but then randomly revert on its own.
    Any thoughts on why, or how to fix it?

    Hi,
    In Mavericks the info is stored in the com.apple.ichat.plist in ~/Library/Preferences like it always was.
    However in Mavericks the Sandboxing used to protect apps uses a "Read and Write route" as it were, of ~/Library/Containers/com.apple.ichat/Data/Library/Preferences and then an Alias to the Original.
    There is also some link to ~/Library/Containers/com.apple.soagent/Data/Library/Preferences and some of the Original .plists in here that seems to relate to this new Helper app and Messages.
    I also find the colour of my Balloons (Background) does not always stick but tend to notice after I get a Message after  start up of the app (I had not pinned it down to being random).
    I have not been able to pin down the fact something is not Writing to the .plist properly.
    10:13 pm      Wednesday; August 20, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • CS6 #nav links change hover background color based on its position in series

    First post from a complete DW CS 6 novice on Win7.  Not knowing JavaScript or JQuery, I thought I would add simplest animation to a website navigation based on the two col fixed header footer design. The navigation links on the left <sidebar1> have been increased to 24, with a common link background in the default state.  When the cursor is passed over the links they would change background color to one of five given in the image placed in the jpeg image loaded as the 1st list item.  The image itself only acts as a color key to the five catagories of links directly below it, and is not hyperlinked.  The idea is that someone looking for new tools would need to hover down the nav links and only be concerned with the Yellow background ones, even if they appear in any random position down the list.  To give each link a color to start with would make <sidebar1> appear too colorful.
    I have David Powers' two dvd titles and was thinking of using a nth-of-type() .  It does not work.  Perhaps there are two sets of colons required (  a:hover:nth-of-type(4), a:active:nth-of-type(4) {background-color:#f00;}   ).  There is surely a way that would work but I do not know enough of DW and CSS at present to figure this out.
    Many thanks.

    I don't what menu system you're using, but you might be able to create some CSS classes to use in your menu like so:
    <ul>
    <li>a href="some-link.html" class="about">about link</a></li>
    <li>a href="some-link.html" class="new">new link</a></li>
    <li>a href="some-link.html" class="new_proc">new procedures link</a></li>
    <ul>
    CSS:
    li a.about:hover {background-color:gray}
    li a:new:hover {background-color:forestgreen}
    li a:new_proc:hover {background-color:lawngreen}
    and so on...
    Nancy O.

  • Af:table: defining row background color based on a condition

    I want to display log objects (priority, name, detail) in a tab.
    The background color must be green for priority "DEBUG" and red for priority "WARN".
    It seems that in the table component, we can only control the column aspect and the output text inside...
    I'have read some posts (Franck N.) and it seems not possible to have an action of the row (all columns) background color...
    What can be the workarround ? other <af:?> component ???
    Is it now possible with the new JDEV11 components ?
    <af:table partialTriggers="pollRefresh" emptyText="No items were found"
    value="#{backing_logviewer.logViewerList}" var="log"
    rows="50">
    <f:facet name="detailStamp"/>
    <af:column sortable="true" headerText="Prio" formatType="text"
    sortProperty="prio">
    <af:outputText value="#{log.prio}"/>
    </af:column>
    <af:column sortable="true" headerText="Cat" formatType="text"
    sortProperty="cat">
    <af:outputText value="#{log.cat}"/>
    </af:column>
    <af:column sortable="false" headerText="Msg" formatType="text">
    <af:outputText value="#{log.msg}"/>
    </af:column>
    <af:column sortable="false" headerText="Thread" formatType="text">
    <af:outputText value="#{log.thread}"/>
    </af:column>
    <af:column sortable="false" headerText="Info" formatType="text">
    <af:outputText value="#{log.info}"/>
    </af:column>
    <af:column sortable="false" headerText="Log Date" formatType="text">
    <af:outputText value="#{log.logDate}" converter="dateConverter"/>
    </af:column>
    <af:column sortable="false" headerText="Throwable"
    formatType="text">
    <af:outputText value="#{log.throwable}"/>
    </af:column>
    </af:table>

    Thanks for your answer.
    Your solution is not working but if i put the styleclass instruction in the outputText element, it is working...
    Is there any other solution ???... because in this solution, we are obliged to put this EL in each outputText element of the tab.
    <af:column sortable="true" headerText="Cat" formatType="text"
    sortProperty="cat">
    <af:outputText value="#{log.cat}" styleClass="#{(log.prio == 'DEBUG') ? 'bgDebug' : (log.prio == 'WARN' ? 'bgWarn' : '')}"/> </af:column>

  • Background color based on day of the week?

    I have a column filled with dates going from 1-1-2007 to 12-31-2007. Using the autofill it was easy getting the dates auto-filled in. The only trouble with the overview is that's rather hard to see which days belong to the weekend, and which belong to the workweek (forgive my english..).
    Is there a way to automatically color the background of a cell, based on that specific data?
    If not, is it possible then to create a pattern? like 5cells green, 2 cells red, 5 cells green, 2cells red.. etc. you get the point.
    I thank you in advance for your help!

    I solved the problem it seems. I'll leave it for others with this trouble:
    In make case I just made the first two weekend cells Blue. I made a selection of these cells + 5 extra (the 5 days during the week). Then I just take the rightlower corner and start dragging to the lowest cell, overwriting the current cells, making them still appear the same but now with a 2 blue colored cells every 7 cells.

  • Row background color in dataTable control based on criteria

    It is relatively straightforward to give a pattern of color to rows in a dataTable control, for instance to alternate colors from white to gray.
    However, I have not yet figured how the row background color could be decided based on data fields associated with each row. For instance, I would like to set the row background color based on the value of a boolean attribute associated with the row, e.g. white if value is false and gray if it is true.
    Is there an easy way to do this?
    Martin

    of the text, but not the whole cell. I need to find a
    way to change the span at the row level (on the <tr>
    tag). ANy ways to do this?
    MartinThis is a question of how to let the renderer adjust its behaviour depending on the current state of the model. My renderer changes the background for the selected row by changing the style class:
            writer.startElement("tr", table);
              if (table.getRowSelector())
                   if (table.isAtSelectedRow())
                        writer.writeAttribute("class", "selectedRow", null);
    etc.(of course, to be able to do this you must write your own renderer)
    erik

  • Can't update background color of library item.

    I used a library item as a nav bar on my site pages.  I have changed the background color of the pages, but a different, older, background color is overriding the new one.  I get this error message:
    making this change would require changing code that is locked
    Maddeningly, if I recreate the link, the lbi gets changed, not the page html.
    Here is the offending code:
    <!-- #BeginLibraryItem "/public/navbar/navbar.lbi" -->
                    <!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">
                    <style type="text/css">
    body {
        background-color: #7d142c;
                    </style>
                  <script type="text/javascript">
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
                    </script>
                    <body onload="MM_preloadImages('navbar2-ads-over.jpg','navbar2-brochures-over.jpg','navbar2-cat alogs-over.jpg','navbar2-exhibits-over.jpg','navbar2-logos-over.jpg','navbar2-web-over.jpg ','navbar2-about-over.jpg')">
                    <table width="521" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><a href="adspage.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','navbar/navbar2-ads-over.jpg',1)"><img src="navbar/navbar2-ads.jpg" alt="Ads" name="Image8" width="47" height="40" border="0" id="Image8" /></a><a href="brochurespage.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','navbar/navbar2-brochures-over.jpg',1)"><img src="navbar/navbar2-brochures.jpg" alt="Brochures" name="Image9" width="83" height="40" border="0" id="Image9" /></a><a href="catalogspage.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','navbar/navbar2-catalogs-over.jpg',1)"><img src="navbar/navbar2-catalogs.jpg" alt="Catalogs" name="Image10" width="83" height="40" border="0" id="Image10" /></a><a href="exhibitspage.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','navbar/navbar2-exhibits-over.jpg',1)"><img src="navbar/navbar2-exhibits.jpg" alt="Trade Show Exhibits" name="Image11" width="70" height="40" border="0" id="Image11" /></a><a href="logospage.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','navbar/navbar2-logos-over.jpg',1)"><img src="navbar/navbar2-logos.jpg" alt="Logos" name="Image12" width="61" height="40" border="0" id="Image12" /></a><a href="websitespage.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','navbar/navbar2-web-over.jpg',1)"><img src="navbar/navbar2-web.jpg" alt="Web Sites" name="Image13" width="93" height="40" border="0" id="Image13" /></a><a href="aboutus.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','navbar/navbar2-about-over.jpg',1)"><img src="navbar/navbar2-about.jpg" alt="About Us" name="Image14" width="84" height="40" border="0" id="Image14" /></a></td>
                      </tr>
                    </table>
                  <!-- #EndLibraryItem -->

    Thanks for the response, Ben.  The issue is now moot.  By running Find and Replace on the full site about six times, DW eventually decided to swap out all of the color codes.  There is obviously some underlying bug that bit me, but I'm good for now.

  • Combo Box Background Color Change

    I have a drop down combo box with Good, Fair, Poor as the selection options. I would like to change the background color based on each slection. That is change the color to Green when Good is selected, Yellow for Fair and Red for Poor.
    Any help is geatly appreciated.

    Hi;
    This isn't something FormsCentral supports.
    Thanks,
    Josh

  • Email background color selection - can't locate the option!

    Hi all,
      I have a BB 8830 running OS 4.2.2.148 on Verizon. I use the application BES Mailbox so I have my work BES email seperated from my personal Roadrunner email. Some time ago, I found a way to change the background color of email messages (one color for BES, a different color for the Roadrunner). Well, I'm sick of that now but I can't for the life of me figure out how to change/remove the background colors! Can any of you expert BB users help me out?
    Thanks,
    Marty
    Update!
    I found out on Crackberry forums how to do this! What a relief!!!
    Go to Options / Security Settings / General Settings / Message Background Colours...
    Message Edited by martym on 08-26-2008 04:00 PM

    I have a bold 9700 OS5.0, I do NOT have the General Settings folder under the Security Settings folder. I cannot for the life of me find the message background colors options.  help!

  • How do I set the background color of a page_item?

    I've been pasting "background-color:#5CD65C" in a number of places, like "HTML Table Cell Attributes" under the Label and the Element tabs, but get no results. Can anyone tell me how to set the background color of a cell, please?

    Hi Doug,
    Dynamic Actions is an alternative also, especially if it is conditional.
    Action Set Style
    Fire When Event Result Is True
    Style Name background-color
    Value #5CD65C
    Selection Type DOM Object
    DOM Object your item name
    Set your Condition Type and you have it.
    Jeff
    Edited by: jwellsnh on May 24, 2011 3:55 PM

  • ADF Messages and background color

    I'm using the ADF components and I need to know how to change the background color the the af:messages component.
    It's currently tied to the accent background color in the xss file, but I would like to make it something else. Anyone know what style to change in the xss file?
    Thanks.
    - Jeff

    Yeah, that skin selector will apply to all buttons with those classes. If you need to limit the styling based on EL, I would do something like this
    styleClass="#{condition ? 'trueClass' : 'falseClass'}"
    and in the skin this should be specific enough
    af|commandButton.trueClass {}
    If not, you would have to do something like this, but not 100% sure if that dot shouldn't have a space before it or be a colon possibly off the top of my head
    af|commandButton:text-only.trueClass

  • ADF Skin commandButton background color

    HI I use Jdev 11.1.2.3.0 I want to change the color of a commandButton I used:
    af|commandButton {color: orange;
                                  background-image: none;
                                     background-color:green;
    in (http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/commandButton.jspx)
    and followed this tutorial (https://blogs.oracle.com/shay/entry/styling_specific_adf_components_with)
    as shown in this picture (http://img820.imageshack.us/img820/7456/avc8.png)
    the icon button gets colored but not the actual commandButton obviously is not shown when I run it.
    My skin code:
    af|commandButton
      background-image: none;
      background-color: Fuchsia;

A: ADF Skin commandButton background color

Yeah, that skin selector will apply to all buttons with those classes. If you need to limit the styling based on EL, I would do something like this
styleClass="#{condition ? 'trueClass' : 'falseClass'}"
and in the skin this should be specific enough
af|commandButton.trueClass {}
If not, you would have to do something like this, but not 100% sure if that dot shouldn't have a space before it or be a colon possibly off the top of my head
af|commandButton:text-only.trueClass

Yeah, that skin selector will apply to all buttons with those classes. If you need to limit the styling based on EL, I would do something like this
styleClass="#{condition ? 'trueClass' : 'falseClass'}"
and in the skin this should be specific enough
af|commandButton.trueClass {}
If not, you would have to do something like this, but not 100% sure if that dot shouldn't have a space before it or be a colon possibly off the top of my head
af|commandButton:text-only.trueClass

  • Message balloon background colors

    Message incoming message balloon colors
    I noticed since upgrading to Mavericks some of the people messaging me have their balloon backgrounds with different colors. Some of the sender's backgrounds are gold, grey, blue and green...in addition to the default(?) clear.
    Is there any rhyme or reason why these backgrounds have different colors or are the colors randomly assigned to each person.
    Thanks!

    HI,
    These settings in the Preferences for the incoming stuff are the ones you need to look at:-
    Just to restate first.
    I changed my outgoing colour to that green.
    I left the font as Black in text colour.
    I chose Arial Black as I prefer the boldness of the text.
    If my Buddies (AIM, Jabber or Yahoo) have the same Settings for the Incoming stuff as I do (Automatic) then my chosen colour shows up in their Chat with me.
    They cna block my choices of Colour and Font style if they set Colours and Fonts here.
    IF a Buddy is using an App that does not specify a colour or Font then the incoming messages tend to be randomised  (Although there is alos a deliberate Random setting)
    An iPhone does not send colour.
    The colours seen on the iPhone depend if it is sending (or Receiving) iMessages or SMS.
    So,  AIM Buddies sending form the AIM app on  PC will be in this Category of uncoloured chats.
    As will Facebook Buddies posting from the Facebook page, same for GoogleTalk Buddies using their Web based Chat option on the Web Mail page.
    There are also a number of Mac compatible Jabber apps and AIM clients that don't send coloured "Balloons" or the Background style you are using.
    AS I have said iPhones don't send any colour or Font info in the Message/chats
    Here is a pic of a Group Chats from some years ago where some are Chosen colours and some are random.
    I hope this helps.
    8:51 pm      Wednesday; December 11, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Maybe you are looking for

    • Opening a project disables web server

      This is a problem on Windows XP running LV 8.6.1.  Also running MS IIS, which already occupies port 80. Browser of my choice is Opera 10.10 I am working on a legacy project, that I moved up from 7.1. Part of the features is the publishing of certain

    • Editing a Flash template

      I have a Flash website template I bought online.  I'm trying to edit the template within Flash, and I'm getting nowhere.  I'm an intermediate level photoshop user, but new to Flash.  I've spent the entire day trying to find useful information on the

    • Data being retrieve from PL/SQL is "???"

      Hi, I follow the sample code shown in getting the data of PL/SQL using Java. Please see below: OracleCallableStatement stmt =(OracleCallableStatement)conn.prepareCall ( "begin ? := getEMpArray; end;" ); // The name we use below, EMPARRAY, has to matc

    • How to detect key board event

      HI, How to detect keyboard event (Like CTRL key press shift key press) in Swing�any can any body suggest classes and interface for that�. Thanks

    • How to check/start/stop hardening Service?

      Dear All, I want to check on Solaris 10 whether it has hardening service or not, and also want to start/stop this service. Please give any idea or advice. Thanks and regards, Heng