On selection A I5Grid Row initiate I5Grid B by passing parameter column 3 of selected Row

Dear Guru,
           I want to initiate I5Grid B on selection of I5Grid A Row hard code value of column 3.
Which function I has to use for button I can use press function but on I5Grid click which function or code will be applicable.
Thanks
Muhammad Ashfaq

You can find out about all the i5Grid's events and methods here: i5Grid - SAP Library
Regards,
Christian

Similar Messages

  • Order By Columns in a Row

    Hi,
    I'm struggling to solve a problem. I want to sort the values of fields in each row.
    RDBMS : 11.2.0.3
    CREATE TABLE test_order
      (a NUMBER, b NUMBER ,c NUMBER ,d NUMBER
    REM INSERTING into test_order
    Insert into "test_order" (A,B,C,D) values ('18','29','14','21');
    Insert into "test_order" (A,B,C,D) values ('40','11','29','12');
    Insert into "test_order" (A,B,C,D) values ('22','20','19','24');
    select * from test_order
             A          B          C          D
            18         29         14         21
            40         11         29         12
            22         20         19         24 I'm trying get result in order as shown below DOES NOT matter column name.
    Each row ordered by its own columns.
             A          B          C          D
            14         18         21         29
            11         12         29         40
            19         20         22         24 Note: my real table have more than one million records.
    Any helps is welcome.

    Seeing as Frank is also having fun with this, and I'm bored watching a data pump import ticking over partition by partition, I thought about creating a SQL data type called TSortedNumbers - allowing you to create/store a set of numbers as a sorted list, and providing a method for returning a specific item in the set.
    As PL/SQL code needs to be used to override the default constructor, I decided to use a PL/SQL quicksort on the number list - as oppose to an expensive context switch to SQL to have SQL doing the sort for you. No idea what (if any) performance improvements there are using a PL/SQL quicksort.
    However, this does demonstrate the really kewl and awesome functionality Oracle provides by enabling one to define custom SQL types.
    // TNumbers is an array/collection of numbers
    SQL> create or replace type TNumbers as table of number;
      2  /
    Type created.
    // package Lib, implements the well-known Quick Sort algorithm - and sorts an
    // array of numbers, where the array is of data type TNumbers
    SQL> create or replace package Lib is
      2          procedure QuickSort( array in out nocopy TNumbers );
      3  end;
      4  /
    Package created.
    SQL>
    SQL> create or replace package body Lib is
      2          procedure SwapPivots( array in out nocopy TNumbers, pivot1 number, pivot2 number ) is
      3                  pivotValue      number;
      4          begin
      5                  pivotValue := array(pivot1);
      6                  array(pivot1) := array(pivot2);
      7                  array(pivot2) := pivotValue;
      8          end;
      9
    10          procedure  Partition( array in out nocopy TNumbers, left number, right number, pivotIndex number, storeIndex out number ) is
    11                  pivotValue      number;
    12          begin
    13                  pivotValue := array(pivotIndex);
    14                  SwapPivots( array, pivotIndex, right );
    15                  storeIndex := left;
    16                  for i in left..right - 1 loop
    17                          if array(i) < pivotValue then
    18                                  SwapPivots( array, i, storeIndex );
    19                                  storeIndex := storeIndex + 1;
    20                          end if;
    21                  end loop;
    22                  SwapPivots( array, storeIndex, right );
    23          end;
    24
    25          procedure QuickSort( array in out nocopy TNumbers, left number, right number ) is
    26                  pivotIndex      number;
    27                  pivotNewIndex   number;
    28          begin
    29                  if left < right then
    30                          pivotIndex := trunc( DBMS_RANDOM.value( left, right ) );
    31
    32                          Partition( array, left, right, pivotIndex, pivotNewIndex );
    33                          QuickSort( array, left, pivotNewIndex-1 );
    34                          QuickSort( array, pivotNewIndex+1, right );
    35                  end if;
    36          end;
    37
    38          procedure QuickSort( array in out nocopy TNumbers ) is
    39          begin
    40                   QuickSort( array, 1, array.Count );
    41          end;
    42
    43  end;
    44  /
    Package body created.
    // We define a a custom SQL data type that contains a single property called n,
    // where n is of type TNumber.
    // The default constructor for this type is: TSortedNumbers ( <array-of-numbers )
    // We create a custom constructor with the same signature, in order to override
    // the default constructor.
    SQL> create or replace type TSortedNumbers is object(
      2          n       TNumbers,
      3
      4          constructor function TSortedNumbers(n TNumbers) return self as result,
      5          member function Get(i integer) return number
      6  );
      7  /
    Type created.
    // Using our custom constructor, we accept the array-of-numbers parameter,
    // assign it to our  TSortedNumbers property n, and quick sort our property so
    // that the array-of-numbers is in ascending values.
    // We also provide a method called Get(), that allows the caller to get a value
    // from our sorted array, by index number.
    SQL> create or replace type body TSortedNumbers as
      2          constructor function TSortedNumbers(n TNumbers) return self as result is
      3          begin
      4                  self.n := n;
      5                  Lib.QuickSort(self.n);
      6                  return;
      7          end;
      8
      9          member function Get(i integer) return number is
    10          begin
    11                  return( self.n(i) );
    12          end;
    13
    14  end;
    15  /
    Type body created.
    // Create sample table and populate it with data
    SQL> create table testtab( a number, b number, c number, d number );
    Table created.
    SQL>
    SQL> insert into testtab (A,B,C,D) values ('18','29','14','21');
    1 row created.
    SQL> insert into testtab (A,B,C,D) values ('40','11','29','12');
    1 row created.
    SQL> insert into testtab (A,B,C,D) values ('22','20','19','24');
    1 row created.
    // To create an array of numbers, we use the TNumbers() data type. Its
    // constructor  is TNumbers( num1, num2, .., numn ). We pass the columns of
    // the rows as parameters into this constructor and it creates an array of our
    // column values. As we now have an array-of-numbers, we can instantiate a
    // TSortedNumbers object. Its constructor required an array-of-numbers
    // parameter. Which is what we have created using our row's columns.
    // As the TSortedNumbers object contains a sorted array-of-numbers of our
    // columns, we can display the numbers in the array using the Get() method
    // and index position in the array of the number we want to display.
    SQL> with results as(
      2  select
      3          rownum,
      4          t.*,
      5          TSortedNumbers( TNumbers(a,b,c,d) ) as NUMBER_SET
      6  from       testtab t
      7  )
      8  select
      9          r.number_set.Get(1)     as "1",
    10          r.number_set.Get(2)     as "2",
    11          r.number_set.Get(3)     as "3",
    12          r.number_set.Get(4)     as "4"
    13  from       results r
    14  /
             1          2          3          4
            14         18         21         29
            11         12         29         40
            19         20         22         24
    SQL>
    Edited by: Billy  Verreynne  on Apr 13, 2013 6:04 PM. (Added comments to example)

  • Not able to select and copy from adf table in IE and chrome if we enable row selection

    Hi All,
    We have an adf table and user wants to select and copy table cell values.
    We enabled row selection on adf table. Ifrow selection is in place, IE and Chrome are not allowing user to select and copy data. But Firefox is allowing.
    Do we have any solution to this? For our customer IE is the standard browser and they do test app on IE.
    Regards
    PavanKumar

    Hi Timo,
    Sorry forgot to mention versions.
    We are using 11.1.1.7 and IE 9.
    I tried in Google but could not get the solution.
    Kindly let me know solution for this.
    PavanKumar

  • Is there a way to select multiple files and initiate the Capitalize function?

    I have hundreds of files all in upper case that are driving me crazy. I can select them one at a time, right click and then select Transformations/Capitalize. Is there a way to select multiple files and initiate the Capitalize function?

    You could use Automator to do this - take a look at the article at http://www.wikihow.com/Batch-Rename-Files-in-Mac-OS-X-Using-Automator to see how this might be done.
    Good luck...

  • How can I select and delete rows based on the value in one column?

    I searched through the discussion board, and found a thread on deleting blank rows, but not sure how to modify it to work with my issue.
    I have put together a rather complicated spreadsheet for designing control systems, it calculates parts needed based on check boxes selected in a second spreadsheet.
    Since not all systems require all parts there are many rows that have a 0 quantity value, I would like to select these rows and delete them once I have gone through the design phase (checking off required features on a separate sheet).
    I like the way the other thread I found will gather all the blank rows at the bottom without changing the order of the rows with data in them.
    I don't understand exactly how the formula in the other thread works well enough to modify it to look for a certain column.
    I hope I made myself clear enough here, to recap, I would like to sort the rows based on a zero value in one (quantity) column, move them (the zero quantity rows) to the bottom of the sheet, and then delete the rows with a zero quantity (I can delete them manually, but would like to automate the sorting part).
    Thanks for any help anyone can provide here.
    Danny

    I apologize but, as far as I know, Numbers wasn't designed by Ian Flemming.
    There is no "this column will be auto-destructing after two minutes"
    You will have to use your fingers to delete it.
    I wish to add a last comment :
    if your boss has the bad habit to look over your shoulder, it's time to find an other one.
    As I am really pig headed, it's what I did. I became my own boss so nobody looked over my shoulder.
    Yvan KOENIG (VALLAURIS, France) mercredi 13 juillet 2011 20:30:25
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Row and Column Level Select Permission

    Hello Friends,
    I am using Oracle Oracle9i Enterprise Edition Release 9.2.0.1.0 and Windows XP. I have two questions. How to set :
    1. Row Level Select Permission?
    2.Column Level Select Permission?
    1. I have a table having 100 records in it. I don’t want to allow all the user to see them; means, if user1, user2 and user3 are going to select * from mytable then only they can get all the rows; while other users (including sys) should not able to get all rows, they should be capable of from 11th record.
    Though it can be managed by using another table, but I am just finding the other solution.
    2. Likewise, if I don’t want to allow to fetch all the columns; suppose column4 is having confidential info and only be visible by user1,user2 and user3 only, not by any othr user; what should I do?
    Please guide and help me.
    Regards

    You would need to use Virtual Private Database (VPD)/ row level security (RLS) to apply row-level security policies to the table. The DBMS_RLS package is used for this
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_rls.htm#sthref6168
    Unfortunately, column-level security wasn't available in 9.2. You would need to upgrade to Oracle 10g to get that functionality. Before that, you would have to create views that selected appropriate subsets of columns and grant permissions on those views to different users.
    Justin

  • How get values of columns for selected rows in SortingTable

    Hi,
    is possible to get values of more columns for selected rows? I have SortingTable that have 1st column loaded from list and 2nd and 3rd columns are text areas where user must write some text. I need way how to get values from all three columns for selected rows.
    My table looks like this:
    System name I User Account I  User Password
    system1 ...............jblack ............. passw1
    system2 ...............pdowe..............p@ssw
    system3 ...............ekie................. pas123
    Column System name is loaded from list, columns User Account and User Password are Text class. How can I get values for all three columns in case that I select e.g. system1 or system1 & system2?
    I read [this post|http://forums.sun.com/thread.jspa?forumID=764&threadID=5220609] but there is described selection only for one column.
    Code of my SortingTable is following:
    <Field name='tblDalsiSystemy'>
                   <Display class='SortingTable'>
                       <Property name='align' value='center'/>
                       <Property name='sortEnable' value='false'/>
                       <Property name='selectEnable' value='true'/>
                       <Property name='pageSize' value='5'/>
                       <Property name='pageButtonAlign' value='center'/>
                       <Property name='columns'>
                           <List>
                               <String>System name</String>
                               <String>User Account</String>
                      <String>User Password</String>
                           </List>
                       </Property>
                   </Display>
                   <FieldLoop for='y' in='lstSystemList'>               
                     <Field name='SystemName'>
                         <Display class='SortingTable$Row'>
                             <Property name='key'>
                                 <ref>lstSystemList</ref>
                             </Property>
                         </Display>
                         <Display class='Label'>
                             <Property name='align' value='center'/>
                             <Property name='value'>
                                 <ref>y</ref>                            
                             </Property>
                         </Display>
                     </Field>
                     <Field name='UserAccount'>
                         <Display class='SortingTable$Row'>                        
                         </Display>
                         <Display class='Text'>
                             <Property name='size' value='10'/>
                             <Property name='value'>                            
                             </Property>
                         </Display>
                     </Field>
               <Field name='UserPassword'>
                         <Display class='SortingTable$Row'>                        
                         </Display>
                         <Display class='Text'>
                             <Property name='size' value='10'/>
                             <Property name='value'>                            
                             </Property>
                         </Display>
                     </Field>
                   </FieldLoop>              
               </Field>Getting value is performed by:
    <ref>tblDalsiSystemy.selected</ref>Any help?
    Thanks
    Petr

    Hi Ivan,
    thanks for your advice - it works.
    Here is my final code:
    <Field name='tblDalsiSystemy'>
                   <Display class='SortingTable'>
                       <Property name='align' value='center'/>
                       <Property name='sortEnable' value='false'/>
                       <Property name='selectEnable' value='true'/>
                       <Property name='pageSize' value='5'/>
                       <Property name='pageButtonAlign' value='center'/>
                       <Property name='columns'>
                           <List>
                               <String>System name</String>
                               <String>User Account</String>
                      <String>User Password</String>
                           </List>
                       </Property>
                   </Display>
                   <FieldLoop for='y' in='lstSystemList'>               
                     <Field name='SystemName'>
                         <Display class='SortingTable$Row'>
                             <Property name='key'>
                                 <ref>lstSystemList</ref>
                             </Property>
                         </Display>
                         <Display class='Label'>
                             <Property name='align' value='center'/>
                             <Property name='value'>
                                 <ref>y</ref>                            
                             </Property>
                         </Display>
                     </Field>
                     <Field name='Account[$(y)].login'>
                         <Display class='SortingTable$Row'/>
                         <Display class='Text'>
                             <Property name='size' value='10'/>
                             <Property name='value'>                           
                             </Property>
                         </Display>
                     </Field>
                     <Field name='Account[$(y)].passwd'>
                         <Display class='SortingTable$Row'/>
                         <Display class='Text'>
                             <Property name='size' value='10'/>
                             <Property name='value'>
                             </Property>
                         </Display>
                     </Field>
                   </FieldLoop>              
               </Field>Maybe it could be helpful for somebody another :-)
    Petr

  • Select a column in a rows

    I want to select a column in a row.
    suppose,
    empno
    1
    2
    3
    4
    5
    I want op like,
    1 2 3 4 5

    Like this...
    SQL> ed
    Wrote file afiedt.buf
      1  select max(decode(rn, 1, empno)) as emp1
      2        ,max(decode(rn, 2, empno)) as emp2
      3        ,max(decode(rn, 3, empno)) as emp3
      4        ,max(decode(rn, 4, empno)) as emp4
      5        ,max(decode(rn, 5, empno)) as emp5
      6        ,max(decode(rn, 6, empno)) as emp6
      7        ,max(decode(rn, 7, empno)) as emp7
      8        ,max(decode(rn, 8, empno)) as emp8
      9        ,max(decode(rn, 9, empno)) as emp9
    10        ,max(decode(rn, 10, empno)) as emp10
    11        ,max(decode(rn, 11, empno)) as emp11
    12        ,max(decode(rn, 12, empno)) as emp12
    13        ,max(decode(rn, 13, empno)) as emp13
    14        ,max(decode(rn, 14, empno)) as emp14
    15        ,max(decode(rn, 15, empno)) as emp15
    16        ,max(decode(rn, 16, empno)) as emp16
    17        ,max(decode(rn, 17, empno)) as emp17
    18        ,max(decode(rn, 18, empno)) as emp18
    19        ,max(decode(rn, 19, empno)) as emp19
    20        ,max(decode(rn, 20, empno)) as emp20
    21  from (
    22        select empno, row_number() over (order by empno) as rn from emp
    23*      )
    SQL> /
          EMP1       EMP2       EMP3       EMP4       EMP5       EMP6       EMP7       EMP8       EMP9   EMP10         EMP11      EMP12      EMP13      EMP14      EMP15      EMP16      EMP17      EMP18      EMP19      EMP20
          7369       7499       7521       7566       7654       7698       7782       7788       7839    7844          7876       7900       7902       7934
    SQL>

  • How to select a row in datagrid by checking the check box in that row

    how to select a row in datagrid by checking the check box in that row.
    Im using <html:checkbox> tag, and also a VO which is in request scope. i wanna display the values in the VO in a row and corresponding to this i want a checkbox..
    Thanx in advance
    Message was edited by: me
    Hemanth@SA
    Message was edited by:
    Hemanth@SA

    Hello,
    I got the solution:
    final int pRow = row;
    final int pCol = column;
    final JTable myTable = mytable;
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    myTable.requestFocusInWindow();
    myTable.changeSelection(pRow, pCol, true, true);

  • Select column, but group rows inside that column first

    Hi,
    I have a scenario where I want to show data from a column, but the column has multiple entries of the 'same' entry.
    id company
    1 burger_king
    2 mcdonalds
    3 mcdonalds_east
    4 diary_queen
    5 mcdonalds_west
    I want to be able to show all companies but group the mcdonalds companies.
    Any suggestions on how to do that?
    Thanks.

    Here's a funky way (if I haven't misread the requirement):
    SQL> -- generating sample data:
    SQL> with t as (
      2  select 1 id, 'burger_king' company from dual union
      3  select 2, 'mcdonalds' from dual union
      4  select 3, 'mcdonalds_east' from dual union
      5  select 4, 'diary_queen' from dual union
      6  select 5, 'mcdonalds_west' from dual
      7  )
      8  --
      9  -- actual query:
    10  --
    11  select id
    12  ,     company
    13  from  ( select id
    14          ,      company
    15          ,      row_number() over (partition by soundex(company) order by id) rn
    16          from   t
    17        )
    18  where rn = 1;
            ID COMPANY
             1 burger_king
             4 diary_queen
             2 mcdonalds
    3 rows selected.

  • SQL Loader Inserts chr(13) and chr(10) in the first column of every row.

    Hi,
    I have exported a data in a pipe delimited file using TOAD in one database. Now I want to load the data in my local database using SQL Loader. However every time I try to load the data a double quote followed by a new line is entered for the first column of each row. Unfortunately the delimited file is very big and hence can't be posted here. However I tried the same with a customized table and its data and found the same problem. Below are the table structures and control file that I used.
    create table test_sql
    a varchar2(30),
    b date
    insert into test_sql values('51146263',sysdate-3);
    insert into test_sql values('51146261,sysdate-1);
    EXPORTED PIPE DELIMITED FILE_
    A|B|!##!
    51146261|04/14/13 4:55:18 PM|!##!
    51146263|04/12/13 4:55:32 PM|!##!
    create table test_sql1 as select * from test_sql where 1=2;
    CONTROL FILE_
    OPTIONS(SKIP=1)
    LOAD DATA
    INFILE 'C:\Users\Prithwish\Desktop\Test.txt' "str '!##!'"
    PRESERVE BLANKS
    INTO TABLE TEST_SQL1
    FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    A CHAR(2000),
    B DATE "MM/DD/YYYY HH12:MI:SS AM"
    select * from TEST_SQL1;
    After this when I paste it in notepad I get the following result
    A B
    51146261"     14-APR-0013 16:55:18
    51146263"     12-APR-0013 16:55:32.
    I have no idea how the quotes or the newline appear. Is this a Toad bug? Any help would be greatly appreciated. Really urgent.
    Thanks in advance
    Regards

    Hi Harry,
    I actually thought that the str !##! was causing the problem. Actually my original export has some new lines in some specific columns so I can't keep the new line as my line terminator and hence I kept the !##! as my terminator.
    When I put the same data in a notepad and load it there is no problem at all. For e.g I just typed the following in a notepad and the data loaded just fine.
    A|B|!##!
    51146261|01-01-01 10:10:10 AM|!##!
    51146263|01-01-01 11:11:11 AM|!##!
    Its just when I load the exported file there the problem arises though I have verified the file using UNIX as well using octal dump and found no hidden characters.
    Regards,
    Prithwish

  • Multiple values from same column in diffetent columns in same row??

    Hi all,
    I am wondering how you can display different values from the same column into different columns on same row. For example using a CASE statement I can:
    CASE WHEN CODE IN ('1', '3') THEN COUNT( ID) END as "Y"
    CASE WHEN CODE NOT IN ('1', 'M') THEN COUNT( ID) END as "N"
    Yes this will produce two columns needed but will also produce two separate records and null values for the empty's.
    Any ideas?
    Thanks

    It's not clear what you want.
    Can you post some examples as described in the FAQ: {message:id=9360002}
    As my first guess, I would think you're looking for something like...
    SQL> select * from emp;
         EMPNO ENAME      JOB              MGR HIREDATE                    SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-1980 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-1981 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-1981 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-1981 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-1981 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-1981 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-1981 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 19-APR-1987 00:00:00       3000                    20
          7839 KING       PRESIDENT            17-NOV-1981 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-1981 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 23-MAY-1987 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-1981 00:00:00        950                    30
          7902 FORD       ANALYST         7566 03-DEC-1981 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-1982 00:00:00       1300                    10
    14 rows selected.
    SQL> select count(case when deptno in (10,20) then deptno end) as deptno_10_20
      2        ,count(case when deptno > 20 then deptno end) as deptno_30plus
      3  from emp;
    DEPTNO_10_20 DEPTNO_30PLUS
               8             6

  • How to remove gaps/null values from set of columns in a row

    Im trying to implement a solution for removing null value columns from a row.
    Basically in below example i have five codes and corresponding id's for that codes.What im trying to achive here is if
    i have a null code then i have to move next not null code and id into its new location.
    Example:
    'A1'cd1,'A2'cd2,null cd3,'A4'cd4,null cd5,'i1'id1,'i2'id2,null id3,'i4' id4,null id5 So here cd4 and id4 should take positions of cd3 and id3.
    Output should look like this
    cd1 cd2 cd3 cd4 cd5     id1 id2 id3 id4 id5
    A1  A2   A4              i1  i2  i4Any help would be highly appreciated for below example:
    with temp_table as
    (select 'A1'cd1,'A2'cd2,null cd3,'A4'cd4,null cd5,'i1'id1,'i2'id2,null id3,'i4' id4,null id5 from dual union all
    select 'A11',null,null,'A44','A55','id11',null,null, 'id44','id55' from dual union all
    select null,'A111',null,null,'A555',null,'id111',null, null,'id555' from dual union all
    select 'A',null,null,'A1111','E55','id11',null,null, 'id111','id1111' from dual )
    select * from temp_table;Edited by: GVR on Dec 1, 2010 8:27 AM

    I like case expression B-)
    The same question of my homepage http://www.geocities.jp/oraclesqlpuzzle/7-81.html
    with temp_table(cd1,cd2,cd3,cd4,cd5,id1,id2,id3,id4,id5) as(
    select 'A1' ,'A2' ,null,'A4'   ,null  ,'i1'  ,'i2'   ,null,'i4'   ,null     from dual union all
    select 'A11',null ,null,'A44'  ,'A55' ,'id11',null   ,null,'id44' ,'id55'   from dual union all
    select null,'A111',null,null   ,'A555',null  ,'id111',null,null   ,'id555'  from dual union all
    select 'A'  ,null ,null,'A1111','E55' ,'id11',null   ,null,'id111','id1111' from dual)
    select
    case when SumCD1 = 1 then CD1
         when SumCD1+SumCD2 = 1 then CD2
         when SumCD1+SumCD2+SumCD3 = 1 then CD3
         when SumCD1+SumCD2+SumCD3+SumCD4 = 1 then CD4
         when SumCD1+SumCD2+SumCD3+SumCD4+SumCD5 = 1 then CD5 end as CD1,
    case when SumCD1+SumCD2 = 2 then CD2
         when SumCD1+SumCD2+SumCD3 = 2 then CD3
         when SumCD1+SumCD2+SumCD3+SumCD4 = 2 then CD4
         when SumCD1+SumCD2+SumCD3+SumCD4+SumCD5 = 2 then CD5 end as CD2,
    case when SumCD1+SumCD2+SumCD3 = 3 then CD3
         when SumCD1+SumCD2+SumCD3+SumCD4 = 3 then CD4
         when SumCD1+SumCD2+SumCD3+SumCD4+SumCD5 = 3 then CD5 end as CD3,
    case when SumCD1+SumCD2+SumCD3+SumCD4 = 4 then CD4
         when SumCD1+SumCD2+SumCD3+SumCD4+SumCD5 = 4 then CD5 end as CD4,
    case when SumCD1+SumCD2+SumCD3+SumCD4+SumCD5 = 5 then CD5 end as CD5,
    case when SumID1 = 1 then ID1
         when SumID1+SumID2 = 1 then ID2
         when SumID1+SumID2+SumID3 = 1 then ID3
         when SumID1+SumID2+SumID3+SumID4 = 1 then ID4
         when SumID1+SumID2+SumID3+SumID4+SumID5 = 1 then ID5 end as ID1,
    case when SumID1+SumID2 = 2 then ID2
         when SumID1+SumID2+SumID3 = 2 then ID3
         when SumID1+SumID2+SumID3+SumID4 = 2 then ID4
         when SumID1+SumID2+SumID3+SumID4+SumID5 = 2 then ID5 end as ID2,
    case when SumID1+SumID2+SumID3 = 3 then ID3
         when SumID1+SumID2+SumID3+SumID4 = 3 then ID4
         when SumID1+SumID2+SumID3+SumID4+SumID5 = 3 then ID5 end as ID3,
    case when SumID1+SumID2+SumID3+SumID4 = 4 then ID4
         when SumID1+SumID2+SumID3+SumID4+SumID5 = 4 then ID5 end as ID4,
    case when SumID1+SumID2+SumID3+SumID4+SumID5 = 5 then ID5 end as ID5
    from (select cd1,cd2,cd3,cd4,cd5,id1,id2,id3,id4,id5,
          nvl2(cd1,1,0) as SumCD1,
          nvl2(cd2,1,0) as SumCD2,
          nvl2(cd3,1,0) as SumCD3,
          nvl2(cd4,1,0) as SumCD4,
          nvl2(cd5,1,0) as SumCD5,
          nvl2(id1,1,0) as SumID1,
          nvl2(id2,1,0) as SumID2,
          nvl2(id3,1,0) as SumID3,
          nvl2(id4,1,0) as SumID4,
          nvl2(id5,1,0) as SumID5
          from temp_table)
    order by cd1,cd2,cd3,cd4,cd5;
    CD1   CD2    CD3   CD4   CD5   ID1    ID2    ID3     ID4   ID5
    A     A1111  E55   null  null  id11   id111  id1111  null  null
    A1    A2     A4    null  null  i1     i2     i4      null  null
    A11   A44    A55   null  null  id11   id44   id55    null  null
    A111  A555   null  null  null  id111  id555  null    null  nullMy SQL articles of OTN-Japan
    http://www.oracle.com/technology/global/jp/pub/jp/ace/sql_image/1/otnj-sql-image1.html
    http://www.oracle.com/technology/global/jp/pub/jp/ace/sql_image/2/otnj-sql-image2.html

  • Cannot edit a field that is "Standard Report Column" when new row added

    Hi everyone,
    I have created a master-detail form from the wizard and within the detail report region source I have used apex_item.xxx API
    example;
    select C1, C2,
    CASE when C2 ='N' then
    apex_item.select_list_from_query(3, C3,'select a1 d, a2 r from table1', 'ENABLED', 'NO',null,null, 'f03_#ROWNUM#')
    else
    apex_item.select_list_from_query(3, C3,'select a1 d, a2 r from table1', 'DISABLED', 'NO',null,null, 'f03_#ROWNUM#')
    END C3
    from table;
    All columns C1,C2,C3 are defined as "Standard Report Columns".
    The results allows the column C3 field to be enabled or disabled for input depending on a condition.
    The problem is when you hit the default button "Add Row" to add a new row. The row is non-editable and is populated with null values.
    What I want is to allow input when a new row is inserted into the multi-row detail form.
    Can any one help?
    Is there a way to change the Display As field for the new row columns to "text field" from "standard report column" dynamically?

    I think you will need to use the old way of adding rows instead of the new one. I remember having headaches trying to get it working.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Printing 1 Label in Row and Column Other Than Row 1, Column 1

    I want to print 1 label and want to print it on Avery label stock in a row and column other than row 1, column 1. I'm using Avery Labels 8163. I can select the row and column I want to print on in Word but can't figure out how to do it in *Address Book*. Anyone know how to do this?

    You can't do that in Addrress Book. But you can use pearLabelizer to do that. Be sure you download and install the appropriate Label Definition file and name it as such so you can select it from the pop-up list in the program's Preferences window.

