Show Report In Two Columns

Apex 3.2
I have a report and it has 1 column and 22 rows.
At the moment, I show the first 15 rows and then you must paginate.
The report will not grow much, may be to 30 rows.
Is there a way to display the first 15 rows in 1 column and the second in another column, side by side etc
Gus

GusC wrote:
Apex 3.2
I have a report and it has 1 column and 22 rows.
At the moment, I show the first 15 rows and then you must paginate.
The report will not grow much, may be to 30 rows.
Is there a way to display the first 15 rows in 1 column and the second in another column, side by side etc
This is a presentation problem so the correct place to solve it is in the presentation layer using CSS. CSS3 introduces multiple column layouts, but this feature is only supported in recent browser versions—in particular requiring IE10+ in standards mode, which I suspect will be a problem as (a) you're not likely to be using IE10, and (b) APEX 3.2 themes aren't HTML5 and won't trigger standards mode (and aren't likely to be fully compatible even if forced to).
Nonetheless, I think it's a technique that's worth demonstrating (if only for me to get some experience of using it), before considering an alternative option using interleaved row ordering and CSS floats that might be of more immediate use to you.
Start with a standard report using a basic query on the [OE]HR EMPLOYEES table:
select
    first_name
  , last_name
  , phone_number
from
    oehr_employees
order by
    last_name
  , first_name
The appropriate structure for a single column report with a predefined sort order is an ordered list, so we create a custom generic row report template, as a copy of the Standard report template with the following modifications:
Before Rows
<table cellpadding="0" border="0" cellspacing="0" id="report_#REGION_STATIC_ID#" class="pagination-container">
  #TOP_PAGINATION#
</table>
<ol class="single-value-list" #REPORT_ATTRIBUTES#>
Before Each Row
<li>
Column Template 1
#COLUMN_VALUE#
After Each Row
</li>
After Rows
</ul>
<div class="t17CVS">#EXTERNAL_LINK##CSV_LINK#</div>
<table cellpadding="0" border="0" cellspacing="0" class="pagination-container">
  #PAGINATION#
</table>
This report template is generic enough to be used in both solutions, and although it appears you don't need pagination in the solution, I've retained it to provide more flexibility and because it involves an interesting problem in creating balanced columns on the last page in the interleaved row order option.
As the template only displays one column per row, and to exercise the column layout break properties, all of the table columns are hidden and we create a derived column that uses an HTML Expression containing some hCard microformat markup to make the list item content span 2 lines:
<div class="vcard">
  <span class="fn n"><span class="given-name">#FIRST_NAME# <span class="family-name">#LAST_NAME#</span></span>
  <div class="tel">#PHONE_NUMBER#</div>
</div>
We can then implement some basic list/hCard formatting using CSS:
  Basic list/hCard formatting common to both CSS3 multi-column and interleaved rows/CSS float solutions
