Get the range of values such as the value of my line

Hello

I want one of my column in the table ("for example: column name = ' GVW") appears as below
{code}
PBV
----------------
0-> 5
5. > 10
10 > 15
{code}


The values of the line comes from the table, called report_range_parameters table and it looks like in below

{code}

ID group name min_value max_value
1 gvw_group 0 5 gvw_name
gvw_group 2 5 10 gvw_name
3 gvw_group 10 15 gvw_name

{code}

Here's my INSERT sample data.
{code}

INSERT INTO REPORT_RANGE_PARAMETERS (ID, GROUP, NAME, MIN_VALUE, MAX_VALUE)
VALUES ('1 ', 'SPEED_GROUP', 'SPEED_NAME', '0', 5')
INSERT INTO REPORT_RANGE_PARAMETERS (ID, GROUP, NAME, MIN_VALUE, MAX_VALUE)
VALUES ('2 ', 'SPEED_GROUP', 'SPEED_NAME', '5', 10')
INSERT INTO REPORT_RANGE_PARAMETERS (ID, GROUP, NAME, MIN_VALUE, MAX_VALUE)
VALUES ('3 ', 'SPEED_GROUP', 'SPEED_NAME', '10', 15')


{code}

How I write a query to get the values of line like below?

-----------------
GVW |
-----------------
0-> 5
5. > 10
10 > 15



Thank you

Hello

SELECT min_value || ' -> ' || max_value AS GVW FROM REPORT_RANGE_PARAMETERS;

Kind regards

Published by: Walter Fernández on 12 June 2009 20:45

Tags: Database

Similar Questions

  • Effect of line DataGrid or get the DisplayObject to a line

    Hello

    I want to apply an effect on a line of DataGrid that differs depending on the success or failure of a HTTPService request.  I can't figure out how to get the DisplayObject to an entire line to apply the effect to.  Everything I've found seems to give access to the dataProvider underlying.  Any help would be greatly appreciated.

    Thank you!

    There is no unique display for a line object, it's a horizontal placement of converters.  Choose a Visual that can be created in pieces and have each converter to do its share.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc..

    Blog: http://blogs.adobe.com/aharui

  • How to get the status of VO line lines

    Hello

    I have a table area and there are many records to retrieve an entity based in VO. Now, I've updated a line or lines, I need to display the changed records once on the next page. How can I view? I want to capture status line this kind of thing while pressing save button.

    Thank you.

    Problem solved by creating a new field (IS_SUBMITTED) in the database table to report the registration State with the default value in the form N (updated all existing records if there are in the table);

    Step 1: Access the properties on your EO and navigate to Java and verify the Data Manipulation

    Step 2: Go to your class EOImpl and research of method doDML

    Step 3: Under the doDML method below adds the code to set the value of the attribute EO;

    If (getIsSubmitted () .equals ("N")) {}

    setIsSubmitted ("M"); where as a M stands for updating the

    }

    Step 4: In your controller @ PFR class, write the code for the loop and game of the State of the attribute as below;

    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    If (pageContext.getParameter ("SubmitButton")! = null) {}

    am.invokeMethod ("apply");   Save the records so the EOImpl will set the is_submitted to am "everywhere where the record changed state"

    OAViewObject EmpPhoneVO = (OAViewObject) am.findViewObject ("xxPerPhonesVO1");

    int empPhoneRowCnt = EmpPhoneVO.getRowCount ();

    EmpPhoneVO.first ();

    for (int i = 1; i)<=empPhoneRowCnt;>

    OARow empPhoneRow = (OARow) EmpPhoneVO.getCurrentRow ();

    String lPhoneValidated = "Y";

    your validation, if applicable

    If (lPhoneValidated.equals("Y")) {}

    System.out.println ("IsSubimtted after getting:" + empPhoneRow.getAttribute ("IsSubmitted"));

    If (empPhoneRow.getAttribute("IsSubmitted").equals ("M")) {}

    empPhoneRow.setAttribute ("IsSubmitted", "S");

    }

    System.out.println ("IsSubimtted after the value:" + empPhoneRow.getAttribute ("IsSubmitted"));

    SubmitMessage OAException = new OAException ("coordinates of the employee: rank #" + i + ": submitted for approval to the agent relationship.",)

    OAException.CONFIRMATION);

    pageContext.putDialogMessage (submitMessage);

    }

    EmpPhoneVO.next ();

    }

    }

    Kind regards

    Adnan...

  • Get the same results without line of sight

    Hi gurus,

    My version of the database is 10.2.0.4.0.

    I have a couple of tables as follows:

    CREATE TABLE xxgroups(group_number NUMBER, description VARCHAR2(30));
    
    INSERT INTO xxgroups VALUES(1,'Group 1'); 
    INSERT INTO xxgroups VALUES(2,'Group 2');
    INSERT INTO xxgroups VALUES(3,'Group 3');
    INSERT INTO xxgroups VALUES(4,'Group 4');
    INSERT INTO xxgroups VALUES(5,'Group 5');
    
    CREATE TABLE xxgroup_persons(group_number NUMBER, person_number NUMBER, first_name VARCHAR2(30), last_name VARCHAR2(30));
    
    INSERT INTO xxgroup_persons VALUES(1, 1, 'John', 'Smith');
    INSERT INTO xxgroup_persons VALUES(1, 2, 'James', 'Smith');
    INSERT INTO xxgroup_persons VALUES(1, 3, 'Joe', 'William');
    INSERT INTO xxgroup_persons VALUES(2, 4, 'Julien', 'Ford');
    INSERT INTO xxgroup_persons VALUES(2, 5, 'James', 'Kelly');
    INSERT INTO xxgroup_persons VALUES(3, 6, 'Francis', 'Smith');
    INSERT INTO xxgroup_persons VALUES(5, 7, 'Jerry', 'Ford');
    INSERT INTO xxgroup_persons VALUES(5, 8, 'Alfred', 'Willis');
    INSERT INTO xxgroup_persons VALUES(5, 9, 'Jon', 'Preston');
    
    COMMIT;
    I would like to get a query to return for each group, the person with less person_number (if no one assigned to the group, then the query must return again with an empty person group). I know I can do this by using for example:
    SELECT group_number, person_number, first_name, last_name 
    FROM (SELECT a.group_number, b.person_number, b.first_name, b.last_name
               , RANK() OVER (PARTITION BY a.group_number ORDER BY person_number) person_order
          FROM xxgroups a, xxgroup_persons b
          WHERE a.group_number = b.group_number (+)
         ) 
    WHERE person_order = 1
    ORDER BY group_number;
    
    GROUP_NUMBER PERSON_NUMBER FIRST_NAME                     LAST_NAME
    ------------ ------------- ------------------------------ ------------------------------
               1             1 John                           Smith
               2             4 Julien                         Ford
               3             6 Francis                        Smith
               4
               5             7 Jerry                          Ford
    but it would be possible to achieve the same results without inline mode?

    Thank you.

    You can try this function KEEP:

    scott@orapdt>  SELECT a.group_number,
      2         min(b.person_number) as person_number,
      3         min(b.first_name) keep (dense_rank first order by person_number) as first_name,
      4         min(b.last_name) keep (dense_rank first order by person_number) as last_name
      5  FROM xxgroups a, xxgroup_persons b
      6  WHERE a.group_number = b.group_number (+)
      7  group by a.group_number;
    
    GROUP_NUMBER PERSON_NUMBER FIRST_NAME                     LAST_NAME
    ------------ ------------- ------------------------------ ------------------------------
               1             1 John                           Smith
               2             4 Julien                         Ford
               3             6 Francis                        Smith
               4
               5             7 Jerry                          Ford
    
    5 rows selected.
    
  • How to get the total number of lines workbook Table Page-Details

    Hi all

    I built a workbook Page-detail Table. In addition, my section of the page is 'user of assets '. Then, when I click the users button, it shows me, credit notes different from the user that I was selected. The problem is that I want to show a percentage by user.

    For example:
    -------------------

    The query returns me assets 40 for all users.

    But for example I click the first user who has only 10 credit notes.

    I want to show at the end of the page: "this user is:" 25% (because I calculate 10 * 100/40). "."

    How can I do this? Because I found that I can show the number of lines that are in the screen, but not the total of the lines referring to my request.

    I use Oracle Desktop, but I have no problem using Oracle Discoverer Plus.

    I really appreciate your help.

    Best regards!
    Mariano. -.

    You can do it directly in the front as you wish but you can manipulate the spreadsheet to do something like.
    By creating a calculation that will contain the data you need you can then present in the page point right next to the user name.
    If you change the user in the page element, it will present the % that you wanted.

    do that create a new calculation, called "is the percentage of this user:
    To_char (COUNT (credit memos) OVER (PARTITION BY User) * 100/COUNT(credit memos) OVER (), '990D99'). « % »

    Place the calculation in the page element.

    There is a small restriction since if you just change the user it will work fine, but if you pick the design value, then you will get a mess.

    Beside that, you can use the 'text area' of the discoverer and put for example here: (exactly the name of the calc) "& is the percentage of this user.

    Well, it's not perfect, but maybe it can be used...

  • Why do I get the yellow and red lines running through my images on pause?

    How is it that when I stop my images, it looks like this:

    Screen Shot 2015-09-15 at 2.19.29 PM.png

    and when I play it goes back to normal and it seems fine.  I normally wouldn't mind what happens but when I make it on these messed-up frames are coming in the rendering.  Any ideas? I tried the images in different formats.  I am running first on El Capitan Beta, but this has never been a problem.

    Thank you!

    OpenCL is your problem.  I'm assuming that the integration of metal performance GPU has affected the functioning of first with OpenCL.  Reading CUDA mercury switch or software and it will get rid of these lines.

    However, I noticed a reading with OpenCL is very nice.  I can see the difference in speed during playback.  If you can get on the yellow & red lines annoying pause

  • Get the error ora-06550: line 1, column 28 met the symbol «;»

    The code is:

    create or replace procedure while (empid number, varchar2 lname) is
    Meter number;
    fact number;
    Start
    Select max (department_id) in terms of employees where employee_id = empid;
    All counter < = loop 3
    insert into employees (department_id, last_name, employee_id) values ((did+counter), empid, lname);
    counter: = counter + 1;
    end loop;
    end;
    /

    I think I got it. You named the procedure WHILE. And althouh everything IN is not a reserved word, but a key word, I'd stay away from that name. What is your version complete:

    Select * from version of v$.

    SY.

  • How to get the values of the table of the ADF to bean class?

    Hi all

    My 11.1.1.6 Jdev

    Here I do not use BC ADF in my project.  I'll put values in the ADF table with bean.

    In the table, I put a checkbox. When I selected (Checkbox) a few rows in table and submit. In the submit method, I want to get all the values of line checkbox selected in my bean class.

    How can I get the values. ???

    Here my table UI code

    < af:table var = "row" rowBandingInterval = "0" id = "t1" value = "#{pageFlowScope.BinderSolutionsBean.uiBinderProperties} '"

    styleClass = "AFStretchWidth" emptyText = "no record found".

    Binding = "#{pageFlowScope.BinderSolutionsBean.binderTree}" >

    < af:column sortable = "false" headerText = "Script ID" id = 'c4' >

    < af:panelGroupLayout id = "pgl4" >

    < af:selectBooleanCheckbox id = 'sbc1' > < / af:selectBooleanCheckbox >

    < af:spacer width = "5" / >

    < af:outputText value = "#{row.scenarioId}" id = "ot5" / > "

    < / af:panelGroupLayout >

    < / af:column >

    < af:column sortable = "false" headerText = "Quote ID" id = "c1" >

    < af:outputText value = "#{row.quoteId}" id = "ot4" / > "

    < / af:column >

    < af:column sortable = "false" headerText = "NASP ID" id = "c2" >

    < af:outputText value = "#{row.naspId}" id = "ot2" / > "

    < / af:column >

    < af:column sortable = "false" headerText = "GCH ID" id = 'c3' >

    < af:outputText value = "#{row.gchId}" id = "ot3" / > "

    < / af:column >

    < af:column id = "c6" headerText = "Term" >

    < af:outputText value = "#{row.term}" id = "ot9" / > "

    < / af:column >

    < af:column sortable = "false" headerText = "Status" id = "c5" >

    < af:outputText value = "#{row.status}" id = "ot6" / > "

    < / af:column >

    < / af:table >

    follow some above recommendation such as the creation of additional attribute. You will also need the key in your collection, while making the data for your chart.

    You must write a custom selectionListener. On valueChangeEvent of box, get the key of a line and add the line at the bean.

    Maybe it's little help for you

    https://tompeez.WordPress.com/2012/01/22/jdev-custom-SelectionListener-for-viewobjects-in-rangepaging-mode/

    How to get the selected row in a table no-bind ADF

  • How to get the value of the cell in a bean of a table of the adf in the screen at the click of the button.

    Hello

    I have an editable table in my screen. When the user enters text on any cell in the column, I would like to get the text entered my beans for this cell when the button is clicked.

    And if you use BC?

    Quite simply, take table iterator form pageDef and get the appropriate attribute of line current value...

  • get the size of vo with paging enabled range

    IId

    I have a VO instance with current ranging page in the settings.

    I have to get the total number of lines in the t so what should I write for this?

    vo.getRowCount does not work once the from page is activated.

    Vik

    vo.getestimatedRowCount () gives the number of rows you or you can use EL as

    #{bindings.yourViewIterator.estimatedRowCount}
    

    Timo

  • How to get the sum of "(qty*rate) as salesValue 'as TotalSalesValue cust_id agenda?"

    Mr President.

    I have to take the column values from3, or 4 tables and two of them need to be multiplied, then get the sum of this value multiplied by using Group by and order clause.

    as below

    cust_id prod name Qty. rate value totalValue
    01one01500500
    01b024008001300

    How to get there

    Select

    cstmr.cust_id CustId,

    PRDT. Name AutoCAD,

    SL.sal_qty SalQty,

    SL.unit_sal_price UnitSalPrice,

    SL.sal_qty * SL.unit_sal_price as SalVal,

    Sum(SL.sal_qty*SL.unit_sal_price) as TotalSalesValue

    Of

    cstmr customer,

    salesLine sl,

    prdt product

    where

    PRDT.prod_id = sl.prod_id

    Group

    cstmr.cust_id,

    PRDT. Name,

    SL.sal_qty,

    SL.unit_sal_price

    order by

    cstmr.cust_id

    Concerning

    Your expected results include values that are not in your input data - there is no M.BOARD product, for example. This is an adaptation of Manik code that will give you the subtotals for each customer:

    SELECT client_name c.nom,

    product_name p.Name,

    SL.sal_qty,

    SL.unit_sal_price,

    SL.sal_qty * SL.unit_sal_price AS salesvalue,

    CASE

    WHEN ROW_NUMBER () OVER (partition by order of c.cust_id p.prod_id desc, sl.sal_id desc) = 1 THEN

    SUM (sl.sal_qty * sl.unit_sal_price) OVER (PARTITION BY c.cust_id)

    END totals

    FROM customer c INNER JOIN sales s ON s.cust_id = c.cust_id

    INNER JOIN salesline sl ON sl.sal_id = s.sal_id

    INNER JOIN product p ON p.prod_id = sl.prod_id

    ORDER BY c.cust_id, p.prod_id, sl.sal_id

    You could get the grand total of lines by the Union in a second query, or by doing something smart using ROLLUP. But I leave that to you because I think you should at least do some of your own homework.

  • How a TableView can iterate over the lines and get the cells?

    I need to iterate over all rows in a TableView without using events. I would like to get the total number of lines, TableRow and a cell of a TableColumn specified in the TableRow.

    Something like this:
    for(TableRow tableRow: tableView.getRows()){
        Cell cell = tableRow.getColumn(4).getCell();
        // do something to the cell 
    }
    Is this possible?

    Published by: Conzar on May 19, 2013 23:18

    However, the problem with the checkbox has been resolved so I don't need to iterate over the lines longer.

    Yes, don't use do not research to manage this is a much better solution, I just gave my search for a solution based on because you asked an iterative solution.

    Below (research) code produces no output.

    It works for me, I've included an example of executable, so you can try it.

    My guess is that you are not taking into account the fact that the research is just a glimpse of the cells of the table at a time in time.
    If you do a search for cell before show you the table on a stage, he's not coming back what it is because the cells are generated only on an as needed basis, and there is no need to generate all the cells before displaying the table on a stage.

    I get the following output on Win7 Java8b89:

    NumberedTableViewSample$2$1@344fe46[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@44187690[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@34618adc[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@61eb7609[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@50b006a1[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@307d4153[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@89b7483[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@70ce61fd[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@178969ad[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@e3149ea[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@3683d879[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@589e421f[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@7e26215b[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@69d59720[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@1ad26ff1[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@32b058e4[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@582e254[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@261c4ebd[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@2cb9cfb[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@63c6fe00[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@16a98443[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@58247401[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@34dc3da4[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@78a62ea[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@29e0032e[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@1781c971[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@18b2e479[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@4801295b[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@19e4c622[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@6a766d41[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@572aed5d[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@3bdf71a4[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@524c48c7[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@47b5a3ea[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@6ef8b38b[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@7fd2ee72[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@4994195c[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@49620450[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@246d8751[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@17e90472[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@def00[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@d1aa50a[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@2a7a58ba[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@2675cbd1[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@1c06ee08[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@1685718d[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@6ba1936c[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@61ef15e5[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@6b2ace30[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@3c4d17c7[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@1c3c9aad[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@27eadfe[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@3f83a064[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@579615f1[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@52a9271b[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@1d221557[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@18947d9e[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@537eab32[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@687cc257[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@3d524978[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@44554375[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@22f89594[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@1f891aaf[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@bafcb2f[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@7ddeea8c[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@26023325[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@4b14700f[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@89eb58[styleClass=cell indexed-cell table-cell table-column]
    NumberedTableViewSample$2$1@6a55a4a6[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@7d95454d[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@375592eb[styleClass=cell indexed-cell table-cell table-column]
    TableColumn$1$1@7add3f35[styleClass=cell indexed-cell table-cell table-column]
    

    TestApp:

    import javafx.application.Application;
    import javafx.beans.property.ReadOnlyObjectWrapper;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.value.ObservableValue;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.geometry.Insets;
    import javafx.scene.Group;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.TableCell;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TableColumn.CellDataFeatures;
    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;
    import javafx.util.Callback;
    
    public class NumberedTableViewSample extends Application {
    
        private TableView table = new TableView<>();
        private 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]")
            );
    
        public static void main(String[] args) {
            launch(args);
        }
    
        @Override
        public void start(Stage stage) {
            Scene scene = new Scene(new Group());
            stage.setTitle("Table View Sample");
            stage.setWidth(470);
            stage.setHeight(500);
    
            final Label label = new Label("Address Book");
            label.setFont(new Font("Arial", 20));
    
            table.setEditable(true);
    
            TableColumn numberCol = new TableColumn("#");
            numberCol.setMinWidth(20);
            numberCol.setCellValueFactory(new Callback, ObservableValue>() {
              @Override public ObservableValue call(CellDataFeatures p) {
                return new ReadOnlyObjectWrapper(p.getValue());
              }
            });
    
            numberCol.setCellFactory(new Callback, TableCell>() {
              @Override public TableCell call(TableColumn param) {
                return new TableCell() {
                    @Override protected void updateItem(Person item, boolean empty) {
                        super.updateItem(item, empty);
    
                        if (this.getTableRow() != null && item != null) {
                          setText(this.getTableRow().getIndex()+"");
                        } else {
                          setText(null);
                        }
                    }
                };
              }
            });
            numberCol.setSortable(false);
    
            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(numberCol, firstNameCol, lastNameCol, emailCol);
    
            final VBox vbox = new VBox();
            vbox.setSpacing(5);
            vbox.setPadding(new Insets(10, 0, 0, 10));
            vbox.getChildren().addAll(label, table);
    
            // this lookup set won't print anything as no cells have been generated.
            for (Node r: table.lookupAll(".table-row-cell")){
                for (Node c: r.lookupAll(".table-cell")){
                    System.out.println(c);
                }
            }
    
            ((Group) scene.getRoot()).getChildren().addAll(vbox);
            stage.setScene(scene);
            stage.show();
    
            // now the table has been initially rendered and it's initial set of cells generated,
            // the cells can be looked up.
            for (Node r: table.lookupAll(".table-row-cell")){
                for (Node c: r.lookupAll(".table-cell")){
                    System.out.println(c);
                }
            }
        }
    
        public static class Person {
    
            private final SimpleStringProperty firstName;
            private final SimpleStringProperty lastName;
            private final SimpleStringProperty 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 String getLastName() {
                return lastName.get();
            }
    
            public void setLastName(String fName) {
                lastName.set(fName);
            }
    
            public String getEmail() {
                return email.get();
            }
    
            public void setEmail(String fName) {
                email.set(fName);
            }
        }
    } 
    
  • Get the amount of the last date

    Greedings,

    Sorry for my question of amateur but how is it possible to get the (column1) amount of the last date (column2)
    To get the last date we use Column2 but how to get the amount of this line of Column1?

    Thank you for your help

    Another way using analytical functions...

    SQL> select distinct first_value(sal) over (order by hiredate desc) from emp;
    
    FIRST_VALUE(SAL)OVER(ORDERBYHIREDATEDESC)
    -----------------------------------------
                                         1100
    

    Order by hiredate desc, gives us the dates in descending order, the 'maximum' date is first, then we can get the first_value of the column we want based on that (give us the first value of lines in ascending order of lines). Because this is an analytic function, it applies the same value to all the rows in the table, then use separate to get just the value of a.

  • get the lov rank = javax.el.ELException: java.lang.NullPointerException

    I use this baking bean with a session scope to get the attributes of first lines for lov programmatically.
    But it returns e an error when try to get lov (.findIteratorBinding): "javax.el.ELException: java.lang.NullPointerException.

    I checked the query one it is corect and fear data.

    my version jdev are 11.1.1.6

    ======================================
    JSPX fragment
    ======================================
    < af:outputText value = "#{UserbeanBean.UserType}" id = "pt_ot4" / > "
    ======================================
    Backing bean
    ======================================



    package view.backing;

    import java.io.IOException;

    import java.util.Date;

    Import javax.faces.context.ExternalContext;
    Import javax.faces.context.FacesContext;
    Import javax.faces.event.ActionEvent;

    to import javax.servlet.http.HttpServletResponse;
    Import javax.servlet.http.HttpSession;

    Import oracle.adf.model.BindingContext;
    Import oracle.adf.model.binding.DCBindingContainer;
    Import oracle.adf.model.binding.DCIteratorBinding;

    Import oracle.jbo.Row;
    Import oracle.jbo.ViewObject;
    Oracle.jbo.domain import. *;

    Import oracle.jbo.client.Configuration;
    Oracle.jbo import. *;

    public class Userbean {}
    String UserType, EmpleId, EmpleName, Depto;


    void iniciarValores() {}

    DCBindingContainer bindingsProdc = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
    DCIteratorBinding dcItteratorBindings = bindingsProdc.findIteratorBinding("voUsers1Iterator");
    ViewObject voUsuario = dcItteratorBindings.getViewObject ();

    voUsuario.executeQuery ();

    If (voUsuario.hasNext ()) {}
    Line rowUsuario = voUsuario.next ();
    UserType = rowUsuario.getAttribute("UserType").toString ();
    EmpleId = rowUsuario.getAttribute("EmpleId").toString ();
    EmpleName = rowUsuario.getAttribute("EmpleName").toString ();
    Depto = rowUsuario.getAttribute("Depto").toString ();
    }
    }

    public String getUserType() {}
    iniciarValores();
    return UserType;
    }

    public String getEmpleId() {}
    iniciarValores();
    Return EmpleId;
    }

    public String getEmpleName() {}
    iniciarValores();
    Returns the number;
    }

    public String getDepto() {}
    iniciarValores();
    Return FuenteCia;
    }=
    }

    Hello

    ask yourself why you don't read the data of the link layer rather the VP

    DCBindingContainer bindingsProdc = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
    DCIteratorBinding dcItteratorBindings = bindingsProdc.findIteratorBinding("voUsers1Iterator");
    dcItteratorBindings. executeQuery();

    -Download the current line

    Frank

  • Get the row index in a dynamic Table

    Hello gurus,

    How can I get the index of a line when it is added dynamically.

    Capture.PNG

    When the user clicks on the "-" he should get the index of the row on which he clicked the button.

    I tried using the code

    var var1 = (data. Design_page1. Working_times_subform. Working_Table.Row1.instanceManager.Count - 1);

    But it gives me the total number of lines. I want that the index of the particular line.

    Thank you.

    Kind regards

    Nikhil

    On the "-" button use this.parent.parent.index to get the index of the line, the button is in. the mention of 'parent' is used to back up the hierarchy so if you had say a subform around the button in the cell, you have to add another parent to learn Row1.

    In order to remove the line try: _Row1.removeInstance (this.parent.parent.index);

    Or it should work too: _Row1.removeInstance (Row1.index);

    The underscore character is a shortcut for the management authority. You can not use it in the object names, I'm sure it caused me problems in the past, I only use case for object names now (to avoid too many dashes).

    You don't need to specify the full path to the object that you are trying to access. The '-' button be Row1 can see Row1.

  • How could I possible get the row height of the tableview.

    I need to know the line height or the height of the cell in a tableview. I have searched the forum and google, lifted the api again and again. It seems there are no way to get the height of a line. It made me very frustrated. Sort of, I hope there is a way and you happen to know, please help me.

    There are of course. You must get an instance of the Tablerow in question, so it depends on where you try to get one in your code... You try to get one that currently has the focus? the selected? Or another in particular?

    Inside my own custom tablecell - I get (and link) the height of tablerow associated (another component) in the updateItem method. Use

    TableRow tr = this.getTableRow()
    tr.getHeight();
    

    to get it back...

    Note: You can always "walk" the scene graph seeking to retrieve an instance of the TableRow. Or take all the TableRow in existence, to say, adjust the height of the TableRow.

    Not sure if that helps... Otherwise, you can post your code and mark that it contains a comment in the box your trying to get an instance of the Tablerow.

    Published by: jkaufmann on November 7, 2011 06:39

Maybe you are looking for

  • Satellite Pro P300 - remove the HARD drive to make a backup?

    My P300 went to my local store to repair for a network card problem. I thought it was just a software problem or driver, so I wasn't worried that my machine is still under warranty. After investigation, they stated that they could not resolve the iss

  • Updating of extended warranty

    Hi every1! I just bought my Y460 today with the upgrade to 3 years warranty on the spot. I recorded for my basic warranty and went to "Warranty registration Upgrade" to save my upgrade. But there is no status of my "warranty upgrade Registration"...

  • Firewall MS

    one or two times a day security firewall alert disabled Please enable. WHY?

  • Signature in Windows live mail - signature is too long

    Hi, I really didn't think it would be such a hard thing to do but I've exhausted myself over the last 7 hours reading the forum posts and tinkering myself (1) I have a logo (2) I have windows live mail (3) I have windows 8 (4) I do not agree with out

  • RAM problems &amp; windows 7 64 bit or Windows 7 32 bit

    Hello Have Presario SR5440AN 2 GB of RAM (2 x 1 GB - factory loaded) Windows 7 Ultimate-32 bit NVidia Geforce 9500 1 GB DDR2 GT graphics The Porcessor AMD Athlon 64 x 2 Dual Core 5200 + 2.7 GHz My question is in 2 parts. (a) what's causing my next pr