Maybe you are looking for

  • How to set up 2 iphones on a pc with one using mobileme

    Hi My wife already has a ipod so we have itunes already set up on the home PC and her work pc. We are about to activate two new iphones. I use the home pc primarily and have myoutlook running on it. Wife uses her outlook on work pc 2 iphones purchase

  • Is there a way to create a web journal based on faces?

    I have a bunch of family photos from all branches of my family tree. I would like to create a web journal has photos of each individual on their own page. Does Aperture do that?

  • Workflow for post processing offline images

    I'm a professional real estate photographer who normally edits his own images after a photoshoot. I've recently become so busy that I'd like to outsource the post processing of my images to another individual who also uses Photoshop. Is there a way t

  • Can't get any installed version of Dreamweaver to open.

    MacbookPro with OS 10.10.1. Here are the results: Dreamweaver CS 4: "Dreamweaver is unable to locate the menus.xml file and cannot rebuild it from a backup. You may need to reinstall Dreamweaver." Clicking OK closes program. Dreamweaver CS 5: "Unable

  • Sound Blaster Surround 5.1 USB on GNU/Li

    Hi, I need to buy USB sound card for my laptop. Sound Blaster Surround 5. seems to be a good choice, but I am running only Ubuntu Linux, so I need to know if it will be working. I know, that only M$ Windows are supported, but it's working on Linux or