Setting the background color of the line according to a column value

Hello

in a classic report, I want to change the record to the red background color if the value of a specific column is 'NO' in the folder. Please help me.

Apex 4.1
RDBMS 11.2

Thanks in advance
lukx

Hello

Use custom report template. This post might help
Re: Highlight a line in a tabular form, based on a column in the row

Kind regards
Jari

http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

Tags: Database

Similar Questions

  • How to change the background color of a line when you have the selection of cells in tableview?

    I have a tableview and I chose the selection of cells. How can I change the background color of a line, if I select a cell?

    The usual example using:

    import javafx.application.Application;
    import javafx.beans.binding.Bindings;
    import javafx.beans.binding.BooleanBinding;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.property.StringProperty;
    import javafx.collections.FXCollections;
    import javafx.collections.ListChangeListener.Change;
    import javafx.collections.ObservableList;
    import javafx.collections.ObservableSet;
    import javafx.css.PseudoClass;
    import javafx.geometry.Insets;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.SelectionMode;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TablePosition;
    import javafx.scene.control.TableRow;
    import javafx.scene.control.TableView;
    import javafx.scene.control.cell.PropertyValueFactory;
    import javafx.scene.layout.VBox;
    import javafx.scene.text.Font;
    import javafx.stage.Stage;
    
    public class RowHighlightedCellSelectionTableViewSample extends Application {
    
        public static void main(String[] args) {
            launch(args);
        }
    
        @Override
        public void start(Stage stage) {
            Scene scene = new Scene(new Group());
            scene.getStylesheets().add(getClass().getResource("selected-row-table.css").toExternalForm());
            stage.setTitle("Table View Sample");
            stage.setWidth(450);
            stage.setHeight(500);
    
            final Label label = new Label("Address Book");
            label.setFont(new Font("Arial", 20));
    
            final TableView table = new TableView<>();
            final ObservableList data =
                FXCollections.observableArrayList(
                    new Person("Jacob", "Smith", "[email protected]"),
                    new Person("Isabella", "Johnson", "[email protected]"),
                    new Person("Ethan", "Williams", "[email protected]"),
                    new Person("Emma", "Jones", "[email protected]"),
                    new Person("Michael", "Brown", "[email protected]")
            );
    
            table.getSelectionModel().setCellSelectionEnabled(true);
            table.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
    
            final PseudoClass selectedRowPseudoClass = PseudoClass.getPseudoClass("selected-row");
            final ObservableSet selectedRowIndexes = FXCollections.observableSet();
            table.getSelectionModel().getSelectedCells().addListener((Change change) -> {
                selectedRowIndexes.clear();
                table.getSelectionModel().getSelectedCells().stream().map(TablePosition::getRow).forEach(row -> {
                    selectedRowIndexes.add(row);
                });
            });
    
            table.setRowFactory(tableView -> {
                final TableRow row = new TableRow<>();
                BooleanBinding selectedRow = Bindings.createBooleanBinding(() ->
                        selectedRowIndexes.contains(new Integer(row.getIndex())), row.indexProperty(), selectedRowIndexes);
                selectedRow.addListener((observable, oldValue, newValue) ->
                    row.pseudoClassStateChanged(selectedRowPseudoClass, newValue)
                );
                return row ;
            });
    
            TableColumn firstNameCol = new TableColumn<>("First Name");
            firstNameCol.setMinWidth(100);
            firstNameCol.setCellValueFactory(new PropertyValueFactory<>("firstName"));
    
            TableColumn lastNameCol = new TableColumn<>("Last Name");
            lastNameCol.setMinWidth(100);
            lastNameCol.setCellValueFactory(new PropertyValueFactory<>("lastName"));
    
            TableColumn emailCol = new TableColumn<>("Email");
            emailCol.setMinWidth(200);
            emailCol.setCellValueFactory(new PropertyValueFactory<>("email"));
    
            table.setItems(data);
            table.getColumns().addAll(firstNameCol, lastNameCol, emailCol);
    
            final VBox vbox = new VBox();
            vbox.setSpacing(5);
            vbox.setPadding(new Insets(10, 0, 0, 10));
            vbox.getChildren().addAll(label, table);
    
            ((Group) scene.getRoot()).getChildren().addAll(vbox);
    
            stage.setScene(scene);
            stage.show();
        }
    
        public static class Person {
    
            private final StringProperty firstName;
            private final StringProperty lastName;
            private final StringProperty email;
    
            private Person(String fName, String lName, String email) {
                this.firstName = new SimpleStringProperty(fName);
                this.lastName = new SimpleStringProperty(lName);
                this.email = new SimpleStringProperty(email);
            }
    
            public String getFirstName() {
                return firstName.get();
            }
    
            public void setFirstName(String fName) {
                firstName.set(fName);
            }
    
            public StringProperty firstNameProperty() {
                return firstName ;
            }
    
            public String getLastName() {
                return lastName.get();
            }
    
            public void setLastName(String fName) {
                lastName.set(fName);
            }
    
            public StringProperty lastNameProperty() {
                return lastName ;
            }
    
            public String getEmail() {
                return email.get();
            }
    
            public void setEmail(String fName) {
                email.set(fName);
            }
    
            public StringProperty emailProperty() {
                return email ;
            }
        }
    }
    

    And then the selected line - table.css:

    .table-line-cell: {selected row

    -fx-background-color: lightskyblue;

    }

  • Select all the lines of a specific column

    Hello

    I have a complete excel data file and I want to display in the control table labview

    the number of rows in the excel file is not defined, but I know what colume there is.

    so now im using report generation tools read my excel file by setting the line position and colume, but if I put '-1' on the two lines which is of all package read and the column position, an error occurs.

    any way to solve?

    64864050 wrote:

    Hello

    I have a complete excel data file and I want to display in the control table labview

    the number of rows in the excel file is not defined, but I know what colume there is.

    so now im using report generation tools read my excel file by setting the line position and colume, but if I put '-1' on the two lines which is of all package read and the column position, an error occurs.

    any way to solve?

    There is no problem with the index of line-1, as long as you read one column.

    To read several columns, you must set the start and the end of the table block. Since you know your number in the column, simply determine the line number. You can use the Row.vi last Excel get, as shown below.

  • Numbering of the lines based on two columns

    Hello world

    I´d would like to know if there is a way to achieve the numbering shown in the second table below indicating only Oracle native functions, like ROW_COUNT() on the partition, etc.

    I m using Oracle 10 g.

    The logic used is:
    From 1, increment one each time that the ORIGIN is identical to the FIRST ORIGIN of the line (ID) group.
    ID    ORIGIN    DESTINATION    ORDER
    ------------------------------------
    1     A         B              1
    1     B         A              2
    1     A         B              3
    1     B         C              4
    1     C         A              5
     
    ID     ORIGIN    DESTINATION    ORDER    NUMBERING
    --------------------------------------------------
    1      A         B              1        1
    1      B         A              2        1
    1      A         B              3        2
    1      B         C              4        2
    1      C         A              5        2
    In order to compare the ORIGIN of each line with the FIRST ORIGIN of the group, I used the function LAG to create a column that will be the FIRST ORIGIN of the value in the group.

    However, I was not able to number the lines as shown above (column NUMBERING).

    Any help will be much appreciated.

    --------------------------------------------------------------------------------------------------------------

    Test query:
    WITH T AS
    (
      SELECT 1 ID, 'A' ORIGIN, 'B' DESTINATION, 1 ORDERING FROM DUAL UNION ALL
      SELECT 1 ID, 'B' ORIGIN, 'A' DESTINATION, 2 ORDERING FROM DUAL UNION ALL
      SELECT 1 ID, 'A' ORIGIN, 'B' DESTINATION, 3 ORDERING FROM DUAL UNION ALL
      SELECT 1 ID, 'B' ORIGIN, 'C' DESTINATION, 4 ORDERING FROM DUAL UNION ALL
      SELECT 1 ID, 'C' ORIGIN, 'A' DESTINATION, 5 ORDERING FROM DUAL
    )
      SELECT T.ID
           , T.ORIGIN
           , T.DESTINATION
           , T.ORDERING
           , LAG (T.ORIGIN, T.ORDERING -1, 0) OVER (PARTITION BY T.ID
                                                        ORDER BY T.ID
                                                               , T.ORDERING) FIRST_ORIGIN_OF_GROUP
        FROM T
    ORDER BY T.ID
           , T.ORDERING

    Hello

    Here's one way:

    WITH     got_first_origin     AS
    (
         SELECT     id, origin, destination, ordering
         ,     FIRST_VALUE (origin) OVER ( PARTITION BY  id
                                          ORDER BY         ordering
                                     ) AS first_origin
         FROM    t
    )
    SELECT     id, origin, destination, ordering
    ,     COUNT ( CASE
                        WHEN  origin = first_origin
                  THEN  1
                    END
               )     OVER ( PARTITION BY  id
                           ORDER BY      ordering
                   ) AS numbering
    FROM     got_first_origin
    ;
    

    This assumes that the combination of id and order is unique. Within an id, you place your order does not have to be consecutive integers, or something like that.

    Analytical functions cannot be nested (the argument of the function of COUNTY anlytic can not call the analytical FIRST_VALUE function); The subquery is necessary.
    You could do something with a LAG, as you have tried, rather than FIRST_VALUE, but you would still need a subquery, for the same reason.

  • How can I set different background color for the slider?

    Hello
    I want to set a different color for track Slider, slider track is spitted into two sections by slider-button.
    I want to put a left gray, the right of a white.
    Under css only changes the background of the entire track, but how I can change different background color for the slider?
    Any suggestion?
    .slider {
        -fx-border-width: 0;
    }
    .slider *.track {
        -fx-background-color:white;
        -fx-background-insets:  0, 1;
        -fx-border-color: #faf0e6;
        -fx-border-width: 1;
        -fx-border-style:solid;
        -fx-progress-color:yellow;
        -fx-border-radius: 20;
    }
    .slider.knobStyle:focused .knob {
        -fx-effect: dropshadow( three-pass-box , red , 5 , 0.5 , 0 , 0 );
    }
    .slider.knobStyle:unfocused .knob {
        -fx-effect: dropshadow( three-pass-box , red , 5 , 0.5 , 0 , 0 );
    }
    .slider .thumb {
         -fx-background-color:rgb(224,225,226);
         -fx-background-repeat:stretch;
         -fx-background-size:stretch;
         -fx-background-position:center top;
         -fx-background-image:url("../images/volume_ball.png");
            -fx-padding: 10;
    }

    I don't know why I can't get the node of the track, track has always set to null and the thumb or the other.

    After that the cursor was displayed on an active scene are you doing research?

    (ex.: after you have added the slider to a scene, the scene for scene, then called stage.show ())

  • Why option + click on the tool brush sets a background color?

    Hello

    First posted question at Adobe, so I hope it's in the right place.  I use CS5 and find that when I option-click when you use the Brush tool to select a color to brush, it sets this color as my background color.  I want to put it at the forefront (of course) so that I can immediately use the color I just chose without having to exchange the back to the front.

    I can't find a setting to change this occurrence.  Any help is greatly appreciated, thank you!

    Did you follow the FAQ as to change the ring of focus on the color scheme (Panel)? In CS5, it looks a little different, but should always be obvious that swatch (foreground or background) has the focus.

    I tried to stay in the Brush tool and click on the foreground color that opens the color palette.

    Opens the color picker, not color Panel (Palette). Go window > color to bring up the color Panel. Check that the ring is on the foreground swatch in the color Panel.

    Also, which version is your OS?

    CB

  • Change the background color of line based on a column value

    Hello

    in a report, I want to change the record to the red background color if the value of a specific column is 'NO' in the folder. Please help me.

    Thank you.

    Try this

    I had this same problem and found that by using the following only highlighted the background of the text and not the entire cell

    
    

    I then swapped the use of div (as below) and this has solved my problem

    select test_table.column1 as "yes_no",
          CASE WHEN column2='NO'
             THEN '
    '||column2||'
    ' ELSE column2 END "column2" from test_table

    This has been tested in 3.2.1 - should work with other versions so

    Gareth

  • APEX 5.0 Interactive report (nopadding, how to set the line height)?

    APEX 5.0.

    Theme: 26. Productivity applications

    Interactive report region

    Where and how can I global set Dimensions height of the line and policies, etc., lines in interactive report?
    I use standard interactive report.

    Thank you

    user555867 wrote:

    Please help me in detail.

    The best way to get detailed help is to create an example on apex.oracle.com and share credentials of developer comments in the workspace here.

    I have:

    1 created a (= external CSS style sheet) file with the name 'ir_css_padding.css' local on PC (C:\tmp).

    2 added "Shared components"-> 'Static Application files'-> 'Download the file statistics Appl.': 'c:\tmp\ir_css_padding.css '.

    3. under "attributes of User Interface:

    (General properties)

    The value 'Statistics file prefix': ' #APP_IMAGES #ir_css_padding.css.

    'Media Type' value: text/css

    Why have you changed these settings? They are not relevant to the addition of static CSS files in the repository database. Read the help on line for these properties:

    Static file prefix

    Determines the virtual path of the Web server uses to point to static files when you use the #APP_IMAGES substitution string #.

    Do not specify what to do refers to files that are stored with your application definition in the database.

    For performance reasons, you can also store your application files on your Web server. Use a valid URL to refer to them.

    Media type

    Enter the Internet media type. An Internet media type is identifier into two parts for the formats of files on the Internet. A media type is composed of at least two parts: a type and a subtype and one or more optional parameters. This type of media used in the HTTP Content-Type header when the page is rendered.

    If both the values of page-level and the level of the application for the media Type are NULL, text/html is used.

    Two of these parameters must be null in your current environment.

    (The User Interface definition)

    "CSS File URL' value: 'text/css/ir_css_padding.css '.

    This parameter must use the static text of APP_IMAGES substitution string:

    &APP_IMAGES.ir_css_padding.css

    After that, I can't jerome in application. (See the only CSS text in the browser)

    --> WHAT IS THE PROBLEM?

    APEX is serving pages using the type of text/css media according to the incorrect media Type parameter described above. Remove and the app will return to normal.

    4. WHERE and HOW VALUE / reference the CSS file?

    I need this change for all interactive reports in my application, self think I can change my model that I use: 'interactive report Region '.

    Interactive report region isn't just a region container designed for use with interactive reports. It does not control the appearance of the interactive reports somehow. Not there at - it a report model for interactive reports. Their appearance can be changed using CSS.

  • Possible to set a background color to a single line of text?

    Hello, I am a beginner in InDesign and I'm doing a simple model that should look like this:

    Skärmavbild 2013-03-22 kl. 21.05.51.png

    The titles are now areas of separate text with a background color assigned to them. Is it possible to create a similar effect as a style (width 100% with a background color)? Now you need to copy and paste a text box whenever you need a title. If you add / remove of some body text, you will need to move everything manually. I want to type all of the text in a single textbox with titles, but I want the headlines to look like the picture above. I tried to create a style, but I can't find a property of background color, or watching the wrong settings. I use CS6.

    Thank you!

    To fill the entire width of the page, you the text box should be set to the width of the page, or adjust the left and right indents to expand the rule.

    For the rounding rule, I just read on a tip yesterday to achieve this. Use a rule dotted with padding and gap of the same color:

  • How to set the line current

    Dear all,

    I have a panelFormLayout with some fields on this and there are other hidden required fields I want to put values in the button submit, I'm here links but I don't know how to set the current row programmatically.

    Thanks in advance.

    Hello

    You could do something like this:

    Binding DCIteratorBinding = ADFUtils.findIterator ("EmployeesView1Iterator");

    Line currentRow = binding.getCurrentRow ();

    currentRow.setAttribute (attrName, "attrValue");

    Concerning

    PS:

    public static DCIteratorBinding findIterator (String name) {}

    DCIteratorBinding iter =

    getDCBindingContainer () .findIteratorBinding (name);

    If (iter == null) {}

    throw new IteratorNotFound ("iterator '" + name + "' not found");

    }

    Return to iter;

    }

  • Set the line report radio group when it is clicked on a link column.

    Can Hi anyone help?

    I have a sql report with a group on the left radio record selector, it is used on click to fill out some additional fields in the page. I also have a column of link on the right side of the report that is used to display another page in popup. What I want is to synchronize the group radio selector when the link is clicked (i.e. Select and click on the current online radio group when the link column is selected).

    Page layout

    RG1 link pencil icon line details
    RG2 link pencil icon line details
    RG3 link pencil icon line details

    additional field 1
    additional field 2

    Report of the attributes - link URL column.
    JAVASCRIPT: modalWin2 ('f? p = & APP_ID.: #SHOW #: & SESSION.: SAVE_STATUS: no);



    I guess I can call another function of javascript in the URL from the link above, and somehow, I get the number of the line of the selected link. I think that if I can get that I can use the code below, where n is the row number of the selected link.

    JavaScript: -.

    var l_check = $x_FormItems ($x('EVENT_HIST1'), 'radio');
    checked l_check [n] = true;
    var l_click is l_check [n] ravishing ();.

    Thanks, Pete

    Pete:

    One way to resolve your condition is as below

    Modify the report query to be something similar to

    select
    apex_item.radiogroup(40,empno,null,null,'id=rg_'||rownum) rad,
    ename,
    '' link_column
    from emp
    

    And the JS function fx as

    function fx(emp,rgId) {
    $x(rgId).checked=true;     // checks radio on this row
    modalWin2('f?p=&APP_ID.:' + emp + ':&SESSION.::::SAVE_STATUS:N'); // popup page call
    }
    

    CITY

  • How to add a background color to a line of text?

    Hello, Adobe Forums.

    I have a small question:


    Would it be possible to create a style where it has a background color that crosses the screen? (see attachment)

    At work, I was given some materials where this color was made. It was done in MS Word, but it was attached directly to the text. I want to do because I am creating a number of models, and the way I do now is not very convenient (contained in the text box and a text box to second, colorful, is placed under the it). It would be possible to do what I'm doing? Research lead me to highlight the text through the use of underscore + changes in weight and offset, but I need the coloring to go the length of the page.

    Thanks for your suggestions.

    Untitled.png

    Use a net of paragraph. Set the thickness and offset appropriately.

    Note that will work well with a paragraph on a single line.

    Bob

  • How to divide the lines based on two columns...

    Hi all...
    I have a requirement.

    I have the product, sale, purchase price column... (total of three columns) in a data set.

    my data set is in such a way that... If the sale price is... There is no purchase price and vice versa...

    I need too present in a report, two tables:
    Table 1 includes only the elements of retail price
    Table 2 should only contain the right elements.
    Please see the below photo for good understanding...
    Is this feasible? Where do we need to impose a condition? I tried to impose a condition, but it doesn't seem to work

    http://i51.Tinypic.com/29xfdc6.jpg


    Help, please.

    Can you send me the xml file and the model of [email protected]? I can try to help.

    Have you tried to filter the records by the sale or purchase price is not equal to null column price?

    Thank you
    Bipuser

  • Setting the text of a field with values from the list

    Hello

    I created a list with three properties and three values. I also three fields when the user types in
    simple text characters in the fields (fieldA, fieldB and fieldC), a button and a field empty that I created.

    In the list, I put = the text in each field property values. When I click on my button, I want to display
    ONLY the values of each property in the same field (for example: "Geils"). I can display a value of a property,
    but I need to display all the values of three properties. For example, if text fieldA =, text of fieldB = B and fieldC text = C.
    then when I hit the button, I would like to than "Geils' to read 'ABC '.
    Here's the jargon I've attached to my button (see the commented lines in the script for more info)

    global partNumber
    partNumber = [#prop1: the text of the field 'fieldA', #prop2: the text of the field "fieldB", #prop3: "fieldC" text]

    -the following line works to the value of #prop1 in "Geils".
    put getaProp (partNumber, #prop1) in the text of the "Geils" field

    -When I try the jargon to the next line, I get "[#prop1: 'A', #prop2: 'B', #prop3: 'B']" in the "Geils".
    Put the PartNumber in "Geils".

    I don't want the properties, only the values of all three in the field "Geils".
    I'm simplifying the explanation for ease of understanding. The application and the user input is to generate
    a reference number of a standard product offering that has several options for Assembly of products.
    Is this possible? I'm not that great at lingo and any help would be appreciated.

    Thank you very much
    Chris kotlinski ([email protected])

    Put PartNumber [#prop1] & [#prop2] PartNumber or PartNumber [#prop3] in
    Member "Geils".

  • Conditional text in Table - problems with setting the line height

    Hey there,

    I'm German, but I try to express my problem in English as I can. Not always easy with different menu names. Hope you get what I mean! :-)

    As you can see in my attached screenshot, I placed the text in a table.

    Text height is set: minimum 1.5... so it adapts to the amount of text.

    That's what I want - it should adjust the height of the conditional text marked/s.

    It always adjusts the height when I blind on the first line lines oder between (for example line 2 + 3 4).

    But if I want to blind on the last lines, there is a number at the end and an extra empty line with #.

    I know the # means hidden following text, but why it works with the red/green text.

    There are also some hidden text (green), but the brand # is just after the last word - not in a new line.

    Does anyone have a solution for this?

    Thanks in advance!

    Screenshot_conditional_text.png

    So far, it's ok. A sign of the end of a text paragraph forces a new line.

    To change, do the following:

    For each condition, you need another condition for the paragraph sign that comes immediately after the condition. Not after each paragraph of a condition, but at the end of each consecutive numbers of the paragraphs of the same condition.

    So in your third example you will need more of two conditions:

    1. one for the paragraph at the end of the condition «meaasurements» sign

    2. one for the sign of paragraph at the end of the condition 'price 2 '.

    Whenever you perform other invisible conditions, you must also disable the new conditions that sign a single control paragraph.

    See the following screenshots:

    Uwe

Maybe you are looking for