How to change the background color of conditional region

Hi gurus
I have a region and you want to change the background color based on a value of element.
How can I do?

Thanks in advance
Oscar

Oscar,

I didn't test the code. I modified the code to find all the tags and change the background color.

1. In the HTML Region header create a div tag <div id ="REP_BGCOLOR_1"> and in HTML Region footer just close this div tag </div>
2. Put the following javascript in the HTML header of the page.
<script type="text/javascript">
</script>

3. Now call this GetDOMTag function to change the background color.GetDOMTag(document.getElementById('REP_BGCOLOR_1'));

http://apex.oracle.com/pls/apex/f?p=50942:75

Thanks,Manish 

Tags: Database

Similar Questions

  • How to change the background color dynamically on the page of the ofa

    How to change the background color dynamically on the page of the ofa

    Hello

    Can you please let me know the dynamic conditions to change the background color?

    Thank you

    Vincent

  • How to change the background color of string programmatically?

    How to change the background color of string programmatically?

    Are you talking about string indicator and control chain? If so, right-click on a control/indicator of string and select Create-> property Node-> text-> text-> BG Color colors. Change to write and a number of the color you want to use phone.

  • How to change the background color

    How to change the background color of the label field, how to do it thanks

    I can change the color of labelfield, but I want to change the background,

    How can I do this

    Thank you.

    I do not know mantaker do not want to forget the call to super...

    public void paint (Graphics gs) {}

    gs.setBackgroundColor (0x00FF0000); red background

    GS. Clear();

    Super.Paint (GS);

    }

  • How to change the background color of the code written DW page but not the Web page...

    How to change the background color of the code written DW page but not the Web page...

    If you have DWCC2015, you can change to edit > Preferences > coloring Code and either choose a new theme (RecoGnEyes is the background dark code by default) or you can change it to what you want in the background field by default.

    2014 CC had no theme options, but you can change the background color in the same place.

    I think that some of the previous versions also had the option, but I don't have them on my machine to check.

  • How to change the background color of work in Photoshop CC 2015 plan

    How to change the background color of work in Photoshop CC 2015 plan

    Just tried to change these settings:

    Preferences-> Performance-> settings of the graphics processor-> advanced settings... The change of drawing in 'Normal' mode (mine was 'Basic'). Suddenly I can not change the background.

    Hope this works for you all also.

  • I NEED TO KNOW HOW TO CHANGE THE BACKGROUND COLOR OF MY INDEX FINGER. HTML PAGE

    I need to know how to change the background color of my page index.html on Dream weaver cs6.

    With CSS:

    {body

    background-color: #FF0000;

    }

    Nancy O.

  • How to change the background color of selection of the selected item in the drop-down box of choice?

    How to change the background color of selection of the selected item in the drop-down box of choice?

    By default, the selection background color like 'blue', but if I want it to be "yellow" for example, how should I do?

    Thank you

    The id is applied by (I think) the skin of the ChoiceBox class. You don't need to define.

    You must apply the css in an external style sheet. You can apply the external style sheet to any parent of the box of your choice, or on-site (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 choiceBox = new ChoiceBox<>();
    
        List tempResult = new ArrayList();
        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 ;
    }
    

    Post edited by: James_D

  • How to change the background color of some rows in a Datagrid?

    How to change the background color of some rows in a Datagrid?

    Hee is an excellent example:
    http://www.CFLEX.NET/showfiledetails.cfm?channelId=1&object=file&ObjectID=487

    Tracy

  • How to change the background color of a single line

    Hi, OTN,.

    I use JDeveloper with ADF faces 11.1.1.2 in the view layer. My question is how to change the background color of a single line in af:table?.

    Hi idir Mitra
    You can use EL to bind column for example inlineStyle (#{row.id == null?' background-color: rgb (255,214,165);':'background-color:red'})})

    Cordially Abhilash.S

  • Need advice... Try to change the background color of a region...

    Hi experts Apex knowing html css well want to help me...
    1)
    I am trying to change the background color of a region... This color... #f2825b
    The current theme I use is that of the sample application... The theme 4 "Topaz"...
    The css used is theme_4_0.css
    I look in the model...

    < div class = 'rounded-corner-region' id = "' #REGION_STATIC_ID # ' #REGION_ATTRIBUTES # >"
    < div class = "rc-gray-top" > < div class = 'rc-gray-top-r' >
    < div class = "rc-title" > #TITLE # < / div >
    < / div > < / div >
    < div class = "rc-body" > < div class = 'rc-body-r' >
    < div class = "rc-content-buttons" > #CLOSE ##PREVIOUS # CREATE2 # next ##DELETE ##EDIT ##CHANGE ##CREATE ##EXPAND # COPY HELP # # < / div >
    < div class = "rc-content-hand" >
    #BODY # < div class = "clear" > < / div > < / div > < / div > < / div >
    < div class = "rc-bottom" > < div class = 'rc-bottom-r' > < / div > < / div >
    < / div >

    I was looking through forums .and someone mentioned an idea to use the static region of the id do... Yet, I am unable to do it... Do not know how to use it actually.
    If anyone can help... I can read the css... Am not an expert, but it... very very beginner...

    What I need to make a new model... and... so what should I write in these model... I need to change the background color of border and in the region of the existing model
    Kindly help... Any information will be greatly appreciated...

    (2) and when I look in the css... and class... "RC-gray-top rc-body etc I do not see a single class named rc-body...
    But his similarly named in... rounded-corner-region .rc-gray-top,
    Here's the .rc-gray-top class.
    . Rounded-corner-region what is an html element... ?





    Published by: pauljohny on June 21, 2012 21:04

    Published by: pauljohny on June 21, 2012 21:10

    pauljohny wrote:
    Hi experts Apex knowing html css well want to help me...
    1)
    I am trying to change the background color of a region... This color... #f2825b
    The current theme I use is that of the sample application... The theme 4 "Topaz"...
    The css used is theme_4_0.css
    I look in the model...



    #TITLE #.



    #CLOSE # PREVIOUS # ##DELETE NEXT ##EDIT ##CHANGE # CREATE # CREATE2 # EXPAND ##COPY # HELP #.


    #BODY #.


    I was looking through forums .and someone mentioned an idea to use the static region of the id do... Yet, I am unable to do it... Do not know how to use it actually.

    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21674/ui_region.htm#sthref1967

    So if you give your region the static region ID "foo", you can reference it in CSS using the ID selector #foo.

    If anyone can help... I can read the css... Am not an expert, but it... very very beginner...

    What I need to make a new model... and... so what should I write in these model... I need to change the background color of border and in the region of the existing model
    Kindly help... Any information will be greatly appreciated...
    (2) and when I look in the css... and class... "RC-gray-top rc-body etc I do not see a single class named rc-body...
    But his similarly named in... rounded-corner-region .rc-gray-top,
    Here's the .rc-gray-top class.
    . Rounded-corner-region what is an html element... ?

    This is the class for the outside divselector:
    {code}


    {code}

    As you like, the themes of APEX 4.0 use certain (complex techniques of CSS above). This includes the use of background + images + on several elements to provide what you think as long as the borders and background colors. It will be difficult to replace with your limited knowledge. Suggest you start with something more simple: see + {message identifier: = 10403264} +.

    What is this area to be used for? What will contain? You want to keep + all + of the structure and appearance of the existing model?

    And as is said in almost every thread on the themes of the visuals for form/templates/CSS layout + creation of an example of the problem on apex.oracle.com is a much more effective way to get assistance as writing screeds about it here.

  • How I change the background color?

    This has been answered before, but for older versions of Pages with settings that no longer exist, and I can't seem to understand. How can I change the background color in the Pages?

    I inserted one rectangle and size for the cover page. I can't send to back, despite clicking on the button to do it, nor can I scroll with me instead of having to insert a new for each page, which would be much too tedious, even if I clicked "move with the text." What Miss me?

    Hi shockvaluecola,

    This rectangle selected, Menu > reorder > Section Masters > move object of Section Master.

    This context is displayed on each page of this Section.

    To remove the object of Section Master Menu > reorder > Section Masters > make Master objects selectable.

    Select (by clicking in the margin of page for me works), then delete.

    Kind regards

    Ian.

  • I have ypdatedd of internet explore 8.1. Now, the background of the menu bars are black and the text is black. I can't read the menu titles. How I change the background color?

    How can I change the background color of menu on internet explore 8.1

    Hello LarryDiPiano, welcome.

    Try this:
    1. click on START
    2. click on "Control Panel."
    3. click on "personalization."
    4. click on "Theme".
    5 Select the theme 'Classic' in the menu dropdown menu drop-down
    6. click on 'Apply' at the bottom right
    7. once the theme going, switch back to the original theme in the menu drop-down
    8. click on 'Apply' at the bottom right
    Essentially, this action will refresh the currently displayed theme
    Let us know what happens
    Thank you!

    Ryan Thieman
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to change the background color of tabbed pane

    Hi, I want to change the background color of the tabbed pane. Is - is this posible? How to do this?

    The light blue color underline also, how the change too?

    Thank you

    Can't do with this version of the SDK. Maybe well as an option in a future revision.

  • How to change the background color of the autoCompleteField.

    Hi all

    I used AutoCompleteField in my application. I need to change the background color of the AutoCompleteField.

    I used

    -autoCompleteField.getEditField (.setbackground) (BackgroundFactory.createSolidBackground (1644825))

    but it fills the entire in black color. It shows the black color in the middle with white edges. I need all to be black background color.

    Please someone tell me how to autoCompleteField black background?

    Thanks in advance.

            autoCompleteField.setBackground(BackgroundFactory.createSolidBackground(0x0000ff));
            XYEdges edges = new XYEdges(10,10,10,10);
            Border newBorder = BorderFactory.createRoundedBorder(edges, 0xFF0000, Border.STYLE_SOLID);
            autoCompleteField.getEditField().setBorder(newBorder);
            autoCompleteField.getEditField().setBackground(BackgroundFactory.createSolidBackground(0x00FF00));
    

    Try this for some ideas on what to change:

Maybe you are looking for