Different Backgound color for required Items

Hi Experts,
Is there a way to format the query data entry screens to change the back ground to a different color if the field is a required field.
Thank you.

Hi,
no this is not possible. In case of using the Web you could do modifications in the program.
Heike

Similar Messages

  • A quick way to set different color for certain items in JList?

    is there a quick way of setting different color for certain items in JList?

    Either use HTML strings as the values in your JList (quickest, but may not be the most convenient, especially if your model isn't just text), or create your own ListCellRenderer (e.g. extend DefaultListCellRenderer).
    There is no such thing as "list.setItemForeground(int index, Color c)". You'll have to use one of the methods above.

  • Color for each item ring

    Hello,
    Is it possible to assign a different color for each item in a ring control ? See what I start in attached file.
    Thanks
    Attachments:
    enumeration_avec_couleur.vi ‏8 KB

    Attached is the LV 8.0 version.  I also added a control as described by Evan because I hadn't thought of it originally, but it is probably the best option -- it places text on color and doesn't require a loop to update.
    David C
    Applications Engineering
    Attachments:
    enumeration_avec_couleur2.vi ‏74 KB
    Control 2.ctl ‏6 KB

  • Can U Get Different Key Colors For pro 13"

    Can U Get Different Key Colors For pro 13"

    Can you do something in the javascript code where you have given specific IDs to each buttons in your menu? It could end up in something like "$('#menu_id').css('background-color', '#1B3E70');"
    Or, let say you have controls defined like thie:
    <body>
    <ul class="menu">
    <li class="menu-item"><a>item 1</a></li>
    <li class="menu-item"><a>item 2</a></li>
    <li class="menu-item"><a>item 3</a></li>
    </ul>
    </body>
    Can't you write at render stage this kind of actions by index:
    var i = $("li").index( $(this).parent() );
    if ( i === 1 ) {
    $('body').css('background', 'red');
    } else if ( i === 2 ) {
    $('body').css('background', 'green');
    } else {
    $('body').css('background', 'brown');

  • How do i change the backgound color for the "file edit view history bookmark tools help" bar in Firefox 29.0

    how do i change the backgound color for the "file edit view history bookmark tools help" bar in Firefox 29.0

    You can add a solid color theme to change the color of the top of the browser window, which includes the Menu Bar.
    https://addons.mozilla.org/en-US/firefox/themes/solid

  • Javabean for colorpicker to select color for form item

    1- copy the colorpicker.jar in your /forms/java directory
    2 - update the archive and archive_jini tags of your /forms/server/formsweb.cfg file:
    archive_jini=frmall_jinit.jar,colorpicker.jar
    archive=frmall.jar,colorpicker.jar
    3 - in your form, add a Bean Area in a block - bean name = 'bean'
    4 - initialize the bean in a When-New-Form-Instance trigger:
    FBean.Register_Bean('block.bean',1,'oracle.forms.demos.beans.ColorPicker');
    5 - pick the color anywhere you want:
    PROCEDURE PickColor(pvcTarget in VARCHAR2) IS
    vcColor VARCHAR2(11 char);
    BEGIN
    -- now display the picker with that color as an initial value
    vcColor := FBean.Invoke_char('block.bean',1,'showColorPicker','Select color','');
    END;
    I will follow these steps and colorpicker is shown but i want to select the color for form item such as text item , canvas etc.
    I want when i select the color from colorpicker that color is assign to that item. such as changing the background color and foreground color of text item.
    I need help about this.
    How i solve this problem.
    need code.

    Hello,
    Once you get the color, you can apply it to the item with the Set_Item_Property() built-in (see the online doc).
    Francois

  • How to add different background image for submenu items???

    Hi all,
    I'm pretty new to web design and CSS in particular. Here's my problem...
    I've got a Spry horizontal menu bar (untouched as yet), and I want to have a different background image for my submenu items than that of my menu items. From searching the internet I think that I need to apply a class to the submenu item (please correct me if I am wrong).
    How would I go about doing this and how would I assign the class to just the submenu items?
    Also ideally I want to have my first and last menu items to have rounded corners on one side (therefore making a rounded edge menu bar), is it possible to have a different background image for individual menu items? If so, how?
    Really appreciate any help!

    Thanks for the link! I've managed to sort the background issue, and it seems to be working fine!
    Just one little issue left to tackle...
    I want my text to be centered in my top menu items BUT aligned left in my drop down menu items. I have managed this but the text hugs the left hand side. I've tried adding a little margin to the left but that doesn't seem to affect anything???
    Here's my CSS... Any ideas which class I should be targeting or why adding the margin isn't working would save my tearing the rest of my hair out! thanks! (screenshot attached).
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - Revision: Spry Preview Release 1.4 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
        margin: 0;
        padding: 0;
        list-style-type: none;
        cursor: default;
        width: auto;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
        z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
        margin: 0;
        list-style-type: none;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: 120px;
        float: left;
        height: 24px;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 0;
        background-repeat: repeat-x;
        background-color: #333333;
        background-image: url(../images/navbar_bg.jpg);
        border-right-width: 1px;
        border-left-width: 1px;
        border-right-style: solid;
        border-left-style: solid;
        border-right-color: #000000;
        border-left-color: #666666;
    ul.MenuBarHorizontal li li
        list-style-type: none;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: auto;
        float: left;
        height: 24px;
        background-color: #333333;
        background-image: none;
        padding: 0;
        margin: 0;
        left: -1px;
    ul.MenuBarHorizontal li li a
        list-style-type: none;
        position: relative;
        text-align: left;
        cursor: pointer;
        float: left;
        height: 24px;
        background-image: none;
        font-size: 12px;
        font-weight: normal;
        border: 0px 0 0;
        width: 120px;
        font-family: Geneva, Arial, Helvetica, sans-serif;
        padding: 0;
        margin: 0;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
        margin: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: 1020;
        cursor: default;
        width: 120px;
        position: absolute;
        left: -1000em;
        height: 24px;
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 0;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
        position: absolute;
        height: 24px;
        width: 120px;
        margin-top: -5%;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
        left: auto;
        top: 0;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal li a
        display: block;
        cursor: pointer;
        text-decoration: none;
        font-style: normal;
        text-transform: capitalize;
        text-align: center;
        white-space: normal;
        padding: 0px;
        height: 24px;
        font-family: Geneva, Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-weight: bold;
        color: #FFFFFF;
        line-height: 20px;
        margin: 0px;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal li a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
        background-color: #000000;
        background-image: url(../images/navbar_bg_hover.jpg);
        background-repeat: repeat-x;
        line-height: 22px;
    ul.MenuBarHorizontal li li a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
        background-color: #000000;
        background-image: none;
        background-repeat: repeat-x;
        width: 120px;
        font-family: Geneva, Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-weight: bold;
        color: #FFFFFF;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
        background-repeat: repeat-x;
        background-position: 95% 50%;
        background-color: #333333;
        background-image: url(../images/navbar_bg.jpg);
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
        background-repeat: repeat-x;
        background-position: 95% 50%;
        background-color: #000000;
        background-image: url(../images/navbar_bg_hover.jpg);
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
        position: absolute;
        z-index: 1010;
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarHorizontal li.MenuBarItemIE
        display: inline;
        f\loat: left;

  • Can I get different background colors on menu items?

    I've been trying to get different background colors on my menu (Quick launch) items for a while, without success. What I want is the even numbered items (the second, fourth, sixth...) to have a different background color than the uneven ones (first, third,
    fifth...).
    Anyone knows if this can be done?
    Thanks, guys!

    Can you do something in the javascript code where you have given specific IDs to each buttons in your menu? It could end up in something like "$('#menu_id').css('background-color', '#1B3E70');"
    Or, let say you have controls defined like thie:
    <body>
    <ul class="menu">
    <li class="menu-item"><a>item 1</a></li>
    <li class="menu-item"><a>item 2</a></li>
    <li class="menu-item"><a>item 3</a></li>
    </ul>
    </body>
    Can't you write at render stage this kind of actions by index:
    var i = $("li").index( $(this).parent() );
    if ( i === 1 ) {
    $('body').css('background', 'red');
    } else if ( i === 2 ) {
    $('body').css('background', 'green');
    } else {
    $('body').css('background', 'brown');

  • Different custom colors for a WPF line plot

    Dear Sir,
    I am trying to create a WPF graph with different colors for different points of time , example  Black 0-10,red 11-20, green 21-30...
    I saw the nifty video and download the range masking cursor but got stuck. 
    Thank you
    George MAsiello

    Here's a quick mockup of the custom renderer version (sorry I did not have time to translate it to VB myself):
        public class CustomRenderer : PlotRenderer {
            private static readonly DataRequirements _dataRequirements = new DataRequirements(
                DataCulling.PreserveLines, DataDecimation.CoLinear,
                new DataDimension( DataDimensionSource.IndexData, DataDimensionScale.IndependentScale ),
                new DataDimension( DataDimensionSource.SampleData, DataDimensionScale.DependentScale ) );
            // The color ranges we want to show on the plot.
            private readonly Tuple<Color, double>[] _colorRanges = new[] {
                Tuple.Create( Colors.Black, 10.0 ),
                Tuple.Create( Colors.Red, 20.0 ),
                Tuple.Create( Colors.Green, 30.0 ),
            private readonly RenderTargetOptions[] _rangeOptions;
            public CustomRenderer( ) {
                // Create render options for each range color.
                _rangeOptions = _colorRanges.Select( colorRange => new RenderTargetOptions( this,
                    RenderTargetOption.CreateValue( RenderTargetOptionsProperty.Stroke, new SolidColorBrush( colorRange.Item1 ) ),
                    RenderTargetOption.CreateValue( RenderTargetOptionsProperty.StrokeThickness, 1.0 ) ) )
                .ToArray( );
            public override SupportedRenderModes SupportedRenderModes {
                get { return SupportedRenderModes.VectorAndRaster; }
            public override DataRequirements GetDataRequirements( ) {
                return _dataRequirements;
            protected override Freezable CreateInstanceCore( ) {
                return new CustomRenderer( );
            protected override void RenderLegendCore( LegendRenderArgs renderArgs ) { }
            protected override void RenderGraphCore( PlotRenderArgs renderArgs ) {
                // Get the time axis for the renderer.
                Plot plot = (Plot)renderArgs.Plot;
                var timeAxis = plot.GraphParent.GetAxis( plot, Orientation.Horizontal );
                var dataMapper = (IDataMapper<double>)timeAxis.GetDataMapper( plot.GraphParent );
                int startIndex = 0;
                var xData = renderArgs.RelativeData[0];
                var yData = renderArgs.RelativeData[1];
                var renderTarget = renderArgs.RenderTarget;
                for( int i = 0; i < _colorRanges.Length - 1; ++i ) {
                    // Draw all data below the current range with the associated color.
                    int endIndex = startIndex;
                    double range = _colorRanges[i].Item2;
                    double offset = dataMapper.Map( range );
                    while( endIndex < xData.Size && xData[endIndex] <= offset )
                        ++endIndex;
                    RenderSegment( startIndex, endIndex, xData, yData, renderTarget, _rangeOptions[i] );
                    startIndex = endIndex;
                // Draw all remaining data with the last color range.
                RenderSegment( startIndex, xData.Size, xData, yData, renderTarget, _rangeOptions.Last( ) );
            private static void RenderSegment( int startIndex, int endIndex, Buffer<double> xData, Buffer<double> yData, IRenderTarget renderTarget, RenderTargetOptions options ) {
                int length = endIndex - startIndex;
                if( length <= 0 )
                    return;
                // Join current range with previous.
                if( startIndex > 0 ) {
                    --startIndex;
                    ++length;
                using( Buffer<double> xSegment = xData.Slice( startIndex, length ) )
                using( Buffer<double> ySegment = yData.Slice( startIndex, length ) )
                    renderTarget.DrawLines( options, xSegment, ySegment );
    ~ Paul H

  • UITableView: set different background colors for header and the table

    I would like to set my background color for my UITableView to white and set my tableViewHeader backgroundColor to grayColor similar to the facebook app. When I bounce scroll my table so that you can see above the header, then currently it is white above the header view. I want that to be brown instead.
    In the facebook app, above the headerview, it is a blue color and below the table is a white color. If i try and set the UITableView backgroundColor to brown, then the top will be brown, but so will the bottom. Additionally, all of the unset cells will have a brown background instead of white.
    Any help with this?

    Fixed..

  • Set color for selected item?

    i was wondering if it is possible to setBackground and setForeground for JMenu, JMenuItems or any items that are selected? I know it is possible for JList because it has the function setSelectionBackground and setSelectionForeground but are there any functions that do that for these classes?

    This was originally posted by xhunterx:
    The fastest way I know to change that property for all instances of a JMenu or JMenuItem in an application is to simply change the UIDefaults for that property via UIManager.<I>put()</I>. Try this (changes the selection background for both menu and menuitems to Color.green):
    <pre>import java.awt.*;
    import javax.swing.*;
    <br>
    public class MenuDemo extends JFrame
    public MenuDemo() throws Exception
    UIManager.put("Menu.selectionBackground", new javax.swing.plaf.ColorUIResource(Color.green));
    UIManager.put("MenuItem.selectionBackground", new javax.swing.plaf.ColorUIResource(Color.green));
    <br>
    JMenuBar menuBar = new JMenuBar();
    JMenu menuOne = new JMenu("One");
    JMenu menuTwo = new JMenu("Two");
    JMenuItem itemOne = new JMenuItem("One Sub One");
    menuOne.add(itemOne);
    menuBar.add(menuOne);
    menuBar.add(menuTwo);
    getContentPane().add(menuBar,"North");
    setSize(200,200);
    setVisible(true);
    <br>
    public static void main(String args[]) throws Exception { new MenuDemo(); }
    }</pre>
    - Mark

  • Different scrap quanitity for alternate item

    Hi Guys,
    I have alternate item in my BOM header. That is two alternate raw materials are used for manufacturing the SFG and have different scrap quantity , in this case how to create BOM?
    Thanks and regards
    Thamizh_g

    Hi,
    For the alternate items you can maintain the scrap % in material master as Assly scrap in MRP-1 view & component scrap in MRP-4 view. Also you can maintain the scrap qty in BOM also, in the BOM item level you can maintain the operation scrap. But BOM will be having the highest priority.
    Regards,
    V. Suresh

  • Different Background Colors for Clients

    Maybe this isn't the right forum for this but how do you change the background color of ECC to change based on the client you select?

    Hello,
    As far as I know the colour settings are user based. On the top of SAP screen you will have a button with options, where you can change colour of the screen. If you want to get the colour of the screen based on the SAP, please speak to basis team and they should able to help you out.
    Regards,
    Ravi

  • Mailboxes are different colours (colors) for no apparent reason

    I've imported my mail (from Outlook 2007 via thunderbird - all went well) into Mail. My question is some of the mail boxes are blue and some are white - any ideas why this would be, there seems to be no logic (ie all mail boxes were imported at the same time in the same way and all have sub mailboxes)
    Thanks

    White mailboxes are "folders" - mailboxes that only contain sub-mailboxes but no messages inside them
    Blue mailboxes are actual "mailboxes" which can contain both, messages as well as sub-folders/mailboxes in them.
    This is just a subtle visual clue that you don't need to look into "white" mailboxes for messages but just keep expanding the folders/mailboxes contained in them.
    Andreas

  • How to set different color for items in selectManyCheckbox

    hi,
    I would like to change item text background color for each item on selectManyCheckbox (different for each item).
    It is only 5 items so that could be static reference or select.
    I know only how to change background for all items
    af|selectManyCheckbox::item-text {
        background:orange;
    How to select concrete item text and change color for only them?
    I found similar problem:
    css - Set background color of every individual checkbox of p:selectManyCheckbox - Stack Overflow
    but this dont work for me because I dont have in adf tr structure
    I need somethink like this:
    af|selectManyCheckbox::item-text XXXX - select here one of the item by number on list or id  {
        background:orange;

    hi,
    thanks Alejandro and Federico for answers.
    I use JDev 11.1.1.6. I dont write it in previously post because I think that is a more css then adf problem.
    I have 5 selectItem based on simple List<String> {"text1", "text2", "text3", "text4". "text5"}:
    <af:selectManyCheckbox label="List" id="smc2"
                                               layout="horizontal"
                                               value="#{bean.listInBean}"
                                               autoSubmit="true">
                          <af:selectItem label="text1" value="text1" id="si47"/>
                          <af:selectItem label="text2" value="text2" id="si43"/>
                          <af:selectItem label="text3" value="text3" id="si46"/>
                          <af:selectItem label="text4" value="text4" id="si45"/>
                          <af:selectItem label="text5" value="text5" id="si44"/>
                        </af:selectManyCheckbox>
    and I would like to color first selectItem text to orange, second to red.. etc, The list is a static list. Not would be changed.
    After Alejandro answer I build simple for each element (anyCollection contains item with two fields: textValue and label {(text1,text1), (text2,text2)...}
      <af:forEach items="#{bean.anyCollection}"
                                      var="item">
                            <af:selectItem id="si48" value="#{item.textValue}"  styleClass="yourClassName#{var.index}"
                                           label="#{item.label}"/>
                          </af:forEach>
    And now if I have my var called "item" I can write 5 css style classe yourClassName#{var.index} with different color, but there is a problem:
    Attribute styleClass is not defined for af:selectItem
    If it will be so simple I will just add 5 style classes for each selectItem
    <af:selectItem label="text1" value="text1" id="si47" styleClass="yourClassName0"/>
    <af:selectItem label="text2" value="text2" id="si43" styleClass="yourClassName1"/>
    Should I use other component then adf facer rich?

Maybe you are looking for