Change the background color of a cell of APEX_ITEM

Hello

I created a javascript script to change the background color to double click on the cell in particular, and he works for as a normal table.
However, I created another tabular form using APEX_ITEM and unable to reproduce the same behavior... Tips on how to do it if I use APEX_ITEM?

Thank you

Something like that?

apex_item.text(
...
p_attributes => 'onclick="javascript:change_color(this);'
){code}

Your existing code would help...

Scott                                                                                                                                                                                                                                                                                                                                    

Tags: Database

Similar Questions

  • First HP: Change the background color of a cell in the spreadsheet app (program)

    I created a very simple program to change the background color of two cells in the speradsheet application:

    First version of HP 2015 6 17. 8151 Rev

    1. EXPORT BGCOLORCHANGE()

    2. START TO

    3 STARTAPP("Spreadsheet");    Application of the open worksheet

    4 STARTVIEW (2,3);    in the symbolic view

    5 Cell (1,1,7): = RGB (0,255,0);    cell A1 green paint

    6 cell (1,2,7): = 31744;    red paint A2 cell

    7. END;

    PROBLEM: instruction 6 works, but section 5 only. Why?

    Thank you!

    The background color of worksheet uses 5 bits per color channel, then the function RGB() expects 8 bits per channel.

    The background color of worksheet can be calculated by: R * 32 ^ 2 + G * 32 + B where R, G and B are between 0 and 31 inclusive.

  • Change the background color of a cell in the report - < td bgcolor >

    Hello.

    I have a report in which I would like to change the background color of a table cell based on certain values in the underlying query

    If A column > > 10, column B and column C I want to color the green background. In my cgi, it was easy, but by their Summit, even if I write the query to the html output will be all already be wrapped in the < td > < table > tags? Is there a way to get around this?

    Thank you

    Hello

    You must apply the formatting on column targets: COL_A, COL_B, and COL_C, NEW_COL will be hidden report column.

    Change the attribute of report and add further style COL_A and change its attribute link

    <span style="background-color: #NEW_COL#;">#COL_A# (COL_A Link Text)
    <span style="background-color: #NEW_COL#;">#COL_B# (COL_B Link Text)
    <span style="background-color: #NEW_COL#;">#COL_C# (COL_C Link Text)
    
    Also the URL link should be common ##NEW_COL#
    

    Thank you
    Manish

  • change the background color of specific table cell

    Hello

    I'm trying to highlight the cell when the max value occurs in the attached VI.

    In addition, as it is a secondary function, possible to change the background color of this specific cell?

    Thank you

    hiNi

    This?

  • 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;

    }

  • Difficult to scroll with the background color of table cell

    When I changed the background color of cell, the table has become difficult to achieve.

    And I can't finish change the cell background color, it takes forever.

    Anyone encountered this problem before?

    LabVIEW 2011 on WinXP.

    Hello Zou,.

    The problem is not with "background color of the cell.

    But the problem is with the "size of the Table!

    When the size of your table is huge, the windows + chart LabVIEW take longer to scroll.

    Attached VI may help you to experience the same. Change the size of the table and the roll of experience.

    Solution: -.

    1 initialize the Table for that size, if the size of your table is small.

    2. use a table (UI) + Scroll Bar (Manual from Numeric range) + internal buffer (block diagram), for the size of the huge table

    Kind regards

    Yogesh Redemptor

  • JavaScript allows you to change the background of a table cell


    After a few hours searching for the answer to this frustrating problem, I have to ask the experts:

    How can I change the background of a table HTML via Javascript? The background is one of the two colors possible, based on a variable which is calculated. The table is a 2 x 3 and each cell will change the background color based on the variable.

    Thank you very much for your help!

    http://www.WebmasterWorld.com/forum91/485.htm

  • How can I change the background color of lines / odd in a panelCollection

    Hello world.

    I use a panelCollection and I need to change the color backgroung odd/even rows in the table,
    How can I do this using a style sheet, is there a special selector or property for that?

    globalResultCollection (object UIPanelCollection), is a collection of Our elements, and it works fine.
    I just want to change the background color by default for the lines.


    Thank you

    < af:panelCollection id = "GLOBAL_RESULT_COLLECTION".
    Binding = "#{admin." View.globalResultCollection}.
    styleClass = "globalResultCollectionRegion."
    clientComponent = "true" >

    < f: facet = 'menu' name >
    < af:menu id = "GLOBAL_OPERATION_MENU".
    Binding = "#{admin." View.globalOperationMenu}"/ >
    < / f: facet >

    < f: facet name = "toolbar" >
    < af:toolbar inlineStyle = "width: 100%".
    Binding = "#{admin." View.globalOperationToolbar}.
    ID = "OPERATION_TOOLBAR" / >
    < / f: facet >

    < / af:panelCollection >

    Hello

    Use this:
    AF | : the table-row af data | : the column cell data {background-color: #CCCCFF ;}}
    AF | : the table-row af data | column: banded-data-cell {background-color: #FFCCCC ;}}

    Kind regards
    s o v i e t

  • How can I change the background color for the bar 'help file edit view history bookmark tools' in Firefox 29,0

    How can I change the background color for the bar 'help file edit view history bookmark tools' in Firefox 29,0

    You can add a theme of solid color to change the color of the top of the browser window, which contains the Menu bar.

    https://addons.Mozilla.org/en-us/Firefox/themes/solid

  • 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.

  • How can I change the background color of my iPad

    How can I change the background color of my iPad 1 5.1.1

    You can change the wallpaper via settings > brightness and wallpaper

  • Change the background color of comments in numbers?

    Is it possible to change the background color of comments in a document of numbers?

    I couldn't find a way to do it on my iMac, but I managed to change the color of comments in a document of iCloud numbers, and now he's changed the background color of comments on the document of numbers on my iMac.

    You may have found the only access to the color of the note

  • How to change the background color of a text indicator?

    I have an ASCII/text indicator on my FP. FP uses a .png file as the background, with a block diagram. The diagram is a white background with lines black, figures, etc. I wish I could change the background color of the indicator of ASCII text / to white, so that it better matches the white background of the block diagram.

    LabView 2009 SP1 running.

    Thank you

    Have you tried the brush in the tool palette?

  • 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 can I change the background color of the indicator

    Hello

    I want to change the background color of an indicator. (Yellow in the image as an attachment).  I would like to know, what property node manages this value so that I can wire a box of color to it.

    Thank you

    Jason

    Digital text > text colors > BG color

Maybe you are looking for