Item label color

Dear all
I need change my item and label color.Assist me how to do this
Edited by: user13770574 on Apr 11, 2011 8:44 AM

You can colorize things in a number of ways:
label html attributes:
  style="background-color:#C0C0C0"
element:
  html table cell attributes:   style="background-color:#C0C0C0"
   html form element attributes:   style="background-color:#C0C0C0"But what you get depends on things like if the label horizontal/vertical alignment setting is "right" or "above" and if items are in separate
table cells or not. Also depends on what the input item actually is. If all else fails you can try to colorize things dynamically which is more flexible.
(this code finds radio buttons labeled none and makes them dark grey, which is totally different than other radio buttons.
call such a function in the page's "Execute when page loads" section: drabNone()
function drabNone()
  {var mycount = 0;
  jQuery('input:radio').each(function() {
   var myelement = '#' + this.id;
   var mystr = 'label[for="' + this.id + '"]';
   var mylabel = jQuery(mystr).text().toUpperCase();
   if (mylabel === 'NONE')
      jQuery(myelement).wrap('<span></span>').parent().css({background:"gray", color:"gray",border:"2px black solid"});
      jQuery(mystr).css({background:"gray",color:"black"});
     } //end each function
     ) //end each
  }// end function drabNone  Edited by: lake on Apr 12, 2011 10:48 AM

Similar Messages

  • Change Item label color

    I am adding items to the sidebar region. The item labels are showing as black. I need to have them show as white. Is there something I can change in the item attributes to do this or does this need to be done in the template?

    Hello,
    style="color:#f00;font-weight:bold;"Since it sounds like you are just learning some CSS I suggest you spend an hour or two reading this site [http://www.w3schools.com/css/] it will save you countless hours later.
    Regards,
    Carl
    blog : [http://carlback.blogspot.com/]
    apex examples : [http://apex.oracle.com/pls/otn/f?p=11933:5]

  • Setting colors for item labels in JFreeChart (WaferMapRenderer)

    Hi,
    first of all, sorry for posting a JFreeChart related posting on this forum, but I didn't get a solution right now (I even didn't find anything useful on the JFreeChart website/forum). Here's my question...
    I'm trying to set the color for item labels in the legend but with no success.
    Here's a code example:
    final JFreeChart chart = ChartFactory.createWaferMapChart(
        "Wafer Map Demo",         // title
        dataset,                  // wafermapdataset
        PlotOrientation.VERTICAL, // vertical = notchdown
        true,                     // legend          
        true,                    // tooltips
        false
    WaferMapPlot plot = (WaferMapPlot) chart.getPlot();
    WaferMapRenderer renderer = new WaferMapRenderer();
    renderer.setSeriesItemLabelPaint(0, Color.red);
    renderer.setSeriesItemLabelPaint(1, Color.blue);
    plot.setRenderer(renderer);The default behavior of the WaferMapRenderer is also strange because the item label as well as the item marker is painted black so you cannot distinguish different fields of the wafer map. Is this a bug or am I doing something wrong (or missing somehting)?
    Any help would be greatly appreciated.
    Thanks and best regards,
    - Stephan

    Your folder action script doesn't work because of one simple error:
    set label index of every item of entire contents of processFolder to 7
    Nowhere in your script is 'processFolder' defined, so AppleScript has no idea what you're trying to do.
    Given that you (correctly) iterate through added_items, the correct format would be:
    on adding folder items to this_folder after receiving added_items
      repeat with item_ in added_items
        tell application "Finder"
          set label index of item_ to 7
        end tell
      end repeat
    end adding folder items to
    In other words, this changes the label index of each item just added.
    That should work provided you're dropping files into this folder. If you're dropping folders then this would set the label index of the folder itself, but not necessarily the items within that folder. For that you'd need to add a check to see if item_ was a folder and add code to handle folders.
    Also note that this kind of folder action will only work on the folder itself - that is, if you have folder A that contains subfolder B, then dropping a file into subfolder B won't trigger the script and won't change that item's label. To do that you'd have to attach your folder action to subfolder B.

  • Apex Page Input Item Label Conditional Style at run time

    Hi,
    Apex version 4.2.1.00.08
    We have an issue after migrating to apex 4.2.1. We have a select list and use another couple of dummy items to be used as its label instead of giving the text value to the LABEL control. Only one of the dummy items is shown as a label for the select list conditionally based on another value. It was working fine with the earlier versions upto 4.1, but with the introduction of grid in 4.2, its now displaying the select list on a new row (ie the lable in one row and the select list on the next row).
    However, we really would like to solve this by having a way to display the label of the select list either in "required format style" or as an "optional style". The display style should be determined only at runtime.
    Example. Say P100_MY_SELECT_LIST is the select list
    The label for this item is "My Select List Label"
    I have another dummy item P100_DUMMY
    if P100_dummy = 1 then the label "My Select List Label" should be displayed in red and with an * *My Select List LabelOtherwise it should be in black and without * My Select List LabelPlease help how to do this.
    Thanks in advance.
    Regards,
    Natarajan

    Well, I deviated with the various other things, and finally needed to get it fixed now. I find my own solution by having a Label Template which creates an ID for every label of the input item and calling a couple of javascript functions thro dynamic action.
    1) Create a label template "FormFieldDynamic" as follows
    In the template definition "Before Label"
    <img src="#IMAGE_PREFIX#requiredicon_status2.gif" alt="Required Field Icon" /><label for="#CURRENT_ITEM_NAME#" id="#CURRENT_ITEM_NAME#_LABEL" tabindex="999" class="itemLabel">in the "after label"
    </label>Note, I am having the image for the * always with the laebl and creating an ID for the label with id="#CURRENT_ITEM_NAME#_LABEL" .
    I have created a couple of javascript function to show the label dynamically as required or optional.
    function setLabelRqd(item) {
         var v = item+'_LABEL';
         var pid = document.getElementById(v);
         if (!((pid===null)||(pid===undefined))){
              pid.style.color = "red";
              $('#'+v).prev().show();
    function setLabelOpt(item) {
         var v = item+'_LABEL';
         var pid = document.getElementById(v);
         if (!((pid===null)||(pid===undefined))){
              pid.style.color = "black";
              $('#'+v).prev().hide();
    }Use the template if the input item (label) is dynamically set as Required or Optional at runtime based on a value of another item.
    How to:
    1.     Select the template FormFieldDynamic for the input item.
    2.    Create a dynamic action triggering on the change event of the page item which holds the conditional value to set the input item label as required or as optional.
    Under the When Section
    a.     Event => Change
    b.    Selection Type => Item(s)
    c.     Item(s) => PXXX_ITEM_NAME (The item that holds the conditional value to set the label for the input item
    d.    Condition => equal to
    e.     Value => Enter the value  for which the label needs to be displayed in Required format.
    f.     Set True Action
                                                              i.    Action => Execute Javascript Code  (Identification)
                                                             ii.    Fire on Page Load => checked (Execution Option)
                                                           iii.    Code => setLabelRqd(‘PXXX_ITEM_NAME’);  (Settings)  /*Call the javascript function to set the label as required*/
                                                            iv.    Selection Type => Item(s) (Affected Elements)
                                                             v.    Item(s) => PXXX_INPUT_ITEM1[,PXXX_INPUT_ITEM2]…
    g.     Set False Action
                                                              i.    Action => Execute Javascript Code  (Identification)
                                                             ii.    Fire on Page Load => checked (Execution Option)
                                                           iii.    Code => setLabelOpt(‘PXXX_ITEM_NAME’);  (Settings) /*Call the javascript function to set the label as optional*/
                                                            iv.    Selection Type => Item(s) (Affected Elements)
                                                             v.    Item(s) => PXXX_INPUT_ITEM1[,PXXX_INPUT_ITEM2]…It finally works for me :) and hope this will be helpful to others too. I will greatly appreciate anyone to mention it here if this helps for him.
    Thanks,
    Natarajan

  • App. Express -- Change font size in the item label.

    I would like to size the item label so I did this and it did not work
    in the label I put <span style="font-size:12px;">ITEM 1</span> and
    <span style="font-weight:bold;">ITEM 1</span>
    What wrong?

    Hello,
    The basic “trick” here is to duplicate the proper label template (you can of course change the original label template, but that’s less advisable) in order to add an ID to the text/link part.
    In my example, the template is base on the “Optional Label with Help” template, and the “Before Label” field contains the following:
    <label for="#CURRENT_ITEM_NAME#" tabindex="999"><a class="t2OptionalwithHelp" id="L_#CURRENT_ITEM_NAME#" href="javascript:popupFieldHelp('#CURRENT_ITEM_ID#','&SESSION.')" tabindex="999">In order to maintain ID uniqueness, the new ID just adds “L_” to the item name.
    Now I have direct access to the text/link, and I can manipulate it using JavaScript. In the example, I added the following to the region footer:
    <script type="text/javascript">
    $x('L_P160_ITEM2').style.fontSize = '20px';
    $x('L_P160_ITEM3').style.fontSize = '30px';
    $x('L_P160_ITEM3').style.color = 'green';
    </script>Regards,
    Arie.
    Hi Carl,
    As usual I was busy typing and didn’t see your reply. I agree that a specific example would be the best and easiest way to help.
    Message was edited by:
    ageller1

  • Y Axis label color inherits Pen color and not the default Label color.

    Hi,
    How do I enforce my Y Axis Label to taken the default color specified in the iChart Y-Axis Label Color property instead of picking it from the Pen color selected from the legend? I have a Y-Axis Label called "Total Stock", I can very well change the Label text using method
    document.TestChart.getChartObject().setYAxisLabel("Label from code");
    But when I use a similar
    document.TestChart.getChartObject().setYAxisLabelColor(Color);
    property, I dont see the color change on the screen. But when I get the color using a getYAxisLabelColor() method , the specified input Color is set. My Label in the Y-Axis, always inherits the Pen color of the selected Legend Item, by default the first Item color on Page Load.
    Settings done in the iChart:
    Use Selected Pen for label : Unchecked
    Y Axis Label Color: #000000
    Y Axis Label : Total Stock
    Show Y Axis Label: Checked.
    I appreciate your help,
    Ajitha

    Jeremy,
    I tried the method you mentioned...
    document.TestChart.getChartObject().setYAxisLabelColor(document.TestChart.createColor("#000000"));
    But I still dont see a change in the Label color.
    Another finding is, when I try to alert the Label color on load of the page or during the creation of the applet, I see the label color on the alert is not the pen1color but the default Label color that is set in the display template. I assume that the legend's default selection, overwrites the Label color with the first pen color, but I could not get it with the getYAxisLabelColor() method, even though I see it on the screen.
    Thanks!
    Ajitha

  • I can't apply a label color to some apps

    I'm trying to organize my Applications folder into apps paid for to developers, paid for via the MAS, freeware, and other designations.  When I highlight some apps, the label feature is grayed out and I'm unable to give these apps a label color.  I can't figure out what's common among these as some apps purchased through the MAS accept the label while otheres don't.  Same with other apps.  It's totally random to me and totally capricious.
    Can anyone suggest how to highlight any app with a color?  I'd even use Terminal if that's the way to go.
    I'm using Lion 10.7.2.
    Thanks!

    @tod- I actually figured it out and it's a bit easier-
    at the bottom of the Get Info screen, click on the tool icon with the down arrow and hit 'Apply to enclosed items' and it works.
    Im starting from scratch since my computer keep crashing so I re-downloaded and installed Lion. Now all of my applications are asking for serial numbers. it's weird since my old user shows up but the machine boots up as a new user and will not open the old applications..dgoing to open this in a new thread but thought I'd try my luck here.
    thx

  • Preferences Label Colors bug?  (Mac CS5.5)

    The fields in this pref are editable.  I can change the words, "Blue, Cyan, Green" etc. in the Pref Pane.  But, I'm still stuck with the default names when I right-click a clip in the timeline and choose "Label."
    The only place where I see those field name changes reflected is in the Preferences > Label Defaults Pane.
    This is a bug, right?
    What if I wanted to change those color names to be Good, Bad, MOS, GFX, etc.?  That would be much more useful than the default color names, because I like to color code my clips in the Timeline.  It makes effects editing (and clip classification) much simpler.
    Or, am I doing something wrong?

    I don't even see how it's useful to color code items in the Project Tab.  They already have their unique icons.  What more do you need? 
    Actually, there is one very useful feature, IMO: the ability to select clips in a bin or in a sequence based on their label color. Right-click a clip, go to to Labels, and select Select Label Group; all footage items with that label will be selected. This can be really helpful for cleaning up a project, or mass replacing stuff in a sequence. One of my requests was that we have many more (12-20) labels that we can define ourselves, so that their is a finer degree of granularity with how you label footage items. Right now, labels are (automatically) based on the footage item type, or (manually) if you assign a label. Being able to create labels like you suggest, e.g. Good, Bad, MOS, etc., would be much more user-friendly in that regard.
    On that subject, I'd love to see the Project fields "hide-able" like they are in AE.  I never saw the use for Labels there (or in AE for that matter).  I need to make another Feature Request.
    They are. Click the flyout menu in the Project panel  (kind of like Avid's hamburger menu) and go to Metadata Display. You can check and uncheck the fields you want to see there. You can also rearrange columns/field names in the Project panel by dragging them around.

  • Label Color

    Is it possible to change the color of a item label? I tried entering this in the HTML Table Cell Attributes for the Element but it did not change color to blue.
    style="color:blue"
    Scott

    HI,
    Using template can i manage what follows?
    i'm looking as well for the capabilities of dynamically changing label item (when a field is required or not).
    Note: when i say a field is required I not talking about not null.
    An app of mine has to be accessed from different kind of user:
    1 - Consultant.
    2 - Employee.
    Each of this 2 roles should see in red the fields where input his required.
    Note that my form should have a 3 times input based on our particular business flows.
    1 Consultant. (label of cost in red)
    2 Employee (label of cost black - label of invoice in red)
    3 Consultat. (label of cost black - label of invoice in black - label of fees in red)
    4 Employee. (all black). --> confirm all
    Maybe i could manage my info/data flow hiding the fields...
    However with label the form would be more immediate to use.
    thanx

  • I have two graphics workers on osx 8.  They are both complaining that their files are changing label colors on it own.  Any idea what could cause this?

    I have two graphics workers on osx 8.  They are both complaining that their files are changing label colors on it own.  Any idea what could cause this?

    and there were and have been problems with any two nvidia cards which was the main part of my question.
    To provie details try pasting all but serial number from system profile. Sorry but Mac Pro tells me nothing, not model, year, or what graphic card it came with or updated with.

  • Label colors in timeline

    I had hoped to organize my used footage in my timeline by highlighting the currently blue label for video clips to a green color.  In the timeline I am able to do that, however when I look at the bin where the clips originated the label colors for all clips, including my used ones, remains blue.  Is there a way where a changed clip label is updated throughout the project?
    I can also used the metadata display to use the video useage field.  Is there a way that can be turned on for the entire project instead of having to go into every single bin and add the metadata display field for video useage?

    There's no way to have the label colors automatically change with usage.  You can file a Feature Request for that.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    For the columns, you can save your settings and switch to them easily in the Metadata Display window.

  • Problem with Item Labels in ORacle 10g

    Hi,
    We have unchecked the item labels in oracle discoverer 10g. when we create the portlet(after moved server from 10.1.0.2 to 10.1.2), it showing item labels for the discoverer report.
    we dont want item labels to be displayed in portlets.
    Can one any tell us why this occurs?
    Thanks in advance.

    Hello,
    We have unchecked Item Labels (not to display the column names in the cross tab) in Discoverer plus (Tools ----> Options -----> Sheet -----> Show Item Labels).
    And created the discoverer worksheet portlet in Oracle Portal with Options to display the cross tab.
    The Item Labels are displaying in this discoverer worksheet portlet.
    We donot want to display the Item Labels.
    How can i achieve this?
    Thanks,

  • How to add one new tab at item label in me21n

    hi experts,
    i  am very new in badi .can any one please tell me how to add
    one tab in me21n at item label. i already checked  sample code for
    badi me_gui_po_cust. i create one implementation and write same code.
    this code is coming in debugging mode but cant see that tab while executing 
    me21n.
    please help me out.
    thanks in advance
    manasi

    Hi Manasi,
    acording to me you are on the right path.Some help
    1.ME_GUI_PO_CUST.
    For Creating Customer own Screen - Purchase Order..
    Details :
    Go to the sample code of this BADI.
    For this create a Function group with the screen that u want in PO.
    In the First method u want to append the screen . There is one parameter im_element.
    In this parameter u can mention that in which part u want the screen .Header/Item.
    2. ME_PROCESS_PO_CUST
    In this BADI u can Check the Complete PO at various Level.
    ie Header Level ,Item Level, At the time of Save, Post .
    Now Create a Include in your Function group and paste the below code.
    DATA: call_subscreen TYPE sy-dynnr, "#EC NEEDED
    call_prog TYPE sy-repid, "#EC NEEDED
    call_view TYPE REF TO cl_screen_view_mm, "#EC NEEDED
    call_view_stack TYPE REF TO cl_screen_view_mm OCCURS 0, "#EC NEEDED
    global_framework TYPE REF TO cl_framework_mm, "#EC NEEDED
    global_help_view TYPE REF TO cl_screen_view_mm, "#EC NEEDED
    global_help_prog TYPE sy-repid. "#EC NEEDED
    FORM SET_SUBSCREEN_AND_PROG *
    --> DYNNR *
    --> PROG *
    --> VIEW *
    --> TO *
    --> CL_SCREEN_VIEW_MM *
    FORM set_subscreen_and_prog USING dynnr TYPE sy-dynnr
    prog TYPE sy-repid
    view TYPE REF TO cl_screen_view_mm.
    call_subscreen = dynnr.
    call_prog = prog.
    call_view = view.
    ENDFORM. "set_subscreen_and_prog
    Hope to solve ur probs.....
    Regards
    Renu

  • Item Background Color changes when placed in production (Forms 10g)

    Hello All,
    I have searched the forum on this topic, but have not been successful in finding a topic/solution for multi-line items that need to render a different color than the rest.
    I have used set_item_instance_property (and set_item_property) as well as using a VA to resolve this issue to no avail.
    When I view the form in the browser - initially in query-mode, I see the color that I have set for the item. Once the query is fetched and I am in non-query mode (display), the items background color is replaced to the standard color (off yellow) for non-editable fields.
    I have taken all of the subclasses off, used the item property from the pallette as well as manually programmed within a trigger and cannot get this item to stay the color that I have set.
    Can anyone help me get this working?

    Are you using the 0 to 100 rgb color assignments you see in the Forms Builder color palette? If so, that is your problem. At run time, you have to convert the color numbers to 0 to 255 numbers. Just multiply each of the three parts by 2.55
    Or maybe there is come code running elsewhere in your form that is setting the color after your code is run.
    Search your form for background_color.

  • Problem in displaying text inside the item label - JFREECHART

    Hi All,
    I dont know whether this is the right place or not to post the queries related to jfreechart here .
    I am facing a problem in displaying the text inside the item label in jfreeChart. I am trying to print the text in 2 lines one below the other at the top of each bar in waterfall chart.
    Please find the code below in next post. The problem i am facing is it is neglecting the new line character . If any one knows how to display the text one below the other please help me out .
    Thanks in advance .
    Regards,
    Diw

    i am facing the problem in pasting the complete code as its exceeds the message text limitiation, please find the link below for the code .
    http://www.java-forums.org/java-2d/12087-problem-displaying-text-inside-item-label-jfreechart.html#post36648
    Early response will be appreciated . Thanks in advance
    Regards,
    Diw
    Edited by: Diw on Sep 30, 2008 11:15 AM
    Edited by: Diw on Sep 30, 2008 11:16 AM

Maybe you are looking for