ol {
  margin-left: 0;
  padding-left: 0;
  width: 44em;
  white-space: nowrap;
  list-style-type: square;
  ol li {
    margin: 0 0 0.5em 2em;
.vcard .family-name {
  font-weight: 600;
  text-transform: uppercase;
The CSS3 multi-column rules used in the first report region are pretty straightforward, although they have to take account of the current level of browser support by using vendor-specific properties where appropriate:
  CSS3 multi-column formatting
.multi-col ol {
/* Safari/Chrome/Opera */
  -webkit-column-count: 2;
  -webkit-column-gap: 0;
  /* Firefox */
  -moz-column-count: 2;
  -moz-column-gap: 0;
  /* IE10+ */
  column-count: 2;
  column-gap: 0;
  .multi-col ol li {
    -webkit-column-break-inside: avoid;
    -moz-column-break-inside: avoid;
    break-inside: avoid;
    /* Workaround for FF as break-inside doesn't work. */
    page-break-inside: avoid;
For the interleaved row ordering workaround used in the second report, the query has to be modified to calculate the page each row will appear on, and the position in each column on the page it will occupy:
with emps_ordered_unique as (
    select
-- If you need distinct rows then just restrict them at the start
        distinct
        first_name
      , last_name
      , phone_number
      , row_number()
          over (
            order by last_name, first_name) row#
    from
        oehr_employees
    order by
        last_name
      , first_name)
  , emps_interleaved as (
      select
          first_name
        , last_name
        , phone_number
        , row#
          -- 30 is overall number of rows per page
        , ceil(row# / 30) page#
          -- 30 is overall number of rows per page; 15 maximum number of rows per column
        , mod(row# - 1, least(ceil(count(*) over (partition by ceil(row# / 30)) / 2), 15)) col_row#
      from
          emps_ordered_unique)
select
    first_name
  , last_name
  , phone_number
from
    emps_interleaved
order by
    page#
  , col_row#
  , row#
The trick here is to interleave the rows, with those that have the same position in each column appearing in pairs so that they can be laid out side-by-side using element widths and CSS floats.
The CSS for this report is:
  Interleaved rows/CSS float formatting
#interleaved .pagination-container {
  clear: both;
#interleaved ol {
  #interleaved ol li {
    float: left;
    width: 20em;
The drawback with the latter option is that although the list entries are visually ordered down and across the columns, they are not semantically ordered thus in the HTML markup, so any user perceiving the list without this CSS (for example via a screenreader, or a mobile device with an alternative style sheet) gets the list in a weird order. For that reason I probably wouldn't use this approach. At present I'd implement the CSS3 multi-column approach as a progressive enhancement for users with up-to-date browsers, and allow it to gracefully degrade to a basic 1-column list in legacy versions.

Similar Messages

  • Vertical report with two columns

    I have table with picture. I can display common sql report(horizontal or vertical). Is it possible to display this to two columns (eshop).Two vertical columns (for example field of records 10x2).
    Message was edited by:
    user542927

    Hi,
    There are probably a number of ways that you can handle this, but the underlying principle for all of these would be that you need to have 2 reports. The first report would contain the first ten records and the second report would contain the next ten.
    The way to do that would be to get the ROW_NUMBER() value for each line and, in the query defintion for each report, you would have a WHERE clause that restricted the results based on this value. The best way to do this would be to create a view and base the reports on this view. The view definition would include:
    ROW_NUMBER() OVER (ORDER BY xxxx) AS ROW_NUMBER
    where xxxx is the same order definition as the main ORDER BY clause. Each row will then get a ROW_NUMBER value that matches it's position in the query resultset.
    Your first report would then have a WHERE clause of:
    WHERE ROW_NUMBER < 11
    the second report would have:
    WHERE ROW_NUMBER BETWEEN 11 AND 20
    The final step would be styling/positioning the reports. The first would probably be in Column 1 in the region and the second in Column 2. You would almost certainly have to adjust the styling and/or positioning using a style attribute in the region/report definitions.
    Regards
    Andy

  • Show Rows Where Two Columns have Same Data

    Hello,
    I have a spreadsheet that I need to sort by showing me all the rows where the data is equal between two columns.
    I.E. I have a column called Last Name and I have another column, U, with some of those Last Names, I want to sort the spreadsheet to show me only the rows that match up with the same Last Name in coumn a and U.
    Thanks for any help.
    L

    To sort the table:
    Add two columns to the table. For this discussion, I'll refer to them as columns AA and AB.
    In AA2, enter: =ROW()
    Fill to the bottom of the table. With all f these cells selected, Copy, then Edit > Paste Values.
    This gives you a column you can sort by to restore the original order of the table.
    In AB2, enter: =IF(A=U,U," ") using option-space between the double quotes.
    Visually, this will repeat the duplicated names once more in column AB.
    An ascending sort on column AB will bring all rows with duplicate data in columns A and U to the top of the table.
    For greater visibility You might also add a conditional format rule to all of column AB, as I've done here for column D:
    The box to the right of "Text doesn't contain" contains a single 'option-space' character. The ascending sort (on column D) has not yet been done.
    Regards,
    Barry

  • Fluid grid website is showing up as two-columns even on very large monitors in IE10

    In Firefox and Chrome, the website looks and functions just fine. However, viewing on the same large monitors in Internet Explorer, the webpages are broken up into two columns. To see what I mean, the site is www.PixelHallPress.com

    Yes, I use code view and I put the tags you suggested exactly where you had suggested. No, I am not a coder, but I'm pretty good at following directions. Yes, I've been known to make mistakes. Most of the time it's because I know a little code, but not enough to keep myself from getting into trouble (or help get out of it).
    The thing is that this website has been behaving just fine for about a year. It works fine in other browsers. IE is the only problem. I tried applying the template from two earlier versions that I know worked previously, and they too are having the display problem in IE
    I'm no longer getting that error code, by the way. However, when I place <body> then </body> tags I get an error message that I have an unbalanced body tag. I wonder if the fluid grid template creates its own version of a body tag.
    One variable: The host has migrated the site to a new server. Could this have introduced some errors?
    I appreciate your advice. Thanks, Sally

  • Showing data of two columns in one in the Query

    I have two masters with same structures only Key of master is different.
    i have created multiprovider on these masters which is used for query purpose.
    Here situation is that we have already loaded data in one master structure whcih is not tobe touched.
    we can only do chages in second master.
    Now in Multiprovider as two key fields for two masters are different we cannot map them in identification of multiprovider.
    Now we want only one field on selection screen and also in the report with data for both masters.
    can anybody help me in it.

    Hi
    You can use Constant Selection (Effect like Left Outer Join for different InfoObjects in a MultiProvider). In order to do that, please take the following steps:
    1. Create a Restriced Key Figure.
    2. In the RKF dialog, drag one of the characteristics (the one that is NOT related to the KF).
    3. Right Click on this Characteristic (context menu) and hit "Constant Selection".
    This should show you all values in the columns.
    Yaniv

  • Blank page showing when changing from two column to one column pages

    This is the scenario:
    Document with two master pages - Page1 has two content areas - left column and right column, Page 2 has one content area the full page width named 'FullPage'
    One page set named PageSetOne - with multiple subforms, each with Pagination setting of Following Previous and Continue filling parent.
    Second page set named PageSetTwo - this has a single subform with Pagination setting of place on Page2. The child subform has itself a subform with Pagination setting of Place in Content Area 'FullPage'.
         This page set is initially set to be Hidden.
    Third page set named PageSetThree - this has a single subform with Pagination setting of place in Page 1 and a child subform with Pagination setting of Following Previous.
    [Obviously I am simplifying names and content here].
    The problem is this: when in design mode, there is a blank page showing at the end of the document whenever there are sufficient subforms in PageSetOne such that subforms are displayed in the right hand column.
    When subforms are removed so that nothing is showing in the right hand column then the blank page goes away.
    I have put a marker subform immediately after the last subform in PageSetThree and can see that the blank page is showing after this.
    Also, the following problem:
         When in preview mode, the extra blank page at the end does not display (which is good)
         BUT if the hidden PageSetTwo is made to be visible AND there is content showing in the right hand column prior to it,
         THEN a blank page is displayed just before the newly displayed PageSetTwo page (a single column page on Master page Page2).
    I have tried every combination of Pagination Place before and after settings and can find no way to avoid the blank pages.
    Does anyone have a clue as to what is going on and how I can avoid these blanks showing up?

    I have finally managed to solve this problem.
    The issue was not a subform extending too far out, it was a pagination setting, as Niall suggested.
    I created a blank document to analyse the issue closely, and lo, my new blank doc with all default settings, worked perfectly.
    So I revisited my forms and compared the pagination settings subform by subform.
    This is what I had to change to ensure that all pages flowed with no extras:
    PageSetOne (which is supposed to show using the two column master)
    set the top page Place = ‘In Content Area Leftcolumn’ and After=Continue filling parent
    All child subforms each with Pagination setting of Following Previous and Continue filling parent.
    PageSetTwo (to show in the full page column Master)
    set the top page Place = ‘In Content Area FullPage’ and After=Continue filling parent
    All child subforms each with Pagination setting of Following Previous and Continue filling parent.
    PageSetThree ( back to two column master)
    set the top page Place = ‘On Page1’ and After=Continue filling parent
    All child subforms each with Pagination setting of Following Previous and Continue filling parent.
    I discovered that the critical setting was for PageSetOne. The After setting needed to be Continue filling Parent
    Once I had those settings in order then the form performed as required.
    This has been a frustrating learning experience but at least ultimately successful.
    AJ

  • Sum of two columns

    Hi guys
    i need to insert one column in a row with forumla as col1+col2. how can i do that in simple tabular report. My two columns in XML are like this:-
    <T_AMT>240.6</T_AMT>
    <TAX_AMT>0</TAX_AMT>
    Can i use substring function while creating template in word or i need to use substring while writing query...
    thanks
    Edited by: ObieeUser on 28-May-2010 03:07

    Hi Vetsrini
    thanks for your reply...
    for showing sum of two columns:-
    is it possible to do with GUI instead of writing code or doing tweaks in the sql... the main drawback of doing tweaks in sql is after i make changed in sql and then i click on sql builder it doesn't show me the changes which i have done....
    Use of Substr/Decode/Case When or other oracle function
    another question is like if i need to use substr function in sql can't i do it in SQL builder if yes then how as i have seen function drop down in sql builder but it doesn't show such function?
    regards

  • Getting data of two columns in one column

    Hi,
    I need to show data of two columns in one column, I also want to insert space between the data of both the columns in the output
    can i use something like this ?
    (IMPORTER_NAME+' '+IMPORTER_ADDRESS) as "Location"

    872435 wrote:
    Hi,
    I need to show data of two columns in one column, I also want to insert space between the data of both the columns in the output
    can i use something like this ?
    (IMPORTER_NAME+' '+IMPORTER_ADDRESS) as "Location"You can either use the CONCAT function or || -
    SQL> select 'Hello'||' '||'World', CONCAT(CONCAT('Hello',' '),'World') from dual;
    'HELLO'||'' CONCAT(CONC
    Hello World Hello WorldHTH
    David

  • Showing report data columns into two rows instead of one row using SSRS 2012

    Hi All,
    I have a ssrs report with 13 columns and I want to show those 13 columns data into two rows instead of showing in one row. please send me step by step process.
    id     fullname     firstname      lastname        mailingaddress     billingaddress       
    city       state       zipcode   
    1       ABC                A                  C                  
        xyz                      xyz123                   york     
    PA          12345    
     homephone     cellphone          workphone          company    
    1234567890      4567890123     0123456789         ABC,Inc
    id     fullname     firstname      lastname        mailingaddress     billingaddress        
    city          state     zipcode   
    2          XYZ               X                  Z                      
         abc                     abc123           lewisburg     
    PA      54321    
     homephone     cellphone           workphone        company    
    4567890123      0123456789     1234567890         xyz,Inc
    id     fullname     firstname      lastname        mailingaddress     billingaddress        
    city          state     zipcode   
    3       BCD                  B                  D                  
    123abc                  xyz123                leesburg       PA     
     54123    
     homephone     cellphone          workphone        company    
    4567895623      0783456789     1238967890       Hey,Inc
    Thanks in advance,
    RH
    sql

    Do a right mouse click on the left, gray row marker => "Insert Row"=> "Inside Group
    - Above or Below", then you get a second detail row.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Sorting based on two columns in report

    Hi,
    we have one issue on sorting based on two columns in report.
    In the report we are doing sorting on two columns(week_id and stage_name). I have attached the screen shot for the same. The sorting is first done on the week_id and then on the stage_name. The issue comes when we have no data for the stage 1 - Prospect in W1. The stage goes to the second position.
    Please suggest if there is any work around to show the 1 - Prospect stage in W1.
    Regards,
    Ambika Nanda.

    what is w1? where is screenshot? and is stage seoncd sort? if so what is the issue?

  • Show name field for two columns Fact Table joing by one Dimension

    Hi all,
    My question is about physical joins in Oracle BI EE.
    Task is:
    In a relational fact table "star" there is two columns Entity 1, Entity 2 and a table dimension Entity witch have two filds: ID and NAME. By loadind data fact table is filled with id for Entity 1 and Entity 2.
    In a report made in Answers i need to show ID_Entity_1 NAME_Entity_1 ID_Entity_2 NAME_Entity_2
    Question is: how to do physical join between two columns fact table and one dimension table entity so, that i can show name field in a report for both columns Entity 1, Entity 2.

    You must Create an alias in the physical layer of your table dimEnsion and use it as a second dimension table.

  • Add Two Column in report ,Download and Delete

    Hi Friends,
    i have one item File Browser to use browse :P1_file_browser and i have create a Report
    My Table Is
    CREATE TABLE  "ARM_DOC_CER"
       (     "ID" NUMBER,
         "NAME" VARCHAR2(500),
         "MIME_TYPE" CLOB,
         "BLOB_CONTENT" BLOB,
         "SUBJECT" VARCHAR2(500)
    i jus want to add two column in my report
    1--Download
    2--Delete
    When i click on download then download file and when i click on delete then delete corresponding file.
    How can i do this.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    You can use concat function or also '||' to combine two columns.
    1. with concat-
    concat("D4 Product"."P01 Product","D4 Product"."P02 Product Type")
    2. With '||' operator
    "D4 Product"."P01 Product" || '-'||"D4 Product"."P02 Product Type"
    (Remove '-' if not required)
    This should resolve. Hope this helps
    Regards
    MuRam

  • Export option in ALV report downloades first two columns blank

    Hi ,
    Before posting this query I searched the solution in SDN but I did't find the solution.
    My problem is  After displaying report in ALV format ,if I press Export --> Local file --->spreadsheet ;  file will downloaded to excel sheet but first two columns(only heading no data ) will be blank  and next two columns with proper data.
    I checked field catalog defination it seems to be ok,  any other mistake ?
    Please suggest.
    Narayan

    Hi
    It's the option you have in the path System->List->Save->Local file
    I means it's the standard option to export an abap list into a local file, so you should try this path too and check if the resul it's the same
    I think you should choose  Export --->spreadsheet: here before saving the file an excel document will be open
    Max

  • ALV report shows fixed number of columns for a user ?

    Hello,
    I have an issue wherein I have created an ABAP ALV grid display in a WD ABAP application and hosted it onto portal. Now, all the users can see the correct number of columns for the report which are determined dynamically. But just for one user, irrespective of which report she launches it shows her only 4 columns.
    Can anybody suggest why this kind of behavior.
    Appreciate your help.
    Regards,
    Samta.

    Hi,
    Right, click the button "manage layout" or "save layout" and remove any default user settings...
    added: didn't read carefully sorry ;)... better check user settings in SU01 if no ALV parameter is used.
    Kr,
    m.
    Edited by: Manu D'Haeyer on Oct 21, 2011 8:53 PM

  • How to add two columns in OBIEE report?

    Hi to All,
    Can anyone tell me how to add two columns in OBIEE report and get that result in a new column?
    Thanks in Advance,
    Thenmozhi

    Assume you already have two columns SalesAmt1 and SalesAmt2, and you want to derive 3rd column say SalesAmt3 which would be the sum of SalesAmt1 and SalesAmt2.
    For this, as I mentioned above pull SalesAmt1 and SalesAmt2 columns in Report. Now pull another column (say SalesAmt1) and open the fx. Clear the contents of fx. Now locate the columns button in the bottom of the fx. From Here, first select SalesAmt1 and + sign and the select SalesAmt2.
    Now in this new column, the fx should look like SalesAmt1 + SalesAmt2.
    Let me know if you are looking for something else.
    Thanks

Maybe you are looking for