9i; JSP; Find a row using jbo:Row.. ?

Hi,
newbie question:
Simply i want to search a RowSet for a specific value.
(e.g. Emp_No=8)
So, how can i define this condition for <jbo:Row...> tag
here is my code:
<jbo:DataSource id="dsEmp" appid="app"
viewobject="EmployeeView" ></jbo:DataSource>
<jbo:Row id="EmpRow" datasource="dsEmp" rowkey="..."
action="Find" ></jbo:Row>

Avrom,
I copied your suggested code and passed myKey to rowKey
attribute as follow:
Note: I only replaced {&#8220;8&#8221;} instead of {new Number(8)}, because
Number class is abstract and cannot instantiate.
<%
Object[] keyValues=new Object[] {"8"} ;
oracle.jbo.Key myKey=new oracle.jbo.Key(keyValues);
%>
<jbo:Row id="EmpRow" datasource="dsEmp" rowkey="myKey"
action="Find" ></jbo:Row>
But received this error: &#8220;Row was not found using request
parameter:myKey&#8221;
(for sure emp_no=8 exist in table)
Please advice.

Similar Messages

  • How to find duplicate row in sql query?

    Hi All,
    Please solve my query, find duplicate row and how to count its. your suggestion would be greatly appreciated.

    You can use group by and having.
    SQL> WITH t
      2       AS (SELECT       LEVEL id
      3                 FROM   DUAL
      4           CONNECT BY   LEVEL <= 5
      5           UNION ALL
      6           SELECT       LEVEL + 2
      7                 FROM   DUAL
      8           CONNECT BY   LEVEL <= 3)
      9  SELECT   *
    10    FROM   t;
            ID
             1
             2
             3
             4
             5
             3
             4
             5
    8 rows selected.
    SQL> WITH t
      2       AS (SELECT       LEVEL id
      3                 FROM   DUAL
      4           CONNECT BY   LEVEL <= 5
      5           UNION ALL
      6           SELECT       LEVEL + 2
      7                 FROM   DUAL
      8           CONNECT BY   LEVEL <= 3)
      9  SELECT     id, COUNT (*)
    10      FROM   t
    11  GROUP BY   id
    12    HAVING   COUNT (*) > 1;
            ID   COUNT(*)
             3          2
             4          2
             5          2
    SQL>

  • Finding all rows based on previous rows column value diffrence

    I have an interesting requirement. There is a DATE column and a user in a table and I have to find all rows for all the user for which the previous row and current row has time difference of lets say more than 30 minutes. Rows are already sorted by time.
    For example in the following table, we need ID 4 and 6 for user 1.
    ID User date
    1 1 today 1 hour 0 min 0 s
    2 1 today 1 hour 1 min 0 s
    3 1 today 1 hour 29 min 0 s
    *4 1 today 1 hour 59 min 3 s*
    5 1 today 2 hour 10 min 2 s
    *6 1 today 2 hour 50 min 7 s*
    Edited by: user733179 on Mar 5, 2009 12:00 PM

    Hi,
    To get all the users in the result set, outer-join to a table (or subquery, as shown bleow) that has one row per user:
    WITH     got_dif     AS
         SELECT     id,     dt,     usr
         ,     (dt - LAG (dt)
                    OVER ( PARTITION BY  usr
                              ORDER BY          dt
              )             -- difference in days
                  * 24 * 60  AS minutes_dif
         FROM     table_x
    --     WHERE     ...     -- if needed
    ,     all_users     AS
         SELECT DISTINCT  usr
         FROM              table_x
    SELECT     gd.id,     gd.dt,     au.usr
    ,     NVL2 ( gd.usr
              , 'Okay'
              , 'Dif is never > 30'
              )    AS flag
    FROM          all_users
    LEFT OUTER JOIN     got_dif          ON  gd.usr         = au.usr
                                AND gd.minutes_dif > 30
    ;Notice that the test for a 30-minute difference is part of the join condition.
    You don't need the flag column, and you may not want it.
    If you would prefer a separate query of just the users that are not in the original result set, then you can use the original query (modified only slightly) as an EXISTS ior NOT IN sub-query. For example:
    SELECT DISTINCT     usr
    FROM    table_x
    WHERE   usr  NOT IN
         WITH     got_dif     AS
              SELECT     id,     dt,     usr
              ,     (dt - LAG (dt)
                             OVER ( PARTITION BY  usr
                                      ORDER BY          dt
                    )             -- difference in days
                        * 24 * 60  AS minutes_dif
               FROM     table_x
    --          WHERE     ...     -- if needed
         SELECT  usr   -- Only 1 column in SELECT clause
         FROM     got_dif
         WHERE     minutes_dif     > 30
    ;

  • Mailbox migration failed: MapiExceptionJetErrorPageNotInitialized: Unable to find table row

    Hi Everyone,
    I'm trying to migrate mailboxes from 2010 -> 2013 and I've com across an odd error.
    I've put my skip limit to 5(for bad files), however this error seems to appear regardless. I'm not a Jets DB expert, but not being able to find a row seems quite serious. Any ideas?
    Data migrated: 1004 MB (1,052,931,906 bytes) 
    Migration rate: 0 B (0 bytes) 
    Error: MigrationPermanentException: Error: MapiExceptionJetErrorPageNotInitialized: Unable to find table row. (hr=0x80004005, ec=-1019) Diagnostic context: ...... Lid: 52176 ClientVersion: 15.0.516.30 Lid: 50032 ServerVersion: 14.3.123.2 Lid: 23226 --- ROP
    Parse Start --- Lid: 27962 ROP: ropGetContentsTable [5] Lid: 27962 ROP: ropSetColumns [18] Lid: 17082 ROP Error: 0xFFFFFC05 Lid: 27489 Lid: 21921 StoreEc: 0xFFFFFC05 Lid: 27962 ROP: ropExtendedError [250] Lid: 1494 ---- Remote Context Beg ---- Lid: 1238 Remote
    Context Overflow Lid: 8756 StoreEc: 0xFFFFFC05 Lid: 58765 StoreEc: 0xFFFFFC05 Lid: 48425 StoreEc: 0xFFFFFC05 Lid: 6995 StoreEc: 0xFFFFFC05 PropTag: 0x67B50102 Lid: 4819 StoreEc: 0xFFFFFC05 Lid: 17692 Lid: 5587 StoreEc: 0xFFFFFC05 PropTag: 0xC1A84B0 Lid: 13300
    StoreEc: 0xFFFFFC05 Lid: 21097 Lid: 39027 dwParam: 0x6BD Lid: 8756 StoreEc: 0xFFFFFC05 Lid: 58765 StoreEc: 0xFFFFFC05 Lid: 48425 StoreEc: 0xFFFFFC05 Lid: 5459 StoreEc: 0xFFFFFC05 PropTag: 0xC1A84B0 Lid: 6483 StoreEc: 0xFFFFFC05 PropTag: 0xC1A84B0 Lid: 59073
    StoreEc: 0xFFFFFC05 Lid: 28220 Lid: 52321 StoreEc: 0xFFFFFC05 Lid: 46177 dwParam: 0xBFE629 Lid: 35937 StoreEc: 0xFFFFFC05 Lid: 44129 dwParam: 0x1183C6F Lid: 60513 StoreEc: 0xFFFFFC05 Lid: 48225 Lid: 9253 StoreEc: 0xFFFFFC05 Lid: 28104 Lid: 13861 StoreEc: 0xFFFFFC05
    Lid: 27265 StoreEc: 0xFFFFFC05 Lid: 1750 ---- Remote Context End ---- Lid: 27962 ROP: ropFindRow [79] Lid: 17082 ROP Error: 0xFFFFFC05 Lid: 23649 Lid: 21921 StoreEc: 0xFFFFFC05 Lid: 27962 ROP: ropExtendedError [250] Lid: 1494 ---- Remote Context Beg ---- Lid:
    26426 ROP: ropFindRow [79] Lid: 40685 StoreEc: 0xFFFFFC05 Lid: 28720 Lid: 11621 StoreEc: 0xFFFFFC05 Lid: 56781 StoreEc: 0xFFFFFC05 Lid: 21484 Lid: 23788 StoreEc: 0xFFFFFC05 Lid: 1750 ---- Remote Context End ---- Lid: 26849 Lid: 21817 ROP Failure: 0xFFFFFC05
    Lid: 29726 Lid: 18462 StoreEc: 0xFFFFFC05 

    Hi,
    From your description, if you specify a larger value for the bad items limit, this error will disappear. Then the issue should be related to the corrupt mailbox, such as the subfolder property and so on, you can use MFCMAPI to check them and then remove
    problematic folders.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • How to find selected rows in REUSE_ALV_GRID_DISPLAY

    HEllo All,
    In OO we have a method to find get_selected_rows but i am unable to what is the way to find selected rows in REUSE_ALV_GRID_DISPLAY.
    I am able to find a single row but i have to find multiple cleans in ALV. How can i do this.
    Please help me with some ideas or please post some sample codes.
    Regards,
    Lisa

    Hi,
    Check this code..
    REPORT  zdayatest1.
    TABLES :t247.
    TYPE-POOLS slis. "Type definitions for alv report
    TYPES: BEGIN OF ty_func_tab,
            fcode    TYPE rsmpe-func,
            END OF ty_func_tab.
    DATA: it_fieldcat TYPE  lvc_t_fcat,
          wa_fieldcat TYPE  lvc_s_fcat.
    DATA: is_lvc_s_glay TYPE lvc_s_glay.
    DATA: wa_layout TYPE lvc_s_layo.
    DATA: is_rxtab  TYPE ty_func_tab.
    DATA: BEGIN OF it_final OCCURS 0,
          check(1),
          mnr LIKE t247-mnr,
          ltx LIKE t247-ltx,
          END OF it_final.
    DATA: wa_final LIKE it_final.
    DATA: w_repid LIKE sy-repid.
    START-OF-SELECTION.
      w_repid = sy-repid.
      REFRESH it_final.
      SELECT mnr ltx
      FROM t247
      INTO CORRESPONDING FIELDS OF TABLE it_final
      WHERE spras EQ 'E'.
      wa_fieldcat-fieldname = 'CHECK'.
      wa_fieldcat-tabname   = 'IT_FINAL'.
      wa_fieldcat-checkbox  = 'X'.
      wa_fieldcat-edit      = 'X'.
      wa_fieldcat-outputlen = '3'.
      wa_fieldcat-col_pos   = '1'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname  = 'MNR'.
      wa_fieldcat-tabname    = 'IT_FINAL'.
      wa_fieldcat-outputlen  = '8'.
      wa_fieldcat-col_pos    = '2'.
      wa_fieldcat-coltext  = 'Month'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname  = 'LTX'.
      wa_fieldcat-tabname    = 'IT_FINAL'.
      wa_fieldcat-outputlen  = '20'.
      wa_fieldcat-col_pos    = '3'.
      wa_fieldcat-coltext  = 'Month Desc'.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR wa_fieldcat.
      wa_layout-zebra = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
        EXPORTING
          i_callback_program       = w_repid
          i_callback_pf_status_set = 'SUB_PF_STATUS'
          i_callback_user_command  = 'USER_COMMAND'
          i_grid_title             = 'TESTING'
          is_layout_lvc            = wa_layout
          it_fieldcat_lvc          = it_fieldcat
        TABLES
          t_outtab                 = it_final
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *&      Form  USER_COMMAND
    FORM user_command USING ucomm LIKE sy-ucomm
                            selfield TYPE slis_selfield.
      IF selfield-fieldname = 'CHECK'.
        DATA ref1 TYPE REF TO cl_gui_alv_grid.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref1.
        CALL METHOD ref1->check_changed_data.
        LOOP AT it_final WHERE check = 'X'.
          IF it_final-check IS INITIAL.
            it_final-check = 'X'.
          ELSE.
            CLEAR it_final-check.
          ENDIF.
          MODIFY it_final.
        ENDLOOP.
        selfield-refresh = 'X'.
      ENDIF.
    ENDFORM.                    "USER_COMMAND
    *&      Form  sub_pf_status
    *       text
    *      -->RT_EXTAB   text
    FORM sub_pf_status USING rt_extab TYPE slis_t_extab.        "#EC CALLED
      CLEAR is_rxtab.
      is_rxtab-fcode = 'TEST'.
      APPEND is_rxtab TO rt_extab.
      SET PF-STATUS 'PF_STATUS' ."EXCLUDING rt_extab.
    ENDFORM.                    "sub_pf_status

  • How to find middle row in a table ?

    Hi Friends,
    Is it possible to find middle row in a table by SQL Query.
    KarTiK.

    Solution: sort the rows in order to create an ordered
    sequence and then there will be a "middle row".Well, not quite.
    If there are an odd number of rows then, yes, there will be a middle row in an ordered sequence, however if there is an even number of rows then the middle is between two rows... or... you could take it as the two rows either side of the middle....
    SQL> select * from emp order by empno;
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17/12/1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 20/02/1981 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 22/02/1981 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 02/04/1981 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 28/09/1981 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 01/05/1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 09/06/1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19/04/1987 00:00:00       3000                    20
          7839 KING       PRESIDENT            17/11/1981 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08/09/1981 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 23/05/1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03/12/1981 00:00:00        950                    30
          7902 FORD       ANALYST         7566 03/12/1981 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23/01/1982 00:00:00       1300                    10
    14 rows selected.
    SQL> select e.empno, e.ename, e.job, e.mgr, e.hiredate, e.sal, e.comm, e.deptno
      2  from (select emp.*, row_number() over (order by empno) as rn from emp) e
      3      ,(select round(count(*)/2) as middle, round(((count(*)+1)/2)) as middle2 from emp) m
      4  where e.rn in (m.middle, m.middle2)
      5  /
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          7782 CLARK      MANAGER         7839 09/06/1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19/04/1987 00:00:00       3000                    20
    SQL> insert into emp values (1111, 'WILLIS', 'CLERK', 7902, sysdate, 900, null, 20);
    1 row created.
    SQL> select * from emp order by empno;
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          1111 WILLIS     CLERK           7902 18/01/2008 12:18:14        900                    20
          7369 SMITH      CLERK           7902 17/12/1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 20/02/1981 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 22/02/1981 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 02/04/1981 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 28/09/1981 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 01/05/1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 09/06/1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19/04/1987 00:00:00       3000                    20
          7839 KING       PRESIDENT            17/11/1981 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08/09/1981 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 23/05/1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03/12/1981 00:00:00        950                    30
          7902 FORD       ANALYST         7566 03/12/1981 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23/01/1982 00:00:00       1300                    10
    15 rows selected.
    SQL> select e.empno, e.ename, e.job, e.mgr, e.hiredate, e.sal, e.comm, e.deptno
      2  from (select emp.*, row_number() over (order by empno) as rn from emp) e
      3      ,(select round(count(*)/2) as middle, round(((count(*)+1)/2)) as middle2 from emp) m
      4  where e.rn in (m.middle, m.middle2)
      5  /
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
          7782 CLARK      MANAGER         7839 09/06/1981 00:00:00       2450                    10
    SQL>

  • Zero suppression is set active for rows & columns - but find empty rows

    hi,
    In the query properties i set zero suppression active for all rows and columns, but in the workbook, when i execute the report i still find empty rows. i refreshed the query from the workbook, and have done everything, but still i find empty rows.
    Can anyone help me in this regard?
    thanks,
    rani

    Hi,
    you found empty rows in WorkBook, what about the Query Output ?
    please check the below: 
    Re: Suppressing result rows when KF values are zero?
    Hope this helps you
    Regards
    ReddY A

  • How/where can I find front row?

    How/where can I find Front Row? I had it earlier...it might have disappeared when I downloaded OS X Lion.....?
    Hope someone can answer me!

    Front Row is no longer part of Lion. But there's some good news: Install Front Row on Lion

  • Master-detail jsp for bc4j using JBO tags

    I have created a master-detail jsp for bc4j using JBO tags. However, I can not get the correct result. There are some examples on OTN, but they are about jsp programs. How to define the relationship of the master view-object and the detail view-object?
    Thanks for your help.

    I know you're having a problem upgrading, but...
    Could you upgrade to 9.0.3 and tell us what problems you're encountering?
    Thanks.
    Sung

  • Find Duplicate Rows

    Hi,
    I have to find duplicate rows from a view where 2 columns of the view should be duplicate but the 3 col value should not be same.
    Pls help it's urgent.
    Thanks
    Regards
    Prashant

    Try this
    with t
    as
    select 1 rno, 'AAA' c1, 1 c2, 'NAME1' c3 from dual union all
    select 2, 'AAA', 1, 'NAME1' from dual union all
    select 3, 'AAA', 1, 'NAME3' from dual union all
    select 4, 'BBB', 2, 'NAME4' from dual union all
    select 5, 'BBB', 2, 'NAME4' from dual union all
    select 6, 'BBB', 2, 'NAME5' from dual
    select rno, c1, c2, c3
      from (
             select t.*, row_number() over(partition by c1, c2, c3 order by rno) rno1
               from t
    where rno1 = 1

  • How can i find Duplicate Rows in forms6i

    Hi,
    How can i find duplicate rows in multiple record in forms6i.
    Thanks
    Raghu.K

    Oops, sorry for misreading your question. (However the SQL I gave you above is also very handy, and worth saving.)
    Okay, this is off the top of my head and untested, but might just work. Assuming that your data block name is MYBLOCK, and that the item that you want to check for dups on is named MYNUM, create an item-level WHEN-VALIDATE-ITEM trigger with the following code.
    declare
    l_newest_record number(10) := :system.cursor_record;
    l_newest_mynum number(10) := :myblock.mynum;
    l_dup_found boolean := false;
    begin
    -- In this loop, we skip backwards through all new records to look for dups.
    while :system.cursor_record > 1 loop
    previous_record;
    if :system.record_status = 'NEW' then
    if :myblock.mynum := l_newest_mynum then
    l_dup_found := true;
    exit; -- Dup found!
    end if;
    else
    exit; -- We've gone backwards past the first new record.
    end if;
    end loop;
    -- In this loop, we return to the current record.
    while :system.cursor_record < l_newest_record loop
    next_record;
    end loop;
    if l_dup_found then
    raise duplicate_row_found; -- user-defined exception
    end if;
    end;
    The above code only checks for dups in the new form records. It assumes that a unique constraint in the database will deal with records actually committed.
    Armand

  • Find Previous row

    Hi All,
    Pls tell me how to find previous row data according to specific condition as follows,
    my table structure like this
    ID NAME SAL
    7 pp 500
    1 aa 100
    2 bb 200
    3 cc 300
    4 dd 400
    1 gg 400
    2 pp 500
    5 qq 700
    1 ql 900
    8 ql 900
    9 al 900
    1 al 700
    I want to select only previous row which is before id 1.
    I want result like this .
    ID NAME SAL
    7 pp 500
    4 dd 400
    5 qq 700
    9 al 900
    Pls help me.
    Thanks & Regards,

    Hi,
    SQL> SELECT * FROM t;
            ID NAME                        SAL
             7 pp                          500
             1 aa                          100
             2 bb                          200
             3 cc                          300
             4 dd                          400
             1 gg                          400
             2 pp                          500
             5 qq                          700
             1 ql                          900
             8 ql                          900
             9 al                          900
            ID NAME                        SAL
             1 al                          700
    12 rows selected.
    SQL> SELECT * FROM t
      2  WHERE  (id) IN (
      3  SELECT id_1 FROM (
      4  SELECT  id,lag(id,1) over (order by 1) id_1 FROM t
      5  ) WHERE id = 1
      6  )
      7  /
            ID NAME                        SAL
             4 dd                          400
             5 qq                          700
             7 pp                          500
             9 al                          900
    SQL>Regards

  • Finding Avg Row Length size

    Hi All,
    How we can find Avg row length size of a table, without inserting data into a table. This is required to basically estimate table size (roughly). We might need to this for at least 100+ tables.
    regards,
    vara

    The average row length depends on the data you are inserting into the table.
    You can easily compute an approximation of the max row length from Oracle’s data dictionary:
    select
      table_name ,
      sum(data_length)
    from
      user_tab_columns
    group by
      table_nameLet’s say we have a table with a number(10) and a varchar2(1000) column. For a data set where the varchar2 column contains at least 900 characters we would get average row size of 900+. For the same table, but with another data set where the varchar2 column has fewer than 50 characters, we would get average row size of less than 100.
    Iordan Iotzov
    http://iiotzov.wordpress.com/

  • Find all tables used in a stored procedure

    Hi,
    I have a requirement where i have to find all the tables used in a stored procedures from different  databases.
    Ex: i have a stored procedure where i use few tables from MASTER database and some from STAGE database.When i have written a query to find all tables used in the stored procedure, i am getting only those database table where i run the query and procedure
    exists.
    I have stored procedure SP1 in Master database, but i use the tables from both master and stage.
    When i run this, i am getting the tables only from Master database but not from stage. i hope my requirement is clear.
    I am trying to find all the tables from all databases used by a stored proc.
    ;WITH stored_procedures AS (
    SELECT 
    o.name AS proc_name, oo.name AS table_name,
    ROW_NUMBER() OVER(partition by o.name,oo.name ORDER BY o.name,oo.name) AS row
    FROM sysdepends d 
    INNER JOIN sysobjects o ON o.id=d.id
    INNER JOIN sysobjects oo ON oo.id=d.depid
    WHERE o.xtype = 'P')
    SELECT proc_name, table_name FROM stored_procedures
    WHERE row = 1
    ORDER BY proc_name
    Please advice

    Your question is not entirely clear. You need to run the query on different databases.
    You may find this blog post helpful
    How to get information about all databases without a loop
    Check the last script in that blog post and modify to your particular purpose.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • How can I use jbo:InputSelect for a char type filed?

    How can I use <jbo:InputSelect for a char type filed?
    I have two tables. One is room (primary key is room(type is char)), another table is responsibility (foreign ker is room(type is char)). Both tables have same length for room column.
    There is a problem:
    If I use (in the "DataEditComponent.jsp" file)
    <jbo:InputSelect multiple="false" datasource="dsEdit" displaydatasource="roomData" displaydataitem="ROOM" displayvaluedataitem="ROOM" ></jbo:InputSelect>
    to get the room input for responsibility from combobox(Datasource roomData is from room table). In the form the room field cannot bind the data in combobox, alway select the first item. And if I select one item and click the update button.There is an error message:
    Error Message: JBO-27010: Attribute set with value H409 for Room in Responsibility has invalid precision/scale
    I found If I changed the field type from char to varchar2 in database also change the entity objects, it works well. I wonder if there are any diffrence using <jbo:InputSelect tag in char and varchar2 type. How can I use <jbo:InputSelect for a char type filed as i don't want to change my datatype in database at this stage.
    I try this in JDeveloper 9.03, 9.034, 9.04. The result is the same.

    If I were in your shoes, here's how I would do it:
    <%-- Assuming you have dsRoom and dsResponsibility --%>
    <%-- Select is an HTML tag --%>
    <select name="ROOM" size="1">
    <% char roomID =""; // Init your character var
    // Open a rowsetIterator to get the records and add them to the LOV
    <jbo:RowsetIterate datasource="dsResponsibility" changecurrentrow="true" >
    <% roomID = (char)dsResponsibility.getRowSet().getCurrentRow().getAttribute("ROOM"); // Grab the char value
    // add the value to the LOV
    %>
    <option value="<%=roomID%>"><%=roomID%></option>
    </jbo:RowsetIterate>
    </select>
    If you are using this as part of an edit page you may want to utilize the "selected" option of the <option> tag. In one instance I am doing this on an edit page because the use may open an existing record. If I don't account for it, then it will change the DB to contain the first value from the list! You can do a simple check like:
    //Set the current record's char
    char curRecord = (char)rowEdit.getAttribute("ROOM");
    // inside the iterate:
    if (curRecord == roomID) {
    <option value="<%=roomID%>" selected><%=roomID%></option>
    } else {
    <option value="<%=roomID%>" ><%=roomID%></option>
    Hope that helps!

Maybe you are looking for

  • What is the fee for Window 8.1 Developer License??

    Date 04.03.2015 Hallo there hope you are fine. Please let some one let me know : I want to know the Window 8.1 Developer License for Hardware Kit using Visual Studio Express using C++??

  • Searching through archived docs from Filenet in SAP tcode OAAD

    We archive our payroll journals at runtime to Filenet - some can be up to 3500 pages. We can easily retrieve those docs using tcode OAAD in SAP. Once retrieved, however, we are having issues searching within the document. For example, if we search fo

  • Performance Problem with File Adapter using FTP Conection

    Hi All, I have a pool of 19 interfaces that send data from R/3 using RFC Adpater, and these interfaces generate 30 TXT files in a target Server. I'm using File Adapters as Receiver Comunication Channel. It's generating a serious perfomance problem. I

  • Save Zoom Level Preference After Exiting Spotify

    It would be great if the desktop Spotify app saves the zoom level setting so that we won't have to zoom in/out back to our desired level each time we open Spotify

  • [PPC] new install fails to boot: root partition not found

    Hi, new ArchPPC installation on a iMac G3. It does not boot further than initramfs because root partition is not found. I get something like: Root device /dev/sda4 doesn't exist Attempting to created it ERROR: unable to determine major/minor number o