How to change a item's color programmatically?

I want to change a item'color,(old background_color white,change it to gray)in a plsql program,is there any help from u all?

Or, depending on what you actually wish to do, you may use display_item(your_item, your_visual_attribute); or
set_item_instance_property.

Similar Messages

  • How to change the selection background color of the selected item in the popup menu of the choice box ?

    How to change the selection background color of the selected item in the popup menu of the choice box ?
    By defaut, the selection background color likes "blue", but if I want it to be "yellow" for example, how should I do ?
    Thanks

    The id is applied by (I think) the skin class of the ChoiceBox. You don't need to define it.
    You have to apply the css in an external style sheet. You can apply the external style sheet to any parent of your choice box, or to the scene (the most usual way to do it).
    Example:
    import java.util.ArrayList;
    import java.util.List;
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.ChoiceBox;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class ChoiceBoxTest extends Application {
      @Override
      public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle("Example 2");
        final ChoiceBox<String> choiceBox = new ChoiceBox<>();
        List<String> tempResult = new ArrayList<String>();
        for (int i = 0; i < 10; i++) {
          tempResult.add("Item " + i);
        choiceBox.getItems().setAll(tempResult);
        VBox root = new VBox();
        root.getChildren().add(choiceBox);
        final Scene scene = new Scene(root, 300, 250);
        scene.getStylesheets().add("choiceBox.css");
        primaryStage.setScene(scene);
        primaryStage.show();   
      public static void main(String[] args) {
        launch(args);
    choiceBox.css:
    @CHARSET "UTF-8";
    #choice-box-menu-item:focused  {
    -fx-background-color: yellow ;
    #choice-box-menu-item .label {
    -fx-text-fill: black ;
    Message was edited by: James_D

  • How to Change Open item into Non open item for GL

    Dear All,
                    I have created a GL in FS00 and clicked the open item management for it. 1 entry is posted to that account.Then i have reversed the entry and want to change the Gl from open item to non open item .The message appears as the balance is zero but open item exists.Please suggest how to make it non open
    Moderator: Please, search SDN

    Hi,
    Check the below threads which are useful.
    Open item management status change
    How to change Line item to open item management in G/L transaction?
    Thanks
    Aravind

  • How to change the line's color?

    In a linechart, if the backgroundColor of
    Application is not "#ffffff",there will be some white
    horizontal lines in the linechart. how to change the
    line's color?? thanks

    Hi, I hope this is what you are looking for:
    http://blog.flexexamples.com/2007/11/15/customizing-the-horizontal-grid-lines-in-a-flex-li nechart-control/

  • How to change the disabled value color of messageTextInput

    Hi,
    I have a requirement to change the value color of messageTextInput. And I had apply custom look and feel. For normal messageTextInput, I can change its color, but for disabled messageTextInput, the value is always gray out. I can't change its color.
    Could anyone tell me how to change it?
    Thanks,
    Eileen

    Eileen,
    This is the code u need to use in process request:
    OAMessageTextInputBean x = (OAMessageTextInputBean)webBean.findChildRecursive("<item id of message text input which have to disable>");
    //If item id of the next message text input is XXX, on which
    //u wanna set focus when user clicks on ur disables message text input
    x.setOnFocus("javascript:XXX.focus();");
    Now u can set CSS class.The above code will automatically set focus on field with item id XXX, when user clicks on it, thus not allowing user to enter anything in that message text input.
    I hope this helps.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to change foreground and background color using CC SDK?

    Hello all,
    I am just starting to study the sdk (Mac CC). Currently, I am seeking the answer to change foreground and background color using CC SDK?
    Is it possible to do so? In addition, will the Image Mode such as RGB, CYMK or Grayscale be effecting such solution?
    Thanks in advance.

    These are NOT dropdown menus. They are dropdown LISTS.
    http://web.me.com/toad.hall/Demo1/Drop_DownMenus.html
    And from the links in the Google search you can learn that a list item has no style.
    And a dropdown list behaves differently from dropdown menus. Here's how it looks on Mobile Safari :

  • How to change Service Item using BAPI_ENTRYSHEET_CREATE.

    Hi All,
    There's a requirement for me to upload/ Create Entry Sheet using BAPI_ENTRYSHEET_CREATE from the source file.
    The Header was given to me but the Service Item, they would like the flexibility to change the existing lines that was adopted from ML81N.
    Eg of the file.
    Header given:-
    PO NO
    Po Item
    Short Text
    Ext Entry Sheet No
    Service Location
    Period Start
    Period End ....n so on
    Service Item given:-
    Service Line (Extrow)
    Service Order Qty (Memge)
    Ext Service No (EXTSRVNO)
    The objective of this file is
    1) Create Service Entry Sheet (using Header)
    2) Adopt the Service Item
    3) Change Service Item (using Service Item)
    Could anyone guide me how to do it? If Using BAPI_ENTRYSHEET_CREATE...is actually creating it with full details of the upload file. but given to me, t requrement is they would like to create n change the item.
    Appreciates your help.
    Thank you.
    Regards,
    Sheena Wee

    Hi ,
    If you are trying to test the FM through TCode SE37 then it will not give you the desired output.Do one thing create a test program and there you call the FM with your data.I hope in this way you can solve the issue.
    Regards,
    Sarbajit.

  • How to change line item numbers

    HI
    when we are creating sales order, if we enter material number, line item number will be autmaticallly assigned(for eg 10,20,30 ....). if i want to change that number what i have to do(eg: to 1, 4, 5, .....). in standard SAP, the field is grayed out once the no is assigned. so i dont know how to change the no. please help me in this.

    Hello,
    You can give any number manually as the line item when you are creating the sales order.
    While creating the order give the item number also manually, then the system will accept. Once you given the line item number , it will not allow you to change it.
    Then you need to delete the line item and re-insert with the line item number you want.
    Prase

  • How to Change Open Item Management Field in GL Master Record

    Hi,
    How to change the field Open Item Management becz eventhough I tried through in norrmal way of making it that GL balance to 0 and made the change after that it not allowing to save and throwing the following errors,
    Account Balance = 0 but open items exist is the error coming,
    Can any one plz advice ?

    Hi,
    Once transaction data is posted, GL Account cannot be made into an open item managed account. However, you can consider the following options:
    1. GL Account Balance is ZERO: If the GL Account balance is ZERO, the GL Master record can be changed to Open Item managed Account or vice versa. But this will not change the transaction data already posted. Only future transaction data will be open item managed.
    2. Until SAP version 4.0B SAP has provided a program to convert a GL Account to open item managed account after transaction data is posted (or vice versa). You can execute this program by blocking the GL Account and this will make the required changes in tables and also change GL Master record.
    But this program is not available for execution in higher versions. Hence, you can copy the program into a Z Program and execute it. The name of the standard program is RFSEPA02.
    Thanks
    Murali.

  • How to change the Hyper links color in the XML form

    HI SDNs
    Do u have any idea how to change the hyperlink color in the xml form. My requirement is as follows.I have created xml form by using xml template and i displayed this xml form by using Km document iview.  I need tochange the hyper link color in the xml form content. I dont want to go for manual process by editing the xml form. because i have several hundreds of xml forms.
    Appreciate if you give suggestion.
    Thanks
    Ramana

    Hi Ramana,
    The most convenient way to change the hyper links is by using the Theme Editor. Go to System Administration --> Portal Display --> Select Theme --> Component-Specific Styles --> Links --> Function/Result Link.
    Hope this helps.
    Kind regards,
    Joost

  • How to change the caret/selection color of text input controls?

    Hello JavaFX Community,
    i'm new to JavaFX. I'm using it since i saw the huge steps forward with version 2.0.
    I have the task to migrate a software from Swing to JavaFX. As a part of our corporate design, we used a special color for the caret and text selection. I couldn't find any information about changing the caret color in JavaFX 2, so i'd like to ask you and i'd be very thankful for an advise.
    There is a cross-post at StackOverflow:
    http://stackoverflow.com/questions/10057989/how-to-change-the-caret-color-in-javafx-2-0
    Thanks and best regards.

    This might be possible, but it is not trivial. You cannot do it with a standard API at this time, you will have to look into creating a skin that allows for these properties to be controlled.
    For example, the color of the caret is currently controlled in the TextFieldSkin (look for the "caretPath" property). Just forcing a color change in a subclassed skin is not so hard. Something like this:
    public class MyTextFieldSkin extends TextFieldSkin {
      public MyTextFieldSkin() {
        this.caretPath.fillProperty().unbind();
        this.caretPath.fillProperty().set(Color.RED);
    }However, it gets trickier if this color must be dynamic and if you want other things to be changed as well. It is a place to start though.
    Many of the skins methods and properties are 'protected' though, so atleast in Skin subclasses you have a lot of options to introduce new features and behaviour.

  • How to change a item type dynamically?

    Is it possible to change a item type dynamically?
    For example.
    I've got a page with 2 items. The first is a select list and the second is a date picker. The select list contains two values, 1 and 2.
    If value 1 is selected the second item needs to remain a date picker. If value 2 is selected the second item needs to become a Text Field (disabled saves state).
    Anyone got an idea?
    Thx. Frank.

    Frank,
    It's not possible to change the item type dynamically as you describe it below. However, to achieve a similar effect you could do the following:
    1) Make the Select List a Select List With Submit.
    2) Have a Date Picker AND a Text Field on the page.
    3) Make the display of the Date Picker item conditional on the relevant value having been chosen from the Select List.
    4) Make the display of the Text Item conditional on the other value having been chosen from the Select List.
    Andy
    http://atulley.wordpress.com/

  • How to change selected pane's color in a JTabbedPane ?

    Hi there !
    I'm tryin' to change selected pane's color (default : light gray) in a JTabbedPane.
    I tried to use the following code :
    UIManager.put("TabbedPane.selected", new Color(255,255,200));
    but it doesn't seem to work.
    Any idea ?
    Thanks.

    For me, there is no TabbedPane.selected filed in TabnedPaneUI....
    try with
    UIManager.put("TabbedPane.highlight", new Color(255,255,200));
    or
    UIManager.put("TabbedPane.background", new Color(255,255,200));

  • How to change the Find highlight color

    I am trying to find out if there is a way to change the Find Highlight color in office 2013.
    Every time I search for a word or anything it uses a light yallow to highlight that line or word, and I woudl like to replace the yellow with like a teal or a green or some other color that I'm not using already in my Word document. This way I can find out
    were it is telling me It is because I have a lot of stuff already highlighted yallow, and when I click find and search for something in the Navigation window and it finds it. It also puts it as a lighter yellow and it confuses me.

    Hi,
    As far as I know, we can't change the highlight color when using Find in Word. The highlight color is fixed.
    As a workaround, you can try to use Advanced Find instead which will show the search result with a different color.
    Best Regards,
    Steve Fan
    TechNet Community Support

  • How to change selected item color and the selected area size of listview

    What i really need to do is change the following things in XMAL.
    1. Changing the selection color
    2. Size of selected area 
    Thanks in advance.
    Dileepa S. Rajapaksa
    Trainee Developer
    Microsoft, Sri Lanka
    Twitter : @dsrajapaksa
    Blog : http://www.dileepatech.net

    Hi Dileepa,
    It is possible by customize the control by its template, see this for more information:
    ListViewItem styles and templates.
    By changing the selected visual state, you can change the color of the ListView item background, also the size of the selected item.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for