Tabular report, how to split row into two lines per record

Hi, I have a tabular report based on a collection. The collection has 15 fields and appears horizontally across the screen. I would like to have a break after the 5th column so that each row is on two lines instead of one. Is this possible...any information would be helpful.
a shortened query is: and I would like the break to be between c028 and c029.
thanks
Karen
Select apex_item.select_list_from_lov_xl
(28,
c028,
'GEARS',
'style="width:200px;background-color:#FBEC5D; "'
|| 'onchange="f_set_casc_gear(this,f29_'
|| LPAD (seq_id, 4, '0')
|| ')"',
'YES',
'0',
'- Select Gear -',
'f28_' || LPAD (seq_id, 4, '0'),
NULL,
'NO'
) gear_code,
apex_item.select_list_from_query(29,
c029,
'select lma_desc e, lma_code r
from lobster_mgmt_area
where 1 in (select 1 from gears where gear_code = '
||nvl(c028,0)
||' AND (type_code in (''005'') and category_code in (''160'')) OR ('
||nvl(c028,0)
||' in (''130'')) ) order by lma_code ',
'style="width:75px"',
'YES',
'0',
'- Select -',
'f29_' || LPAD (seq_id, 4, '0'),
NULL,
'NO') lma_code,
apex_item.text
(30,
c030,
6,
NULL,
'style="width:50px;background-color:#FBEC5D;"'
) gear_quantity
from collections where collection_name = 'EFFORT_C'

Hello Karen,
>> and each field needs to be updateble ( concatenating two fields does not allow for that).
Did you notice the ‘<br />’ component, as part of the columns concatenations?
The following example is using the same principle – every two updatable column, from the employees table, are sharing the same tabular form row - http://htmldb.oracle.com/pls/otn/f?p=22710:420 . The report query is:
select apex_item.text(10,first_name)||'<br />'||apex_item.text(11,last_name) col01,
apex_item.text(12,phone_number)||'<br />'||apex_item.text(13,email) col02,
apex_item.text(14,salary)||'<br />'||apex_item.text(15,commission) col03
from employeesThe same principle is being used to define custom headings.
Hope this time it will be more clear.
Regards,
Arie.

Similar Messages

  • How to split currency into two parts at dot

    Hi,
    I am working in ECC6.0.
    how can I split a currency field into two parts split at dot ( . )
    I cannot use SPLIT AT  for currency field. All FMs I found does not works for currency.
    Reagrds,
    Divya

    DId u check G_DECIMAL_PLACES_GET ?
    You can use this FM to find the decimal places in the currency .

  • How to Customize Report (presenting a single row into two rows)...?

    As of now my report presents the data in the following way:
    EMP ID EMP NAME EMP ADD EMP DEPT
    1 Mike NJ HR
    2 Peter LA Marketing
    I want to have the following pattern:
    EMP ID EMP NAME
    1 Mike
    EMP ADD EMP DEPT
    NJ HR
    EMP ID EMP NAME
    2 Peter
    EMP ADD EMP DEPT
    LA Marketing
    Do you think this is possible with HTML DB?
    Also how can I set the print format for a page....?
    Early help in this regard would be highly appreciated.

    As of now my report presents the data in the
    following way:
    EMP ID EMP NAME EMP ADD EMP DEPT
    1 Mike NJ HR
    2 Peter LA
    Marketing
    I want to have the following pattern:
    EMP ID EMP NAME
    1 Mike
    EMP ADD EMP DEPT
    NJ HR
    EMP ID EMP NAME
    2 Peter
    EMP ADD EMP DEPT
    LA Marketing
    Do you think this is possible with HTML DB?
    Also how can I set the print format for a page....?
    Early help in this regard would be highly appreciated.Take a look at the Tips/Tricks page of HTMLDB Studio. I just posted a tip on doing this with named column report formatting.
    Earl

  • Split String into two

    HI,
    How to Split String into two parts at delimiter

    HI,
    REPORT ZSTRING.
    DATA: LENGTH TYPE I,    
          REMAINING_LENGTH TYPE I ,   
          NEXT_POINTER TYPE I    ,   
          FIRST_HALF(20)  TYPE C ,    
          SECOND_HALF(20) TYPE C ,    
          TEMP TYPE I .
    PARAMETER: WORD(35) TYPE C . "INPUT WORD
    START-OF-SELECTION.
    LENGTH = STRLEN( WORD ).      "Length of the input String
    SEARCH WORD FOR '/'.
        IF SY-SUBRC = 0 .  
          IF SY-FDPOS > 0.   
          MOVE WORD+0(SY-FDPOS) TO FIRST_HALF.  
          ENDIF.  
       TEMP = SY-FDPOS + 1. 
       IF TEMP <> LENGTH.    
       NEXT_POINTER = SY-FDPOS + 1.    
       REMAINING_LENGTH = ( LENGTH - SY-FDPOS ) - 1.    
       MOVE WORD+NEXT_POINTER(REMAINING_LENGTH) TO SECOND_HALF.  
       ENDIF.
    ENDIF.
    WRITE:/'Input String:', WORD .
    WRITE:/'First  Half:', FIRST_HALF.
    WRITE:/'Second Half:', SECOND_HALF.
    *-- End of Program
    Reward Points if found helpfull..
    Cheers,
    Chandra Sekhar.

  • Interactive Reports: Display data on two lines per row?

    Is it somehow possible to display a single row across two lines in an interactive report?
    Something like this:
    Row1 Field 1, Row1 Field 2, Row1 Field 3
    Row1 Field 4 (spanning across the other fields)
    Row2 Field 1, Row2 Field 2, Row2 Field 3
    Row2 Field 4 (spanning across the other fields)
    Row3 Field 1, Row3 Field 2, Row3 Field 3
    Row3 Field 4 (spanning across the other fields)
    ... etc
    For example, I have a "Remarks" column that would look better on its own line, rather than being squeezed into the same row with the other columns.
    I realize that this layout might not be possible out-of-the-box, but I was thinking that perhaps some javascript/jQuery trick could be used. Unfortunately, my jQuery-fu is not strong yet, so I'm asking for help...
    (I also know that this type of layout is possible using a classic report with a custom template, but I would prefer to use the Interactive Report if at all possible.)
    - Morten

    Hi,
    Try this to page HTML header
    <style>
    .apexir_WORKSHEET_DATA td{white-space:nowrap!important;}
    </style>At least it work with firefox 3.5 for me
    Br, Jari

  • How to convert rows into columns

    Hi,
    How to convert rows into columns of two different tables.
    These two tables have two common columns namely (shipline,pos).
    Let me know if we have any built in functions to do this.
    thank you very much .
    Edited by: 808542 on Dec 7, 2010 8:35 PM
    Edited by: 808542 on Dec 7, 2010 8:37 PM

    Have you tried this first?
    http://forums.oracle.com/forums/search.jspa?threadID=&q=row+to+column&objID=f75&dateRange=last90days&userID=&numResults=15&rankBy=10001

  • How to split words in two arrays depending of the first letter.

    Yes, how to split words in two arrays depending of the first letter.
    I have a string array with some words, and I need to separe this array into two differents string arrays depending of the first letter:
    if the word starts in A to M the word goes to array Words_AM;
    if the word starts in N to Z the word goes to array Words_NZ;
    Now I'm doing the next:
    if ((ArrayWord.charAt(0))<='a') && (ArrayWord.charAt(0)>='m'))                                        {                                                                                          
    Words_AM]=ArrayWord;
    else
    Words_NZ[i]]=ArrayWord;
    But doesn't work.
    Any solution?
    Best wishes.

    Yes , that's true. But also I have to change the <='a' to <'a', because of with first option didn't selecting the a letter.
    But with z letter, doing the same before, doens't run.
    if ((ArrayWord.charAt(0))<'a') || (ArrayWord.charAt(0)>='m'))
       Words_NZ]=ArrayWord;
    else
    if ((ArrayWord.charAt(0))<='n') || (ArrayWord.charAt(0)>'z')) Words_AM[i]]=ArrayWord;
    Regards ;)

  • How do i change the text in a submenu diffrent than the page name? I want it wrap into two lines

    How do i change the text in a submenu diffrent than the page name? I want it wrap into two lines or be a diffrent title but i can't figure out how to make any changes to the text.

    Hello,
    Text in Menu/Submenu canno tbe changed while using menu widget. However, if you use the Manual Menu option, then you can create your own Menu and add the hyperlinks according to your requirement.
    To create Manual Menu, please follow the steps below :
    1) In the Widget palette, go to "Menus" click and drag "Vertical/Hrizontal" into your artboard/workspace
    2) Click on the widget itself to a blue arrow appears to the right
    3) There is a drop down called "Menu Type" set it to "Manual" (as shown in screenshot) :
    4) Now You can create your own Menu and add your own text and hyperlink to  this Menu.
    Hope this helps.
    Regards,
    Sachin

  • How to convert rows into columns with decode function

    Hi,
    How to convert rows into columns with the help of decode function in oracle.
    thanks and regards
    P Prakash

    say
    col1 col2
    1 10
    2 20
    3 30
    then use
    select col1,
    sum(decode(col2,10,10)) "new1"
    sum(decode(col2,20,20))"new2"
    sum(decode(col2,30,30))"new3"
    from table_name
    group by col1;
    we used sum u can use ny function if wont u have to give the column name i.e col2 name also
    so i think u got it nw
    regards

  • How to split image into smaller (same size) pieces?

    Hi all,
    My question is how to split image into smaller (same size) pieces, using Photoshop elements 13? Could anyone help me with this one?
    Thanks!

    Use the Expert tab in Editor (I think that is what it is called in PSEv.13)
    You may find the grid helpful. Go to View>Grid. It will not print, but will help to orient you. You can set up the gridlines to suit via Edit>Preferences>Guides and Grid. If you want to partition the picture in to 4 uniform pieces, it would be Gridline every 50%, Subdivision 1. Also, go to View>Snap to>Grid.
    Set up the Rectangular marquee tool: If the picture is 6" wide & 4" high, enter width=3in & height=2in.on the tool's option bar. This will be a fixed size.
    Click and select one quadrant, press CTRL+J to place this quadrant on a separate layer
    Repeat for the other 3 quadrants
    You should end up with 5 layers : Background, and layers 1, 2, 3, 4.

  • Ask split long text into two line into same cell for ALV

    Dear All,
    Is it possible split long text into two line into same cell for ALV display data?
    Regards,
    Luke
    Moderator message: please search for information before asking.
    Edited by: Thomas Zloch on Feb 24, 2011 10:12 AM

    Keep options: Select the paragraph, then CtrlAltK (Mac: CmdOptK, I
    think).
    If you want the paragraphs in pairs, create two paragraph styles. Style
    A has keep options set to start on a new page, and also, its Next Style
    is style B.
    Style B has no keep options, but it's Next Style is Style A.
    Select all the text.
    From the flyout menu of the paragraph styles palette, apply Style A
    "then next style."
    Now all paragraphs will be alternating -- style A, style B, style A, etc.
    Now do what I wrote initially, and you'll have pairs of paragraph in
    separate text frames.

  • Displaying an interactive report row using two lines

    Is there a way to take a report row from an interactive report that has too many columns for one display row and display using 2 rows? This would minimize the amount of scrolling the user would then need to do.
    Thanks in advance!

    Hi,
    I dont think we can show a single row as two lines in an interactive report but if you use a classic report instead of interactive then you can do that by creating your own custom report template from scratch and selecting templete type as Named Column (row template) and show the row in what ever way you need...any way if you find any solution for interactive report just post your solution here which will help me too
    Thanks,
    Mahesh

  • Split string into two based on end of word and max length

    I have the following procedure, which is passed a comma separated string as it input, and it has to split it into two, and the split has to occur at the end of a word, and the first split part can't be more than 15 in length.
    Is there an more efficient way of achieving this? I have a loop in my main code that calls this procedure and in effect a nested loop has been created here.
    e.g. Hello, everyone, welcome, to, split, string' would be split into 'Hello' and 'everyone, welcome, to, split, string'
    create or replace procedure split_str
                   (pi_str  in  varchar2,
                    po_str1 out nocopy varchar2,
                    po_str2 out nocopy varchar2) is
      i number;
    begin
      if (len(pi_str) <= 15) then
        po_str1 := pi_str;
        po_str2 := NULL;
      else
        i := 1;
        loop
          exit when len(SUBSTR(pi_str, 1 ,INSTR(pi_str, ',', 1, i)-1)) > 15;
          po_str1 := SUBSTR(pi_str, 1 ,INSTR(pi_str, ',', 1, i)-1);
          po_str2 := SUBSTR(pi_str, INSTR(pi_str, ',', 1, i)+2);
          i := i+1;
        end loop;
      end if;
    end split_str; 

    You want to find the last space character before the 15th character.
    x := INSTR ( SUBSTR ( pi_str, 1, 15) , ' ' , -1)Then the first string is SUBSTR(pi_str,1,x) and the second string is SUBSTR(pi_str,x+1)

  • How to convert rows into column

    Hi,
    can any one help me how to convert rows into column by pl/sql procedure.
    Thanks and Regards

    http://www.oracle.com/technology/oramag/code/tips2004/050304.html
    -- dropping the sample table if exists
    drop table rowstocol
    -- create sample table
    create table rowstocol ( name varchar2(20));
    -- Inserting rows into sample table
    insert into rowstocol values('Amit Zhankar');
    insert into rowstocol values('Piyu Yawalkar');
    insert into rowstocol values('Piyu Yawalkar');
    insert into rowstocol values('Ashish Ghelani');
    insert into rowstocol values('Aditi Zhankar');
    insert into rowstocol values('Tom Kyte');
    insert into rowstocol values('Oracle');
    -- Following query should be run to create a sql. This result sql should be run to convert rows to column.
    -- The following query uses just the tablename (whose data is to be converted) and name of the column (which is to be converted).
    -- Example taken here is table rowstocol, column name.
    SELECT cc
    FROM (select decode(rn ,1 ,'Select ',null) ||' MAX (CASE WHEN dr = '|| rownum||' THEN DECODE (rn,1, col1) END) '||
    decode(rn,maxr,' col1 from ','||'||chr(39)||','||chr(39)||'|| ') cc,rn,maxr
    from (SELECT ROWNUM rn,count(0) over() maxr FROM rowstocol) order by rn) trows
    union all
    select '(SELECT tabs.col1, DENSE_RANK () OVER (ORDER BY col1,rowid) dr,dense_rank() OVER (order by 1) rn
    FROM (SELECT NAME col1 FROM rowstocol) tabs ) group by rn' cc from dual;
    -- The result of this query will do the reqd conversion from row to column.
    -- Replace table rowstocol by your table, column name by your column.
    CC
    Select MAX (CASE WHEN dr = 1 THEN DECODE (rn,1, col1) END) ||','||
    MAX (CASE WHEN dr = 2 THEN DECODE (rn,1, col1) END) ||','||
    MAX (CASE WHEN dr = 3 THEN DECODE (rn,1, col1) END) ||','||
    MAX (CASE WHEN dr = 4 THEN DECODE (rn,1, col1) END) ||','||
    MAX (CASE WHEN dr = 5 THEN DECODE (rn,1, col1) END) ||','||
    MAX (CASE WHEN dr = 6 THEN DECODE (rn,1, col1) END) ||','||
    MAX (CASE WHEN dr = 7 THEN DECODE (rn,1, col1) END) ||','||
    MAX (CASE WHEN dr = 8 THEN DECODE (rn,1, col1) END) col1 from
    (SELECT tabs.col1, DENSE_RANK () OVER (ORDER BY col1,rowid) dr,dense_rank() OVER (order by 1) rn
    FROM (SELECT NAME col1 FROM rowstocol) tabs ) group by rn
    Select MAX (CASE WHEN dr = 1 THEN DECODE (rn,1, col1) END) ||','||
    MAX (CASE WHEN dr = 2 THEN DECODE (rn,1, col1) END) ||','||
    MAX (CASE WHEN dr = 3 THEN DECODE (rn,1, col1) END) ||','||
    MAX (CASE WHEN dr = 4 THEN DECODE (rn,1, col1) END) ||','||
    MAX (CASE WHEN dr = 5 THEN DECODE (rn,1, col1) END) ||','||
    MAX (CASE WHEN dr = 6 THEN DECODE (rn,1, col1) END) ||','||
    MAX (CASE WHEN dr = 7 THEN DECODE (rn,1, col1) END) ||','||
    MAX (CASE WHEN dr = 8 THEN DECODE (rn,1, col1) END) col1 from
    (SELECT tabs.col1, DENSE_RANK () OVER (ORDER BY col1,rowid) dr,dense_rank() OVER (order by 1) rn
    FROM (SELECT NAME col1 FROM rowstocol) tabs ) group by rn;
    COL1
    Aditi Zhankar,Amit Zhankar,Ashish Ghelani,Oracle,Oracle,Piyu Yawalkar,Piyu Yawalkar,Tom Kyte
    Edited by: bhooma on Jan 20, 2009 2:44 AM

  • How to insert data into two tables linke with foreign key..

    I have two tables
    1)EMP(emp_ID,username,emp_type_code)
    emp_ID is primary key, emp_type_code is a foreign key references emptype table.
    2)emptype(emp_type_code,emp_type_descripton)
    emp_type_code is primary key
    Could anyone help me ..how to insert data into EMP table. How to insert data into two tables linke with foreign key..

    CREATE TABLE "CATDB"."DWDIMUSER"
    "USER_ID" NUMBER(10,0) NOT NULL ENABLE,
    "SPECIALTY_ID" NUMBER(10,0),
    "FULLNAME" VARCHAR2(20 BYTE),
    "FNAME" VARCHAR2(20 BYTE),
    "LNAME" VARCHAR2(20 BYTE),
    "USER_SUBTYPE" VARCHAR2(20 BYTE),
    CONSTRAINT "DIMUSER_PK" PRIMARY KEY ("USER_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE,
    CONSTRAINT "DIMUSER_DIMSPECIALTY_FK" FOREIGN KEY ("SPECIALTY_ID") REFERENCES "CATDB"."DWDIMSPECIALTY" ("SPECIALTY_ID") DISABLE
    CREATE TABLE "CATDB"."DIMSPECIALTY"
    "SPECIALTY_ID" NUMBER(10,0) NOT NULL ENABLE,
    "SPECIALTY_NAME" VARCHAR2(100 BYTE),
    CONSTRAINT "DIMSPECIALTY_PK" PRIMARY KEY ("SPECIALTY_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE
    INSERT INTO DIMUSER (FullName, FNAME, LNAME, USER_TYPE, USER_SUBTYPE)
    SELECT DISTINCT
    Engineer AS FullName,
    regexp_substr(Engineer , '[^,| ]+', 1, 1) as FName,
    regexp_substr(Engineer , '[^,| ]+', 1, 2) as LName ,
    'Engineer'
    FROM EMPLOYEELOOKUP;
    INSERT INTO DIMSPECIALTY (SPECIALTY_NAME)
    SELECT DISTINCT SPECIALITY
    FROM EMPLOYEELOOKUP;
    COMMIT;
    CREATE TABLE employeelookup ...IS A TABLE THAT HAS ALL THE DATA NEDED TO BE FILLED IN BOTHE TABLES...
    CREATE TABLE "CATDB"."EMPLOYEELOOKUP"
    "EMPLOYEELOOKUP_ID" NUMBER(10,0) NOT NULL ENABLE,
    "ENGINEER" VARCHAR2(25 BYTE),
    "SPECIALTY" VARCHAR2(20 BYTE),
    CONSTRAINT "DIMSPECIALTY_PK" PRIMARY KEY ("EMPLOYEELOOKUP_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE
    DATA IN EMPLOYEELOOKUP
    Engineer, Specialty,
    John, Dow, Electronis,
    Dow, Jons, Technician
    Stan Smithers Sales
    Mark, Richards Marketing
    Jenny, Lane Marketing
    John, Lee Sales
    I NEED TO LOAD THE FOREIGN KEY IN DIMUSER FROM THE DIMSPECIALTY TABLE?
    BY USING THE LOOKUP TABLE TO MARCH THE NAMES UNDER THE Engineer COLUMN, SPECIALTY COLUMNE DISTICTIVLY BY JOINING THE DIMSPECILTY TO RISTIVE THE PRIMARY KEY AND FILL IT IN THE DIMUSER TABLE AS A FOREIGNE KEY.

Maybe you are looking for

  • CAN NO LONGER PRINT FROM PAGES SINCE UPDATING

    Just updated macbook running snow leopard it is now 10.6.8 and pages wont allow me to print documents have tried some of the answers others have provided but to no avail the printer drivers are there as can print from web pages and other stored docum

  • T61 New hard drive will not boot, BIOS doesn't reckognize.....

    Ok i need some major help here.  I recieved a new Seagate 500Gig internal hard drive for my lappy.  so i thought i would do a fresh install of windows vista, via the restore media that i created from the thinkvantage software on my laptop. Now here i

  • T400 with F3507G Win7 Driver problem cannot complete install

    I am trying to install driver of F3507G on T400 Windows 7 but cannot complete the installation the system still show in the device manager that mini card GPS port and mobile broad band GPS port on com 12 are the problem. Cloud you please help to rect

  • Cisco prime infrastructure 1.1 issue

    hi: i purchase a R-PI-1.1-K9 with  R-PI-1.1-100-K9,but now i find the cisco website can't download Prime infrastructure 1.1 anywhare,only 1.2 and above version exist.but the device base licences(R-PI-1.1-100-K9) is  based RI version 1.1.how do we res

  • 250GB HHD, only seeing 130GB...

    Ok, just put my new system together  - mostly trouble-free!   Prescott 3.4 GHz running fine at 34C idle.   Just a couple of gripes, which hopefully someone can help with... Firstly, there's a Maxtor 250GB SATA hard drive installed. I enabled SATA on