SetActionListener in Access table column of the row

I use JDev 11.1.1.6.


I use a group header form. In the form, I have a menu and a read-only table.

The measure has multiple columns and multiple rows of data. The menu has a command link in which I need to pass parameters through the scope of the request to the stubborn workflow I call. In the command link I am trying settings requestScope with a setActionListener. The settings are currently hardcoded and validated in the corresponding requestScope settings. Based on the parameters that I'm passing hardcoded called and page rendering workflow are correctly.

I would like to switch dynamically from the properties of one of the columns for a given row selected in the table. Because the menu with the command link is not included into the table, I can not access the variable 'row' of the table.

The question I have is how can I access a column value for a given line in the table when you use the setActionListener in my menu. I also read that I might want to use setPropertyListener instead, but I think I have the same problem to access the data in the row.

You have to use actionListener for this.


Text = "..." »
actionListener = "#{.onMenuClick}" "
action ="" / > ".

{} public void onMenuClick (ActionEvent actionEvent)
Add the code in the event here...
Learning purposes - view select a clicked button
System.out.println ("navigate to the clicked link page');
Get the links associated with the current scope, and then access that we assigned to our table - for example OpenSupportItemsIterator
DCBindingContainer links =
(DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding = dcItteratorBindings
bindings.findIteratorBinding ("OpenSupportItemsIterator");
Gets an object that represents the table and which can be chosen that it contains
ViewObject voTableData = dcItteratorBindings.getViewObject ();
Get the selected line
Line rowSelected = voTableData.getCurrentRow ();
print
System.out.println ("Number of DC" + rowSelected.getAttribute ("DcNum"));
ADFUtil.setEL ("#{requestScope.DcNumber}", rowSelected.getAttribute ("DcNum"));
}

Tags: Java

Similar Questions

  • column of the row

    Database IS 9I

    column to line-> result string

    EX:

    1.

    Select * from a;
    NAME CLASS MY NUM
    SALE 2 10301
    10301 2 SHIP
    SALE 2 10302
    10302 3 SHIP

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

    2 column in the row

    CLASS NAME 10301 10302-> not fixed
    A      SELL               2                2
    A      SHIP               2                 3

    You can try the below... You can use DBMS_SQL to get it easily... I'm working on which will inform you soon

    FUNCTION to CREATE or REPLACE dyn_row_colum

    RETURN VARCHAR2

    AS

    v_str1 VARCHAR2 (32767).

    v_sqlstr VARCHAR2 (32767): = ' SELECT DBMS_XMLGEN. CONVERT (SUBSTR (XMLAGG (XMLELEMENT (e, val1 |'|)))) '''|| '''|| ' ||'|| '''|| ' ||'|| ''', '''|| ' ||'|| '''|| ' ||'|| '''|| Chr (13) | Chr (10): ' | '''). EXTRACT ('|) '''|| ((((' Text()'| "'| ')), 1), 1) val2

    Of

    (SELECT "|") '||'''''''''|| name||''''''''||''||''||'''''',''''''||''||''||''''''''|| Class';

    v_restr VARCHAR2 (32767).

    BEGIN

    SELECT "' NAME"'. ' ||'|| ''', '''|| ' ||'|| ''' CLASS'''||'||'||''''||','||

    (SELECT DBMS_XMLGEN. CONVERT (SUBSTR (XMLAGG (XMLELEMENT (e, ',' | read).))) Extract ('//Text ()') ORDER BY LUN), 2), 1).

    FROM (SELECT DISTINCT "'|) ' ||'|| '''|| my | " ' ||'|| ' ||'' ' Lun

    A)) | «, » ||'' ' ||'|| Chr (13) | Chr (10): ' val1

    IN v_str1

    DOUBLE;

    FOR j_rec IN (SELECT DISTINCT LUNS FROM one)

    LOOP

    v_sqlstr := v_sqlstr||'||''''''''||''||''||'''''',''''''||''||''||''''''''||'||' MAX (DECODE (Lun,'|)) '''|| j_rec.Mon | " ((' |', num))';

    END LOOP;

    v_sqlstr: = v_sqlstr |' | '''|| (' ' |' val1 to a GROUP BY name, class)';

    EXECUTE IMMEDIATE v_sqlstr INTO v_restr;

    v_restr: = v_str1 | RTrim(v_restr,'||') | « ; » ;

    RETURN v_restr;

    END dyn_row_colum;

    /

    SELECT DYN_ROW_COLUM FROM dual;

    OUTPUT:-

    -------

    "NAME" | «, » ||' CLASS' | «, » ||' 10301' | «, » ||' 10302' | «, » || Chr (13) | Chr (10) | » A'||','||' SHIP '. «, » ||' 2'||','||' 3'||','|| Chr (13) | Chr (10) | » A'||','||' SELL ' | «, » ||' 2'||','||' 2'||','|| Chr (13) | Chr (10);

  • How to get the names of the table columns in the quick dashboard

    How to get the names of the table columns in the quick dashboard


    Thanks and greetings
    ------------------------
    Kishore P

    Make a prompt like:

    SELECT case when 1 = 0 then 'D0 time. " "" T02 by month name "other" 'D2 market' '. "" M04 region' ' the end 'Sample Sales' UNION ALL SELECT case when 1 = 0 then 'D0 Time. " "" T02 by month name ' else ' 'Time D0. "" T02 by month name ' ' the end 'Sample Sales.

    Put the name of column in single quotes.

    Make your rank as a function:
    Rank ('F1 income'. "" Recipes 1-01 (after all) "by @{pColumn} {'D0 time'. ({"" T05 annually name '})

    It works fine for me

    concerning

    John

    http://obiee101.blogspot.com

  • Rename tables and columns in sql running that accessing these columns in the table.

    Hello

    Using oracle 11.2.0.3

    We want to rename columns, tables and work just a sql scripts for this.

    If sqls who have access to those running long tables/columns for example reports what is happening

    Existing sql running, will work perfectly in that picked up sql before table/colum rename or will they crash if tables/columns renamed during them.

    scripts wil take a few seconds to run maximum

    Thank you

    The only other activity that would go on select is against these tables/columns. No etl isnert/update/delete etc wil, which happened during the name change.

    Only possible activities are report instructions srunning select.

    Tried to run a long selection and rename that select while that was going on and got no error on the test system.

    This is because certain statements does not place locks on tables or lines, so even if a session is reading data, another session can make some ddl (or dml) manipulation.

    In this situation (with only selects, no other dml queries), renaming can be done, but the question remains, what the application code?

    If it refers to old column names after name change operation, is no good.

  • How to upgrade a table column using the values in the Oracle collection

    create or replace procedure test_coll
    
    IS
    
    CURSOR upd 
    IS
    SELECT CONTACT_NAME FROM Supplier_16;
    
    TYPE dept IS TABLE OF upd%rowtype;
    cur_var dept;
    
    Type List Is table Of  varchar2(20);
    Name List:=  List('Shilpi','Sunil','Shreyas','Saral');
    
    BEGIN
    
    OPEN upd;
    LOOP
         FETCH upd BULK COLLECT INTO cur_var;
    --    EXIT WHEN upd%NOTFOUND;
    
         FORALL i IN cur_var.FIRST..cur_var.LAST
      
         UPDATE supplier_16
    **  SET Contact_name= name(i);  ***
         
         COMMIT;
    
    END LOOP;
    CLOSE upd;
    
    END;
    On the "BOLD" line, I don't know how I should move the values of the collection of name I said without which are set all the values in the table supplier_16 = 'Saral.

    Help, please.

    Aashish S. wrote:
    Thank you very much...

    Yes, I slide collections and was trying to reach somwthing on similar lines to which you provided the code example...

    My essay is equipped to take a collection: initialized with values of say 3-4...

    Take other tables... A column... and update the column in the table (not PK, FK anything) using the values of the initialized collection...

    However, I am stuck between the two on how the UPDATE clause should be...

    OK, if it's just because you want to practice with collections, you might do something like this...

    SQL> set serverout on
    SQL> create table supplier_16 as
      2  select 'Frederick' as contact_name from dual union all
      3  select 'Robert' from dual union all
      4  select 'Jeremy' from dual union all
      5  select 'Simon' from dual
      6  /
    
    Table created.
    
    SQL> create or replace procedure test_coll is
      2    CURSOR upd IS
      3      SELECT CONTACT_NAME
      4      FROM Supplier_16
      5      FOR UPDATE;
      6    Type List Is table Of  varchar2(20);
      7    Name List := List('Shilpi','Sunil','Shreyas','Saral');
      8    v_contact_name varchar2(30);
      9    v_idx          number := 1;
     10  BEGIN
     11    OPEN upd;
     12    LOOP
     13       FETCH upd INTO v_contact_name;
     14       EXIT WHEN upd%NOTFOUND;
     15       UPDATE supplier_16
     16       SET    contact_name = name(v_idx)
     17       WHERE CURRENT OF upd;
     18       DBMS_OUTPUT.PUT_LINE(v_contact_name||' update to '||name(v_idx));
     19       v_idx := v_idx + 1;
     20    END LOOP;
     21    CLOSE upd;
     22    COMMIT;
     23  END;
     24  /
    
    Procedure created.
    
    SQL> exec test_coll;
    Frederick update to Shilpi
    Robert update to Sunil
    Jeremy update to Shreyas
    Simon update to Saral
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from supplier_16;
    
    CONTACT_N
    ---------
    Shilpi
    Sunil
    Shreyas
    Saral
    

    Of course, there is treatment rank by rank and is not best for performance, but it allows you to access your collection that you created names.

  • Works with tables/columns of the lines and the parameter names... syntax help

    I am trying to create a function that returns the distinct value and counts of a user defined schema/table/column.

    The code below defines a [stats_on_column_obj] object type and creates a single table of this type [stats_on_column_tab].

    The function is supposed to take three input variables: p_schema_name, nom_table_p, p_column_name and return an array (above).

    I can hardcode a select into (the)... but once I try to convert it into settings & immediate exec I'm stuck. The red section is where the problem is (I think).

    Oracle 10g.

    Stats_on_column_obj CREATE TYPE IS OBJECT (

    COL_VAL VARCHAR2 (500),

    NUMBER OF COL_VAL_CNT (7)

    );

    CREATE TYPE Stats_on_column_tab IS TABLE OF stats_on_column_obj;


    FUNCTION to CREATE or REPLACE get_STATS_ON_COLUMN

    (

    p_schema_name IN varchar2,

    nom_table_p IN varchar2,

    p_column_name IN varchar2

    )

    RETURN STATS_ON_COLUMN_tab

    IS

    l_STATS_ON_COLUMN_tab STATS_ON_COLUMN_tab: = STATS_ON_COLUMN_tab ();

    n INTEGER: = 0;

    str_select_tbl varchar2 (5000);

    BEGIN

    str_select_tbl: = 'SELECT'. p_column_name |' as col_val, count (*) as col_val_cnt FROM ' | p_schema_name |'. ' || nom_table_p: ' group of ' | p_column_name;

    FOR r IN (str_select_tbl)

    LOOP

    l_STATS_ON_COLUMN_tab. EXTEND;

    n: = n + 1;

    l_STATS_ON_COLUMN_tab (n): = STATS_ON_COLUMN_obj (r.col_val, r.col_val_cnt);

    END LOOP;

    RETURN l_STATS_ON_COLUMN_tab;

    END;

    /

    [Error] PLS-00103 (124:4): PLS-00103: encountered the symbol "LOOP" when expecting one of the following numbers: * & - + / at rem rest mod.. < an exponent (*) > | multiset year DAY_

    [Error] PLS-00103 (126:9): PLS-00103: encountered the symbol "=" when expected in the following way: constant exception < an ID > < a between double quote delimited identifiers > double Ref table Fedya Chariot of time timestam

    [Error] PLS-00103 (127:29): PLS-00103: encountered the symbol "

    [Error] PLS-00103 (128:4): PLS-00103: encountered the symbol "END" when waiting for one of the following numbers: begin function package pragma procedure subtype type use < an ID > < a double quote delimited identifier > form

    SELECT * FROM TABLE (get_STATS_ON_COLUMN ('SCHEMAS_X', 'TABLE_X', 'COLUMN_X'));

    Scott@ORCL > CREATE OR REPLACE
    FUNCTION get_STATS_ON_COLUMN () 2
    3 p_schema_name IN varchar2,
    4 nom_table_p IN varchar2,
    5 p_column_name IN varchar2
    6                                )
    7 STATS_ON_COLUMN_tab of RETURN
    8 EAST
    9 v_STATS_ON_COLUMN_tab STATS_ON_COLUMN_tab: = STATS_ON_COLUMN_tab ();
    10 v_n INTEGER: = 0;
    11 v_str_select_tbl VARCHAR2 (5000);
    BEGIN 12
    13 v_str_select_tbl: = ' SELECT stats_on_column_obj (' | p_column_name |) ', Count OF ' |
    14 p_schema_name | '.' || nom_table_p | "Group of" | p_column_name;
    15 v_str_select_tbl EXECUTE IMMEDIATE
    COLLECTION IN BULK 16
    17 IN v_STATS_ON_COLUMN_tab;
    18 RETURN v_STATS_ON_COLUMN_tab;
    END 19;
    20.

    The function is created.

    Scott@ORCL > select *.
    2 from table)
    (3 get_STATS_ON_COLUMN)
    4                                            'SCOTT',
    5                                            'EMP',
    6                                            'JOB'
    7                                           )
    8                       )
    9.

    COL_VAL COL_VAL_CNT
    -------------------- -----------
    CLERK                          4
    SELLER 4
    PRESIDENT 1
    MANAGER 3
    ANALYST 2

    Scott@ORCL >

    Or better change function in the pipeline.

    SY.

  • How to create a report (timesheet) with columns as the row values?

    Hello

    I created a table in APEX 4.2.2.00.11...

    CREATE TABLE "TRIAL_3_DETAILS"
      ( "CONSULTANT" VARCHAR2(20),
    "CLIENT" VARCHAR2(10),
    "PROJECT" VARCHAR2(20),
    "BILLABLE" VARCHAR2(10),
    "TASK" VARCHAR2(50),
    "DATE_" DATE,
    "EFFORT" NUMBER
      )
    /

     

    now, I want to create a report "Time Sheets" where the date values are columns in the weekly timesheet with other columns like customer name, project name, etc...

    also, I want the value of the estimated effort to the title of the column date of...

    Task

    Customer

    Project

    Bill (Y/N)

    < date >

    < date >

    < date >

    < date >

    < date >

    < date >

    < date >

    Hours

    < Job description >

    < empty >

    < project >

    < empty >

    < Estimated effort >

    < Estimated effort >

    < Job description >

    < empty >

    < project >

    < empty >

    < Estimated effort >.

    < Estimated effort >

    < Job description >

    < empty >

    < project >

    < empty >

    < Estimated effort >

    < Estimated effort >

    < Job description >

    < empty >

    < project >

    < empty >

    < Estimated effort >

    < Estimated effort >

    < Job description >

    < empty >

    < project >

    < empty >

    < Estimated effort >

    < Estimated effort >

    Is it possible to create this type of report?

    Syed

    MikeKutz wrote:

    Use TO_CHAR() to 'calculate' the day of the week.  Then, use this value.

    1. WITH e
    2. (
    3. SELECT consultant, client, project
    4. the task, effort
    5. TO_CHAR(date_,'Day') day_of_week
    6. billable
    7. OF trial_3_details
    8. -WHERE date_ between ____ and ____
    9. )
    10. SELECT *.
    11. E
    12. PIVOT (sum (effort)
    13. FOR that day_of_week IN ('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday')
    14. )

    Note that you actually need to use 'fmDay' as the mask of format of date with this approach. Using of 'Day' will result in all the day_of_week values be padded with blanks to the length of the longest value (Wednesday), then this will be the only match value in the pivot:

    SQL> with t as (
      2    select
      3        to_char(trunc(sysdate) + (level - 1), 'Day') d
      4      , round(dbms_random.value(0, 100), 2) z
      5    from
      6        dual
      7          connect by level <= 10)
      8  select
      9      *
    10  from
    11      t
    12  pivot (
    13      sum(z)
    14      for d in ('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'));
    
      'Monday'  'Tuesday' 'Wednesday' 'Thursday'  'Friday' 'Saturday'  'Sunday'
    ---------- ---------- ----------- ---------- ---------- ---------- ----------
                                83.23
    

    Using "fmDay" avoids filling and the pivot works according to the needs:

    SQL> with t as (
      2    select
      3        to_char(trunc(sysdate) + (level - 1), 'fmDay') d
      4      , round(dbms_random.value(0, 100), 2) z
      5    from
      6        dual
      7          connect by level <= 10)
      8  select
      9      *
    10  from
    11      t
    12  pivot (
    13      sum(z)
    14      for d in ('Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'));
    
      'Monday'  'Tuesday' 'Wednesday' 'Thursday'  'Friday' 'Saturday'  'Sunday'
    ---------- ---------- ----------- ---------- ---------- ---------- ----------
        60.16    125.09      44.17      77.5      3.63      82.89      26.22
    
  • related fact table column reference the same table dim

    In my analytical field, my fact table related reference column the same dim table, but in a physical schema, between two tables can have a join, so I create a copy of the Sun table, then finish the join in physics. This method can solve this issue, but not very good, someone at - it a perfect solution?

    You must create aliases for table dim, not just a copy. Why does it resolve the issue?

  • the selection of column in the row for the duplicate line

    Dear Sir.

    Please help me with a query

    Select the value of the column in the value of line when the line is repeated by the value of Column2 order.

    col1 col2
    Row1 1 d
    row2 1 b
    row3 1 c
    row3 2 c
    row4 2 d
    row5 2A
    my application should choose as below

    col1 col2 col3 col4
    Row1 1 c b d
    row2 2A c and d

    Please help I really need

    Thanks and greetings

    Sanat

    Frank gave you the answer...
    Here's another

    SQL> create table test
      2  as
      3  select 1 col1, 'a' col2 from dual union all
      4  select 1 col1, 'd' col2 from dual union all
      5  select 1 col1, 'e' col2 from dual union all
      6  select 2 col1, 'b' col2 from dual union all
      7  select 2 col1, 'd' col2 from dual union all
      8  select 2 col1, 'e' col2 from dual union all
      9  select 3 col1, 'c' col2 from dual union all
     10  select 3 col1, 'a' col2 from dual union all
     11  select 3 col1, 'd' col2 from dual
     12  ;
    
    Table created.
    
    SQL>
    SQL> select col1
      2       , max (decode (rn, 1, col2)) col2
      3       , max (decode (rn, 2, col2)) col3
      4       , max (decode (rn, 3, col2)) col4
      5    from (
      6  select col1
      7       , col2
      8       , row_number () over (partition by col1
      9                                 order by col2
     10                            ) rn
     11    from test
     12  )
     13   group by col1
     14  /
    
          COL1 C C C
    ---------- - - -
             1 a d e
             2 b d e
             3 a c d
    
  • In a table - looping through the rows and the stored procedure call

    APEX version: 3.2.0.00.27

    Hello

    I searched the forum and tried a few things but could not make it work.

    I have a tabular presentation, developed with the help of the ATD (Cascading LOV - method of tabular presentation - AJAX - ATD )

    What I'm trying to do now:
    -After submit and validations, loop through all the lines and
    -call a stored procedure passing 3 parameters obtained from each of the lines on the form of tables. This procedure will be an update of a database table.

    On the forum, I found that I could do the loop "* FOR i IN 1..." APEX_APPLICATION.g_f03. "LOOP COUNT *" syntax.

    Only for testing purposes, I tried just to view information with the following (On Load - after a footer) process (example of Denes Kubicek == > http://deneskubicek.blogspot.com/2009/05/execute-javascript-throuhg-plsql.html):
    declare
      v_today  varchar2 (200);
    begin
    --  :P40_test := APEX_APPLICATION.g_f03(1);
    --  :P40_test2 := APEX_APPLICATION.g_f04.COUNT;
      :P40_test2 := 100;
    
      v_today := to_char (sysdate, 'dd.mm.yyyy');
    
    --FOR i IN 1.. APEX_APPLICATION.g_f03.COUNT LOOP 
    
      :P40_test := APEX_APPLICATION.g_f02(2);
    
      HTP.p ('<script type="text/javascript">');
      HTP.p (   'alert(''Today is '
              || v_today
    --          || APEX_APPLICATION.g_f04(APEX_APPLICATION.g_f03(i))
              || '.\n'
              || 'end!'');'
             );
      HTP.p ('</script>');
    
    --    :P40_test := APEX_APPLICATION.g_f02(APEX_APPLICATION.g_f02(i));
    
    --END LOOP;
    
    end;
    The foregoing would give me a ' * ORA-01403: no data found * ' message. I tried through various variants of APEX_APPLICATION.g_f0* #*, but still can't get anything to display correctly. In commenting on all the lines referring to APEX_APPLICATION.g_f0x above, the date would be are they displayed fine.

    I tried uncomment the FOR... LOOP and play with the code (defining the process runs "On submit - after calculations" and Validations), I got was a ' * ORA-06502: PL/SQL: digital error or value: character conversion number error * "message.

    Here is the script of the form in a table:
    select 
    "V"."MSLINK",                                       -- hidden (number)
    "V"."INSTALLATION_DATE",                        -- editable date picker
    "V"."MANUFACTURER_INDICATOR",              -- editable (cascading LOV -- text)
    "V"."MODEL_INDICATOR",                           -- editable (cascading LOV -- text)
    "V"."DIAMETER_INDICATOR",                      -- editable (LOV -- number)
    "V"."PURPOSE_INDICATOR",                        -- editable (LOV -- text)
    "V"."VALVE_NUMBER",                                -- shown but not editable -- number
    "V"."MODIFY_DATE",                                  -- shown but not editable
    "V"."MODIFY_USER",                                   -- shown but not editable
    "V"."VALVES_STYLE"."FEATURE"                  -- shown but not editable -- number
    from "#OWNER#"."VALVES" "V"
    Where
      "V"."PROJECT_ID" = :P1_PROJECT_NUMBER AND
      "V"."VALVES_DFLAG" = 0
    Regarding the parameters for the stored procedure, it would the MSLINK, VALVE_NUMBER and the VALVES_STYLE. FEATURE.

    Help, please!
    (Sorry for the long post).

    Thank you

    Tan

    Hi, Tan,

    I have not seen that type of object - I've only used custom types for purposes of test years ago and have never used their within Apex!

    One possibility is that the value of checksum being is based on all of the content of these fields, rather than only the part of the FEATURE. If there are other parts of the object, you could include those items as well.

    Otherwise, as you f01 KP for a record, you will need to retrieve the values of the FUNCTION in your PL/SQL code directly from the table (because the user cannot modify these fields, you can be sure that the values in the table will be still valid).

    Andy

  • Column of the row on a table (using the SQL query)

    Data in my table looks like this.

    Data in the table

    ===============

    COL_1, COL_2

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

    1 ABCD

    2 ABC

    3 ABCDE

    4             AB

    5 ABCDEFGH

    Now, he must, for the entire line, length COL_2 text exceeds 3, display the text remaining in the new line. For example, the first row (COL_1 = 1), COL_2 length is 4, so in SQL output two lines will be displayed as shown below. Also, the last row (COL_1 = 5), the length is 8, then, in SQL, output 3 lines will be displayed as below. And for the COL_1 = 2 & 4, only 1 rank will be displayed as the text COL_2 length is less than or equal to 3.

    OUTPUT

    ===============

    COL_1, COL_2

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

    1 ABC

    1             D

    2 ABC

    ABC 3

    3             DE

    4             AB

    5 ABC

    5 DEF

    5             GH

    We need to implement using SQL only.

    Hello

    the solution of etbin uses recursive subquery factoring available on Oracle 11 g 2.

    Since you have not mentioned your version I write here 2 alternatives using CONNECT BY and Xquery:

    with mydata as

    (

    Select 1 c1, c2 'ABCD' Union double all the

    Select 2, 'ABC' from dual union all

    Select 3, 'ABCDE' from dual union all

    Select option 4, "AB" dual union all

    Select 5, "ABCDEFGH" of the double

    )

    Select c1, substr (c2, level * 3-2, 3) C2

    of mydata

    connect by substr (c2, level * 3-2, 3) is not null

    and c1 = c1 prior

    and prior dbms_random.random is not null;

    C1 C2

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

    1 ABC

    0%

    2 ABC

    ABC 3

    3

    4 AB

    5 ABC

    5 DEF

    5 GH

    9 selected lines.

    with mydata as

    (

    Select 1 c1, c2 'ABCD' Union double all the

    Select 2, 'ABC' from dual union all

    Select 3, 'ABCDE' from dual union all

    Select option 4, "AB" dual union all

    Select 5, "ABCDEFGH" of the double

    )

    Select a.c1, x.c2

    of mydata one

    , xmltable ("ora: tokenize($c2,",")")

    passing regexp_replace (a.c2, '(.{1, 3}) \1 ',',') as "c2".

    path of columns c2 varchar2 (30) '.'

    ) x

    where x.c2 is not null;

    C1 C2

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

    1 ABC

    0%

    2 ABC

    ABC 3

    3

    4 AB

    5 ABC

    5 DEF

    5 GH

    9 selected lines.

    Edit: corrected the Xquery solution using a simplified regexp_replace.

    Kind regards.

    Alberto

  • easily the value column in the row of the table when you click check box

    Hello

    in Jdev 11.1.2.3 I have a table which line is made up of 2 columns:
    How can I set value #{securityContext.userName} for it1 in column 2 when soc1 is amended in column 1?
    I can see how to set < af:setPropertyListener soc, then find currentRow in sib and set the respective attribute in VO.
    Can someone suggest an easier approach, a shortcut to one upstairs? In my view, there are some... :-)
    Use a clientListener?

    < af:column sortProperty = "#{bindings." V1.hints.selected.name}"sortable ="false ".
    headerText = "" id = "c1" width = "30" > "
    < af:selectBooleanCheckbox value = "#{row.bindings.Selected.inputValue} '"
    label = "#{row." Bindings.Selected.label}.
    shortDesc = "#{bindings." V1.hints.selected.ToolTip}"id ="sbc1"/ >
    < / af:column >

    < af:column headerText = "#{bindings." V1.hints.ProcessedUser.label}"id ="17">
    < af:inputText value = "#{row.bindings.ProcessedUser.inputValue}"it1 "
    < / af:column >

    Hello

    is easier to

    1. open the Pagedef
    2 create a new attribute value binding in the bindings section
    3. choose the table iterator
    4. mark the attribute for the second column and OK it
    5. in the setPropertyListener, you can now pass the value as #{bindings.. inputValue}

    Frank

  • Display a sortable icon on table column in the ADF.

    Hello

    I'm working on ADF with jdev 10.1.3.3. I have 2 column sortable table. My requirement is to show an icon of sort on the column header.
    I need help.

    When I click on the sortable column
    a small ^ come. Can I increase the size of this «^» What can be done for this. Any help will be appreciated.

    Vinay,

    You must create a custom look.

    [url http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/index.html] This can be useful

    John

  • How to get the column and the row of winding of title in a custom section?

    In default, the title of column and line's not winding print when the specification in the Chinese environment.

    How to make them winding?

    Thank you

    Please change ExtendedAttributes$ xlate$ .xsl EASectionTable section of the file in the folder/reports/FO as below:

  • How to get the use of database tables/columns in the table of edge/analysis?


    Hi all

    Anyone has an idea on how to get the tables in DB/colomns usaged in edge/analysis table in OBIEE 11 G?

    Thanks in advance!

    Anne

    You can try to generate a report of Catalog Manager for analysis / SA want to create the line and your RPD you can go to utilities > documentation of the repository and get the domain you want to and get all the mappings in Excel format.

    I hope this helps.

    SVS

Maybe you are looking for