SQLite Row.getObject () return me Long instead of Integer...

Hello

I built a simple application that create a database with columns of INTEGERS.

When I try to read the value, I use the method Row.getObject (int i) (http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/database/Row.html#getObject%28...)

And it return me a Long object instead of an entire object... I have getInteger user but I want to make my generic method and use the object as long as it is possible.

Is this a bug in implementation of SQLite?

Thanks for your help!

Internally, SQLite represents INTEGER values in a variable number of bytes (1, 2, 4 or 8) according to the stored value. When you retrieve the value by using getObject, in my view, that he always puts in a long it is guaranteed to contain any value in an INTEGER column.

Edit: INTEGER in SQLite values can also 3 or 6 bytes internally. Does not change my point: I believe that you always respond to a long.

Tags: BlackBerry Developers

Similar Questions

  • Single - row subquery returns more than one line.

    Hi Experts

    I am faced with error

    ORA-01427: single - row subquery returns more than one line.

    MyQuery is:

    select
       TO_CHAR(T.MR_REG_DATE,'DD')                     "DATE"
       ,CASE  
         WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) between 0 and 1 THEN ' 01'||'  - ('||'0 - 1 Month)'
         WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 2 AND 12 THEN ' 02'||'  - ('||'2 - 12 Months)'
         WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 13 AND 60 THEN ' 03'||'  - ('||'1 - 5 Years)'
         WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 61 AND 120 THEN ' 04'||'  - ('||'5 - 10 Years)'
         WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) > 120 then ' 05'||'  - ('||'> 10 Years)'
        END age
      ,count(T.Mr_Code) No_of_Patient
      ,(  SELECT count(x.mr_code) mr_code
             FROM HMIS_MRINFO X
             where X.mr_reg_date between &FRM_DATE AND &TO_DATE
               and X.mr_code NOT in (select Y.mr_code from hmis_pat_add_dis_detail Y
                                      WHERE Y.mr_reg_date between &FRM_DATE AND &TO_DATE
                                    )
            GROUP BY CASE  
                       WHEN trunc((MONTHS_BETWEEN(X.MR_REG_DATE,X.MR_DOB))) between 0 and 1 THEN ' 01'||'  - ('||'0 - 1 Month)'
                       WHEN trunc((MONTHS_BETWEEN(X.MR_REG_DATE,X.MR_DOB))) BETWEEN 2 AND 12 THEN ' 02'||'  - ('||'2 - 12 Months)'
                       WHEN trunc((MONTHS_BETWEEN(X.MR_REG_DATE,X.MR_DOB))) BETWEEN 13 AND 60 THEN ' 03'||'  - ('||'1 - 5 Years)'
                       WHEN trunc((MONTHS_BETWEEN(X.MR_REG_DATE,X.MR_DOB))) BETWEEN 61 AND 120 THEN ' 04'||'  - ('||'5 - 10 Years)'
                       WHEN trunc((MONTHS_BETWEEN(X.MR_REG_DATE,X.MR_DOB))) > 120 then ' 05'||'  - ('||'> 10 Years)'
                      END 
      ) Missing_MR
    from hmis_mrinfo T,hmis_pat_add_dis_detail M
    where T.mr_code = M.mr_code(+)
      and T.mr_reg_date between &FRM_DATE AND &TO_DATE
      &AGE_GRP
    GROUP BY T.MR_REG_DATE
             ,CASE  
               WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) between 0 and 1 THEN ' 01'||'  - ('||'0 - 1 Month)'
               WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 2 AND 12 THEN ' 02'||'  - ('||'2 - 12 Months)'
               WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 13 AND 60 THEN ' 03'||'  - ('||'1 - 5 Years)'
               WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) BETWEEN 61 AND 120 THEN ' 04'||'  - ('||'5 - 10 Years)'
               WHEN trunc((MONTHS_BETWEEN(T.MR_REG_DATE,T.MR_DOB))) > 120 then ' 05'||'  - ('||'> 10 Years)'
              END 
    ORDER BY T.MR_REG_DATE;
    

    Please give some advice / solution.

    I think this might do it for you

    Select

    TO_CHAR (T.MR_REG_DATE, 'DD') "DATE."

    CASE

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) between 0 and 1 THEN ' 01' |'.  - ('||' 0-1 month)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 2 AND 12 THEN ' 02' |'.  - ('||' 2-12 months)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 13 AND 60 THEN ' 03' |'.  - ('||' 1-5 years)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 61 AND 120 THEN ' 04' |'.  - ('||' 5-10 years)'

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) > 120 then ' 05' |'.  ' - ('| ' > 10 years).

    Age of the END

    count (T.Mr_Code) No_of_Patient

    , count (case when t.mr_code NOT in (select Y.mr_code from hmis_pat_add_dis_detail Y))

    WHERE Y.mr_reg_date between & FRM_DATE AND & TO_DATE)

    then t.mr_code

    (end) Missing_MR

    of hmis_mrinfo T, hmis_pat_add_dis_detail M

    where T.mr_code = M.mr_code (+)

    and between T.mr_reg_date & FRM_DATE AND & TO_DATE

    & AGE_GRP

    T.MR_REG_DATE GROUP

    CASE

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) between 0 and 1 THEN ' 01' |'.  - ('||' 0-1 month)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 2 AND 12 THEN ' 02' |'.  - ('||' 2-12 months)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 13 AND 60 THEN ' 03' |'.  - ('||' 1-5 years)"

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) BETWEEN 61 AND 120 THEN ' 04' |'.  - ('||' 5-10 years)'

    WHEN trunc ((MONTHS_BETWEEN (T.MR_REG_DATE, T.MR_DOB))) > 120 then ' 05' |'.  ' - ('| ' > 10 years).

    END

    ORDER BY T.MR_REG_DATE;

  • I'm opening table row in a popup with the help of change. If I opened a line to edit, and then if I cancel the popup and if I open some row of the table, then instead of the newly selected line diff, previously selected line becomes open question. Help, p

    @Code is:-

    I have a panelCollection which is having an ADFTable (VO) and < f: toolbar > < coomandToolbarbutton > IE change by clicking on modify the selected line of the tbal adf becomes open in edit mode in a popup. Buttong ActionListner change creation popup

    {} public void handleEdit (ActionEvent actionEvent)
    Add the code in the event here...

    Line selectedRow =
    (Row) ADFUtils.evaluateEL ("#{bindings.") BtEsAwardsSchemeSetupVO1Iterator.currentRow}");
    Line selectedRow =
    (Row) ADFUtils.evaluateEL ("#{bindings.") BtEsAwardsSchemeSetupVO1.currentRow}");

    Tips RichPopup.PopupHints = new RichPopup.PopupHints ();

    this.getAddEditpopup () .show (hints);
    }

    Pupup has two buttons for Submit and cancel.
    Click on Cancel button on the popup, it id hide. The question is, suppose that the table is to have 4 lines so if I first select third row and click on change that becomes open editing on a popUp, but if I click on the Cancel button and their selection a few rows of table (Say first line), the previously selected (3rd row) rank only becomes open again in popup instead of the newly selected row.
    Cacel code

    {} public void handleCancelAwards (ActionEvent actionEvent)

    Add the code in the event here...

    ADFUtils.invokeEL ("#{bindings.") Rollback.Execute}");

    this.getAddEditpopup (.cancel ()); [I also tried with hide and seek but not worked]

    }

    Thanks in advance and thanks for your time

    It may be a problem with the combination of: immediate = true, rollback, and af:popup.

    You can try adding af:resetActionListener to the Cancel button.

    BTW, your managed bean is in the package that start with uppercase ("Bean"). (if you should refactor this to "beans" (for example))

    Dario

  • ORA-01427: row subquery returns more than one line

    Hello
    I get the above error but I'm not sure how

    its on the line in bold (it says line 16)

    Thanks in advance

    (s_entry IN varchar2)
    return ind_field_value_table
    IS
    found_count number (10);
    T_RETURN ind_field_value_table: = ind_field_value_table();
    Start

    for news (select master, table_name, column_name
    from all_tab_columns
    where <>'SYS' owner and owner <>'SYSTEM '.
    and (Data_type = 'CHAR' OR Data_type = 'NCHAR' OR Data_type = "NVARCHAR2" OR Data_type = 'VARCHAR2')
    Order by owner, table_name, column_name)

    loop

    immediate execution
    ' *'select count (1) of "| cur. Owner | '.' || cur.table_name | 'where ' | cur.column_name | ' = ' || '''' || s_entry | ''' '*
    in found_count;

    found_count: = nvl (found_count, 0);

    If found_count <>0 then
    T_RETURN.extend;
    T_RETURN (T_RETURN. (Count): = ind_field_value (cur.owner, cur.table_name, cur.column_name);
    end if;

    end loop;

    Return t_return;
    end;

    Create an exception handler to dig deeper into the analysis and may use a string instead of direct statement on run immediately, it is often easier for debugging of object, for example:

    ...
    begin
    stmt:='select count(*) .....';
    execute immediate stmt into your_count;
    exception when others then dbms_output.put_line(sqlerrm||' '||stmt);
    end;
    ...
    

    Nicolas.

  • Order in which the rows are returned from an external table

    Hello
    Anyone know if I can count on the rows returned in the order with a selection of Ext_table.
    For example:

    SELECT * FROM MY_EXT_TAB

    Where MY_EXT_TAB is a file read
    1
    2
    3

    The query will return to the top of the file down, that is to say 1-3.

    Thank you very much.

    Hello

    To get the number of the record since the beginning of the file, you can use the MASS_ADDITION_ID parameter in the external Table definition:

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14215/ldr_field_list.htm#sthref1264

    You define a column:

     RECNUM
    

    Then, in your application, you can use the operator order of this column.

    In this way, you ensure that you always comply with the registration order in the file.

    Hope this helps.
    Best regards
    Jean Valentine

  • fusion of the fields to return 1 record instead of 2 or more

    Hi all

    New here and maybe above novice in SQL statements, but it's escape me if its even possible.

    The problem is that I have tables in the main table is unique id'd records and not dupes, table 2 contains the unique id of 1, but can contain multiple because some areas are the entry like one to multiple and stored values in the form of 2 folders. What I need to be able to do is to shoot that these records back out as 1 Plug and not multiple. Example as follows:

    Int table1 ID (INT PK SINGLE) Field1, Field2 int - theres only one ton more fields but not necessary to even put them here
    Table2 ID INT, int Field1, Field2 int - once again a ton more is not necessary


    Table1:
    ID Field1 Field2
    1 2 5
    2 5 5

    Table2
    ID Field1 Field2
    1 1 3
    1-3-3
    2-1-1
    2-3-1
    2 1 2

    And so when I do a select and do a left outer join on the ID I'm would get returned 2 records for ID 1 and ID 2 3 records.

    Any ideas on how to merge the 2fields Table Select to return only records?

    Thank you

    Stan

    Hi, Stan,

    Welcome to the forum!

    If you want a row of output for each id. What do you want on this line? After the correct output, want to get sample data you have already posted.

    This site normally compresses white space, so if you want to post something when the columns are well aligned, and then type the 6 characters:

    {code}

    (small letters only, inside curly braces) before and after the section of text formatted to preserve spacing.

    You can ask on the aggregation of the string, in which case [this page | http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php] will be helpful.

  • Returns a record with a 0 if no row is returned by the query

    Hello

    I use oracle 10g.

    Please forgive me if this is a crazy question
    select null ltd, 'aig' company from dual
    where sysdate  = to_date('6/13/2011','mm/dd/yyyy')
    Is it possible to get the following result
    ltd                       company
    null                         aig
    or the following
    ltd           company
    0                aig
    Thanks in advance

    You can use UNION ALL and add line if the query returns nothing.

    WITH T
         AS (SELECT NULL ltd, 'aig' company
               FROM DUAL
              WHERE SYSDATE = TO_DATE ( '6/13/2011', 'mm/dd/yyyy'))
    SELECT * FROM T
    UNION ALL
    SELECT 0 ltd, 'aig' company
      FROM DUAL
     WHERE NOT EXISTS (SELECT * FROM T)
    

    G.

  • START WITH causing no rows to return

    When I run the following query, I get no line.
    However, when I comment on the START WITH, I get 120 planned lines, including six rows with pred = 1.
    select pred, succ from
    (
      with q as 
      (
        select 1 as n from dual
        union all select 2 as n from dual
        union all select 3 as n from dual
        union all select 4 as n from dual
        union all select 5 as n from dual
        union all select 6 as n from dual
        union all select 7 as n from dual
      )
      select q1.n AS pred, q2.n AS succ 
      from q q1
      join q q2 on q2.n > q1.n
    )
    connect by prior succ = pred
    start with pred = 1;
    Am I missing something obvious?

    -Don

    Looks like a bug in factoring clause, if it is replaced by a table, it does not (as you said), but also if you move the clause factoring on top of the query:

    SQL> select pred, succ from
      2  (
      3    with q as
      4    (
      5      select 1 as n from dual
      6      union all select 2 as n from dual
      7      union all select 3 as n from dual
      8      union all select 4 as n from dual
      9      union all select 5 as n from dual
     10      union all select 6 as n from dual
     11      union all select 7 as n from dual
     12    )
     13    select q1.n AS pred, q2.n AS succ
     14    from q q1
     15    join q q2 on q2.n > q1.n
     16  )
     17  connect by prior succ = pred
     18  start with pred = 1;
    
    no rows selected
    
    SQL>
    SQL> with q as
      2    (
      3      select 1 as n from dual
      4      union all select 2 as n from dual
      5      union all select 3 as n from dual
      6      union all select 4 as n from dual
      7      union all select 5 as n from dual
      8      union all select 6 as n from dual
      9      union all select 7 as n from dual
     10    )
     11  select pred, succ from
     12  (
     13    select q1.n AS pred, q2.n AS succ
     14    from q q1
     15    join q q2 on q2.n > q1.n
     16  )
     17  connect by prior succ = pred
     18  start with pred = 1;
    
          PRED       SUCC
    ---------- ----------
             1          2
             2          3
             3          4
    {...}
             1          7
    
    63 rows selected.
    

    I think you could take a look at metalink or raise a SR.

    Nicolas.

    tested on 10.2.0.4
    Edited by: N. Gasparotto June 9, 2009 17:20

  • What is the difference in printing on two pages while it returns pages on the short edge or it returns pages long edges?

    For instances:
    I want to print a PowerPoint slide.
    I go to the "print" key in power point.
    I can choose how I want to print it.

    It has to do with the appearance of the printed word on paper, mostly associated with how you will link the document over (like a book or a steno notebook).  Try on a brief document (e.g., 4 pages) and see for yourself.

  • ORA-01427 single row subquery return several rows.

    It's my request. Something wrong with this request... ?


    UPDATE OT_QUOT_COMP_MRN MNR
    SET THE MNR. LINKS_1 = (SELECT IN. LINKS TO MNR, OT_QUOT_COMP_PO PO OT_QUOT_COMP_MRN WHERE MRN.) LINKS IS IN.. VOUCHER_NO
    AND IN. LINKS LIKE 'QTN %' AND THE MNR. LINKS_1 NOT LIKE '% QTN %')
    WHERE EXISTS (SELECT IN. LINKS TO OT_QUOT_COMP_PO IN. WHERE MNR.) LINKS = IN. VOUCHER_NO AND IN. LINKS LIKE 'QTN %' AND THE MNR. LINKS_1 NOT LIKE '% QTN %')

    Thank you and best regards!

    Deva

    Perhaps update a join

    update (select mrn.links_1 x_links_1,po.links y_links
              from ot_quot-comp_po po,
                   ot_quot_comp_mrn mrn
             where po.voucher_no = mrn.links
               and instr(po.links,'QTN') > 0
               and instr(mrn.links_1,'QTN') = 0
           )
       set x_links_1 = y_links
    
  • single row subquery returns more than 1 row

    UPDATE Rftm_Pidwise_Revenue_Dtls
    SET cost_prior_qtr = (select cost_forecast_end
    of rftm_time_entry_calc
    where rftm_time_entry_calc.pid = Rftm_Pidwise_Revenue_Dtls.pid
    AND rftm_time_entry_calc.ideal_ref_no = Rftm_Pidwise_Revenue_Dtls.ideal_ref_no
    )
    WHERE ideal_ref_no = '140014';

    Hi all
    I have a requirement where I have to update a table (Rftm_Pidwise_Revenue_Dtls) and the value of the column 'cost' to the ' 140014 ideal_ref_no'. for this issue, there are several records in the tables that I use in my application. I want to match the corresponding 'pid' and update the cost for each "pid".
    Please help me with a correct query.

    Kind regards
    Belin
    Try once...(untested)
    
    MERGE INTO Rftm_Pidwise_Revenue_Dtls TRG
    using
    (
    select DISTINCT A.cost_forecast_end cost_forecast_end,B.ROWID RI
    from rftm_time_entry_calc A,Rftm_Pidwise_Revenue_Dtls B
    where A.pid=B.pid
    AND A.ideal_ref_no=B.ideal_ref_no
    AND B.ideal_ref_no='140014';
    ) SRC
    on
    (TRG.ROWID=SRC.RI)
    WHEN MATCHED THEN UPDATE
    SET TRG.cost_prior_qtr =SRC.cost_forecast_end;
    
  • error:-row subquery returns more than one line, pls help

    SELECT dsg_code, dsg_name, dsg_grade FROM designation_master WHERE dsg_orgn =:parameter.p_orgn and dsg_ctry =:parameter.p_ctry and dsg_loc =: parameter.p_loc and dsg_oru =: parameter.p_oru
    and dsg_code <>: emp_desig and dsg_grade in (decode(:radio_group,)
    1, (SELECT grd_code FROM grade_master WHERE grd_osm_code in (Select distinct grd_osm_code FROM grade_master WHERE grd_orgn =:parameter.p_orgn and grd_ctry =:parameter.p_ctry and grd_loc =: parameter.p_loc and grd_oru =: parameter.p_oru and grd_code =: emp_grade)).
    2, (SELECT grd_code FROM grade_master WHERE grd_osm_code > all (Select distinct grd_osm_code FROM grade_master WHERE the grd_orgn =:parameter.p_orgn and grd_ctry =:parameter.p_ctry and grd_loc =: parameter.p_loc and grd_oru =: parameter.p_oru and grd_code =: emp_grade)).
    3, (SELECT grd_code FROM grade_master WHERE grd_osm_code < all (Select distinct grd_osm_code FROM grade_master WHERE the grd_orgn =:parameter.p_orgn and grd_ctry =:parameter.p_ctry and grd_loc =: parameter.p_loc and grd_oru =: parameter.p_oru and grd_code =: emp_grade)))

    Try something like this:

    SELECT dsg_code,dsg_name,dsg_grade
      FROM designation_master
     WHERE dsg_orgn=:parameter.p_orgn
       AND dsg_ctry=:parameter.p_ctry
       AND dsg_loc =:parameter.p_loc
       AND dsg_oru = :parameter.p_oru
       AND dsg_code!=:emp_desig
       AND (   (    :radio_group=1
                AND dsg_grade in (SELECT grd_code
                                    FROM grade_master
                                   WHERE grd_osm_code in (Select distinct grd_osm_code
                                                            FROM grade_master
                                                           WHERE grd_orgn=:parameter.p_orgn
                                                             and grd_ctry=:parameter.p_ctry
                                                             And grd_loc =:parameter.p_loc
                                                             And grd_oru = :parameter.p_oru
                                                             and grd_code =:emp_grade
                                                          )
                                  )
                )
             OR (    :radio_group=2
                 AND dsg_grade in (SELECT grd_code
                                     FROM grade_master
                                    WHERE grd_osm_code >any (Select distinct grd_osm_code
                                                               FROM grade_master
                                                              WHERE grd_orgn=:parameter.p_orgn
                                                                and grd_ctry=:parameter.p_ctry
                                                                And grd_loc =:parameter.p_loc
                                                                And grd_oru = :parameter.p_oru
                                                                and grd_code =:emp_grade
                                                            )
                                  )
                )
             OR (    :radio_group=3
                 AND dsg_grade in (SELECT grd_code
                                     FROM grade_master
                                    WHERE grd_osm_code 
    

    not tested

  • Update TBL to TBL (ORA-01427 ' row subquery returned more line ")

    Hello...

    I'm new in this stuff and need a little help... Thank you very much for your answers!

    I have the error ORA-01427 when run this script:

    Update tblproduct
    the value (instock) = (select b2.instock - tblproduct b2, b1, b3 tblorder tblitem b1.quantity
    where b1.productid = b2.productid and b1.orderid = b3.orderid and b3.orderid to 3025)

    The main purpose of the script is the actualization of the butts of the inventory when the order is completed.

    The TBLITEM primary key (ORDERID and PRODUCTID). This prevents repeat the question on the agenda.


    The structure of tables are:

    1. (TBLITEM)

    Name Null? Type
    ---------------------------------- -------------- ---------------

    PRODUCTID NOT NULL NUMBER (10)
    ORDERID NOT NULL NUMBER (10)
    QUANTITY NOT NULL NUMBER (10)
    PRICE FLOAT (126)
    ITEMID NUMBER (5)



    2. (TBLPRODUCT)

    Name Null? Type
    ----------------------------------------- --------------- --------------------

    PRODUCTID NOT NULL NUMBER (10)
    PRODNAME NOT NULL VARCHAR2 (25)
    DESCRIPTION VARCHAR2 (255)
    PRICE NOT NULL NUMBER (7.2)
    NUMBER (7.2) TAX
    STATUS NOT NULL VARCHAR2 (25)
    NUMBER (10) NOT NULL INSTOCK
    REORDERPOINT NOT NULL NUMBER (10)
    DATE OF RESTOCKDATE
    CATEGORYID NOT NULL NUMBER (10)
    VENDOR NUMBER NO. (10)


    2. (TBLORDER)

    Name Null? Type
    ----------------------------------------- ------------ ----------------

    ORDERID NOT NULL NUMBER (10)
    NOT NULL ORDERDATE DATE
    DATE OF ORDERCOMPT
    USERID NOT NULL NUMBER (10)
    ACCOUNTID NOT NULL NUMBER (10)
    STATUS NOT NULL VARCHAR2 (25)
    NUMBER (2) CANCELLED


    THANKS FOR YOUR HELP ONCE AGAIN!

    Published by: user10084733 on April 20, 2009 12:25

    It is the right way to update your table.

    update tblproduct b2
    set (instock) = (select b2.instock - b1.quantity
                     from tblitem b1, tblorder b3
                     where b1.productid = b2.productid
                     and b1.orderid = b3.orderid
                     and b3.orderid in 3025)
    where exists ( select 1
                   from tblitem b1, tblorder b3
                   where b1.productid = b2.productid
                   and b1.orderid = b3.orderid
                   and b3.orderid in 3025)
    ;
    
    Without the where condition you are updating the full table.
    
  • set the height of the rows in the table according to the integer value

    Hello.

    jdev version - 11.1.2.3

    My requiremnt is that I have an integer input value, when I provide a value for it assumes that 10, then only 10 lines should be visible on the rest of the table should come when scroll us. Basically, I want to adjust the height of the lines on the change in value of my entry value providied.

    Thank you

    If the counter returns a number, you can convert entire

    public void button(ActionEvent actionEvent) {
    Number n = spinbox.getvalue();
    table.setFetchSize(n.intValue());
    }
    

    Timo

  • ADF bargraph showing values of the ToolTip in decimals instead of integer

    Hello

    I use a bar graph to show the value of sold rooms (which shouldn't be in the decimal format) and when I hover over the bar chart values are displayed in decimal instead of the number. I use the dvt:numberFormat on the value of y axis to make the decimal digit to zero, but the value of the ToolTip always displayed in decimal form. Can anyone give any suggestions pls?

    < dvt:barGraph id = "barGraph1".
    value = "#{bindings." CMSHotelStatisticsGraph.graphModel}.
    Subtype = "BAR_VERT_CLUST".
    dynamicResize = "DYNAMIC_SIZE".
    shortDesc = "#{rsvstatisticsBundle.DAILY_HOTEL_SUMMARY} '"
    threeDEffect = "true" animationOnDataChange = "ON".
    animationOnDisplay = 'AUTO '.
    markerTooltipTemplate = "" sold rooms: Y_VALUE NEW_LINE ' "
    animationDuration = "500" >
    < dvt:background >
    < dvt:specialEffects / >
    < / dvt:background >
    < dvt:graphPlotArea / >
    < dvt:seriesSet >
    < dvt:series >
    < dvt:specialEffects id = "se1" fillType = "FT_GRADIENT" / >
    < / dvt:series >
    < / dvt:seriesSet >
    < dvt:o1Axis / >
    < dvt:y1Axis >
    < dvt:numberFormat decimalDigit = "0" / >
    < / dvt:y1Axis >
    < dvt:legendArea automaticPlacement = "AP_NEVER".
    rendered = "false" / >
    < dvt:y1Title text = "#{rsvstatisticsBundle.ROOMS_SOLD}" / >
    < / dvt:barGraph >


    Thank you

    Swathi Jonathan

    Use below tags in your component graph:








    Your page should look like the following:


    value = "#{bindings." CMSHotelStatisticsGraph.graphModel}.
    Subtype = "BAR_VERT_CLUST".
    dynamicResize = "DYNAMIC_SIZE".
    shortDesc = "#{rsvstatisticsBundle.DAILY_HOTEL_SUMMARY} '"
    threeDEffect = "true" animationOnDataChange = "ON".
    animationOnDisplay = 'AUTO '.
    markerTooltipTemplate = "" sold rooms: Y_VALUE NEW_LINE ' "
    animationDuration = "500" >






















    rendered = "false" / >

Maybe you are looking for