Put one query result in two newspaper style columns per page

I have a query that returns about 1000 rows of data but I only need to see 3 fields so on a page it only takes up a couple inches of space. I want to make the data wrap so it prints down the left side column then continues the list on the right hand side (like a newspaper article flows) I have no idea how to make it look like this:
ROWONE DATE       ROWFOUR DATE
ROWTWO DATE       ROWFIVE DATE
ROWTHREE DATE       ROWSIX DATE
Page 1
ROWSEVEN DATE       ROWNINE DATE
ROWEIGHT DATE       ROWTEN DATE
Page 2
Any ideas?
Message was edited by:
user463998

Well, probably I'm not the best to give advice but it did work for me. I put a frame to fill the whole page, then the repeating frame in which I wanted my data, then added my columns to the repeating frame... edited the properties of the repeating frame to print down/across and it worked (though I had to resize the repeating frame to make it a bit smaller because I guess it has to be able to easily fit two wide before it'll print in the second column.)

Similar Messages

  • How to use one query results in another query

    hi,
    in help.sap I have founded that using variable type replacement path I can use one query results in another query. It is wrote there that I have to choose query name results I want to get in variable definition but I do not know where.
    How I can do this?
    Result I want to get is:
    In one query I have material prices in another material quantities. I want to calculate inventory value (price * quantity). Moreover prices are on plant level, quantities on storage type level. Plant is atribute of storage type.
    Can I do this?
    Regards,
    Andrzej

    Hi Andrzej,
    please check out this thread: Set parameters values depending on other parameters
    I had a discussion about query results as input for another query in there.
    For creating a workbook, just click on the save button after you ran your query in the bex.
    Siggi
    Message was edited by: Siegfried Szameitat

  • I need to print one query result as a single row

    Hi,
    I need to print one query result as a single row ,which gives more than one value (of subinventories)and also i would like to print the quantity of that particular subinventory at particular place.Please suggest how can i do this in the report builder?

    Actually I need to print inventory report with subinventory break up.For that all subinventories of category code AB are taken as single row.Based on that subinventory value Quantity must be printed at that particular place.
    For ex
    Quantity
    Item no Description Subinventory Code AB_Abc AB_Def AB_ghi
    1 ***** 12 9
    2 ****** 8 5
    like that.I am waiting for the reply.Plz its some how urgent.
    Thank you,

  • Displaying SQL Query results in rows instead of Columns

    Hi,
    I'm fairly new to Oracle so forgive me if this is a really stupid question.
    I used Mysql for a while and if I wanted to display query results in rows instead of columns I could end the SQL command with '\G' instead of a semicolon.
    This would give me output like...
    Column_1: AAAA
    Column_2: BBBB
    Column_3: CCCC
    Instead of the normal
    Column_1 Column_2 Column_3
    AAAAAA BBBBBBB CCCCCCC
    Is there an equivalent in SQLPlus to the MySQL \G termination?
    Thanks.
    John

    > so forgive me if this is a really stupid question.
    It is certainly not a stupid question, but pivoting is a very frequently asked and answered question:
    [url http://forums.oracle.com/forums/search.jspa?threadID=&q=pivot&objID=f75&dateRange=all&userID=&numResults=15]http://forums.oracle.com/forums/search.jspa?threadID=&q=pivot&objID=f75&dateRange=all&userID=&numResults=15
    In 11g you have special PIVOT and UNPIVOT functions.
    Regards,
    Rob.

  • Report error using landscape style, lines per page errors.

    Hi
    A Custom report(use character units in designer,11 X 8.5, stadard settings...) developed(reports 2.5 on apps 11), which was working fine previously using standard landscape. The report produces exactly 56 lines physically per page.
    Now, in applications ,landscape print style is properties changed, number of rows changed from 66 to 57.
    Now report gives error:
    'M_XXXX_GRPFR' is not fully enclosed by its enclosing object 'Body'. M_XXXX_GRPFR is the outer most frame in my report layout.
    (I tried increasing page size, etc, no use, same error)
    Now, I don't understand why it is giving error, as, it prints only 56 physical lines per page when I see the output file generated.
    Is that landscape is defined as 57 rows, but it is not exactly 57 physical lines? Because when I took out some stuff from report layout, which now produces only 45 physical lines, it is working fine.
    But, I have all 57 phyiscal lines in the report that I want it to work, any suggestions?
    Thanks
    Rathan.
    null

    Hi,
    Try this, i might work for you.
    <?for-each:Q1?>
    Here, place KIT ITEM Data table
    Below that:
    <xsl:variable name="no_of_lines_per_page" select="number(30)"/>
    <xsl:variable xdofo:ctx="incontext" name="invLines" select=".//Q2"/>
    <?for-each:$invLines?><?if:(position()-1) mod $lpp=0?> <xsl:variable name="start" xdofo:ctx="incontext" select="position()"/>
    [here KIT COMPONENTS tabel will start]
    [In table first cell again start for-each group like below]
    <?for-each:$invLines?><?if:position()>=$start and position()<$start+$lpp?> ---this is in table first cell
    [in rest of cells, put your columns xml tags]
    <?end if?><?end for-each?> - in last cell.
    this is end of Q2 table.
    After that put a page break
    <xsl:if xdofo:ctx="inblock" test="$start+$lpp<=count($invLines)"><xsl:attribute name="break-before">page</xsl:attribute></xsl:if> -- page break outside the Q2 table.
    Now close the invlines for-each group
    <?end if?><?end for-each?>
    Close the Q1 for-each group.
    <?end for-each?>

  • Put the query result of "EXECUTE IMMEDIATE" command in a local table

    Hi all.
    Is it possible to put the output of the "EXECUTE IMMEDIATE" command in a local table so that the ouput can be accessed through other procedures.
    Regards,
    Andila

    Hi Andila, well you could just make your dynamic sql statement an insert statement based on your select. See example below
    create column table test_table_1
    "COL1" nvarchar(10),
    "COL2" nvarchar(10)
    CREATE PROCEDURE INSERT_P() 
    LANGUAGE SQLSCRIPT AS 
      sql_string NVARCHAR(2000) := '';
    BEGIN 
      sql_string := 'insert into test_table_1 (select ''val1'', ''val2'' from dummy) ';
      EXECUTE IMMEDIATE (:sql_string); 
    END; 
    call insert_p();
    select * from test_table_1;
    However you may want to investigate other options instead of using dynamic SQL as this is not a recommended approach. Less optimized compared to standard sql.
    Peter

  • I have turned on my phone this morning and it's asking for a pass code when I have never put one in and I can't get past the page help!

    I have turned on my I phone this morning and it is asking for a pass code I have never used one and cannot get past the page can anyone help?

    You won't get a reply on your email here. These forums are for users who want to help other users.
    If you didn't buy your iPhone in your own country and you unlocked it to work in any way, you're out of luck.  If you accidentally setup a passcode check out this old discussion:
    https://discussions.apple.com/thread/3671431?start=0&tstart=0

  • How to use a jdbc query result to redirect to a variable html page

    uh, my problem is that i'm making a servlet which should redirect to a variable html page based on jdbc query (I'm really sorry if this is not the correct forum to post it, but since it's jdbc i thought it was).
    Anyway, the problem is that when a string say, "mystring" is equal to the value in a column, say "column1" of the database then page should redirect to "mystring.html".
    Is this possible, if so then how?
    and if not then is there any other way to solve my problem?
    please, help!!
    thanks in advance.

    uh, since i've already asked man, please gimme an answer if you know, it'll be appreciated.
    OK, HERE'RE THE DETAILS:(as you requested them)
    i have an html page where there's a textfield say "t1", the value of that text field is sent to the servlet which compares the value of the field with the value in Database, say "db1" in column say "column1".
    if there's a value in the column matching the value inputted in the textfield, then i need the servlet to redirect to an html page of the same name as inputted in the textfield. Hope that helps you understand.....
    thanks in advance.......

  • Twin results coming out of one query

    I have a dynamic table set up, and I want days to expiration
    in last column. I have it set up now as follows...
    <td>
    <cfset DaysToExpire = (#rsFeaturedList.FeatureExpire# -
    NOW())>
    <cfoutput>#NumberFormat(DaysToExpire,(99.9))#
    </cfoutput>
    </td>
    The numbers it spits out are correct however, on the first
    data line, it spits out twin numbers (i.e. it looks like '7.1 7.1')
    then all subsequent rows are showing correct (i.e. 12). Any ideas
    why this is happening to just the first row? I checked to see if my
    database has two sets of dates in it, and that's not the case. I'm
    confused. Also note that I can only use ( ) around the mask because
    square brackets [ ] are generating an error. Thanks!
    Chris

    looks like your code has an error. like a nested cfoutput
    block or
    something like that.
    post the full code (complete code for showing all query
    results, not
    just the last column in one row).
    also, the numberformat() mask should be in ", like "99.9",
    not in ( ) or
    [ ]. the [ ] in the examples denote that the parameter is
    optional, not
    that it should be in square brackets...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • How can i write two ?DDL in one query

    how can i write two ?DDL statment in one query?

    Issuing two DDL statements requires two edxecutions. Getting around it is possible by creating a procedure that issues the two DDL statements. But they would still have to be issues one at a time, but you would only have to write one statement to invoke it.

  • Popup to query results

    Hi guys, I ve got a small question:
    In one of my pages, i ve got a query. Is it possible to create a pop up window to that query, so that when the user clicks on the detail in my query results(e.g in the column 'Name' the user clicks on some name ('Tsveti' for example) of the query results ), the pop up window to show up, with all the info for the current detail(data row).
    I know how to call a pop up window to a button, but how can i call it from a row in my query?
    Thanks in advance
    Tsveti:)

    Hi Tsveti,
    You need to wrap the Name field in something that has an onClick event. What you use is up to you, but an example would be to use an HTML Expression for the field and enter something like:
    &lt;div onclick="myfunction('#ID_FIELD#')&gt;#NAME_FIELD#&lt;/div&gt;
    #ID_FIELD# would be the field that contains the unique ID for the record and #NAME_FIELD# would be whatever you want to display in the column.
    myfunction() would be the name of the javascript function that you use to call the popup. This javascript code would receive the ID value passed to it and pass this to the page being loaded by the popup. You would just need to insert this into the appropriate place in the url string.
    Regards
    Andy

  • Display dynamic query result in collection

    How to we put the query results in collection for a dynamic query?

    Do you want to display or to store or do both.
    Anyway try a check at this:
    http://forum.java.sun.com/thread.jspa?threadID=584195&messageID=2991930#2991930
    I think if u do the reverse process you will be able to retrieve the values from the list and display them.
    Try giving a thought.

  • Query results to a file

    I have a requirement to put the query result in a file(.csv),
    Pls let me know is there a possibility to achieve this using dbms_output package
    Thanks

    859486 wrote:
    I have a requirement to put the query result in a file(.csv),
    Pls let me know is there a possibility to achieve this using dbms_output packageNo. The DBMS_OUTPUT package is almost ALWAYS the wrong package to use. It is the most misunderstood and most frequently abused piece of PL/SQL software. So no - it is not suited in anyway to spool CSV output. In fact, trying it with a large SQLdataset can crash the Oracle server - as memory will be exhausted and the swap daemons will trash CPU utilisation.
    To read or write a physical o/s file - the typical package used is UTL_FILE. It is fairly easy using UTL_FILE to create a CSV file.
    However, there could be far better alternatives. The CSV file may be needed by a web client - in which case the file can be created as a CLOB and provided as a Mime text/csv data stream to a web browser (which usually will automatically open in Excel).
    The CSV file may need to be delivered via e-mail. In which case, the CSV file contents can be delivered via UTL_SMTP to a mail server as an e-mail attachment.
    The CSV file may be needed to be delivered to a remote server. In which case the CSV file can be created as a CLOB and this CLOB can be ftp'ed via PL/SQL to the remote server as a text file.
    So there are many options in creating and delivering a CSV file. Using DBMS_OUTPUT though is not a sensible option - ever.

  • Returning query results in XML format

    Besides using custom tag library, does anyone know any methods or techniques that i can retrive the query results from database in XML format. for example, i have a table named student in database like this:
    StudentNo  Name   Gender  Degree
    123       Tony    male    B.Comp.Sci.
    456       Tom     male    B.Fiance
    343       Mary    female  B.Accountingso, if i have query select * from table student, i would get someting like the following:
    <row>
    <studentNo>123</studentNo>
    <name>Tony</name>
    <Gender>male</Gender>
    <Degree>B.Comp.Sci</Degree>
    </row>
    <row>
    <studentNo>456</studentNo>
    <name>Tom</name>
    <Gender>male</Gender>
    <Degree>B.Finace</Degree>
    </row>
    The reason i am asking for this is i need query results returned in XML format, so i can wrap XSLT tag around, and apply for HTML, WML, and XHTML template resprectively so i can display them on different terminals. any help is appreciated.

    I have this method in a ResultSetMapper class:
         * Return result sets as an XML stream, with root tag named
         * "results", one "result" tag per row, and "result" child tag
         * names equal to the column name
         * @param query result set
         * @param list of column names to include in the result map
         * @throws SQLException if the query fails
         * @throws JDOMException if the XML stream creation fails
        public static final Document toJDOM(ResultSet rs, List wantedColumnNames)
            throws SQLException, JDOMException
            Element rows         = new Element("results");
            int numWantedColumns = wantedColumnNames.size();
            while (rs.next())
                Element row = new Element("result");
                for (int i = 0; i < numWantedColumns; ++i)
                    String columnName   = (String)wantedColumnNames.get(i);
                    Object value = rs.getObject(columnName);
                    row.addContent(new Element(columnName).setText(value.toString()));
                rows.addContent(row);
            return new Document(rows);
        }It uses JDOM from www.jdom.org. - MOD

  • Two different results using one query

    Hi Friends
    Oracle version that I am using is : Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    I have a scenario where one account can be related to two customers. Hence, in table have many rows for one account. Here’s the sample data:
    Account_ID | product_code | cust_id | relationship_code | entity_code
    1111 | ABC | 1234 | SOL | CUST
    1111 | ABC | 2222 | ZZZ | LINK
    1111 | ABC | 4455 | ABC | LINK
    2222 | ABC | 7890 | SOL | CUST
    2222 | ABC | 5678 | ZZZ | LINK
    3333 | JFK | 5878 | TST | CUST
    3333 | JFK | 3254 | PRI | CUST
    3333 | JFK | 3299 | PRI | CUST
    4444 | JFK | 2535 | SOL | CUST
    4444 | JFK | 4565 | SOL | CUST
    5555 | DEF | 6666 | PRI | CUST
    5555 | DEF | 6667 | TST | CUST
    5555 | DEF | 9667 | TST | CUSTIn this scenario, I need two outputs differently:
    Output 1: When an account has relationship_code = ‘SOL’ then take the least cust_id
    1111 | ABC | 1234 | SOL | CUST
    2222 | ABC | 5678 | ZZZ | LINK
    4444 | JFK | 2535 | SOL | CUST Output 2: else take the highest cust_id
    3333 | JFK | 5878 | TST | CUST
    5555 | DEF | 9667 | TST | CUSTHow can I get this result using one query?

    Not sure what you mean. Works OK:
    SQL> with t as (
      2             select 1111 account_ID,'ABC' product_code,1234 cust_id,'SOL' relationship_code,'CUST' entity_code from dual union all
      3             select 1111,'ABC',2222,'ZZZ','LINK' from dual union all
      4             select 1111,'ABC',4455,'ABC','LINK' from dual union all
      5             select 2222,'ABC',7890,'SOL','CUST' from dual union all
      6             select 2222,'ABC',5678,'ZZZ','LINK' from dual union all
      7             select 3333,'JFK',5878,'TST','CUST' from dual union all
      8             select 3333,'JFK',3254,'PRI','CUST' from dual union all
      9             select 3333,'JFK',3299,'PRI','CUST' from dual union all
    10             select 4444,'JFK',2535,'SOL','CUST' from dual union all
    11             select 4444,'JFK',4565,'SOL','CUST' from dual union all
    12             select 5555,'DEF',6666,'PRI','CUST' from dual union all
    13             select 5555,'DEF',6667,'TST','CUST' from dual union all
    14             select 5555,'DEF',9667,'TST','CUST' from dual union all
    15             select 6666,'XYZ',8877,'SOL','CUST' from dual
    16            )
    17  select  account_ID,
    18          product_code,
    19          cust_id,
    20          relationship_code,
    21          entity_code
    22    from  (
    23           select  account_ID,
    24                   product_code,
    25                   cust_id,
    26                   relationship_code,
    27                   entity_code,
    28                   case max(case relationship_code when 'SOL' then 1 else 0 end) over(partition by account_ID)
    29                     when 1 then dense_rank() over(partition by account_ID order by cust_id)
    30                     else dense_rank() over(partition by account_ID order by cust_id desc)
    31                   end rnk
    32             from  t
    33          )
    34    where rnk = 1
    35  /
    ACCOUNT_ID PRO    CUST_ID REL ENTI
          1111 ABC       1234 SOL CUST
          2222 ABC       5678 ZZZ LINK
          3333 JFK       5878 TST CUST
          4444 JFK       2535 SOL CUST
          5555 DEF       9667 TST CUST
          6666 XYZ       8877 SOL CUST
    6 rows selected.
    SQL> SY.

Maybe you are looking for

  • Ipod touch 5thgen stuck on Apple logo after updating to IOS 6.1

    I updated my ipod touch to the latest version 6.1 and after updating it restarted and was frozen at the apple logo screen since Monday. I tried calling Apple Support and they went through the steps of getting into recovery mode as well as trying to r

  • Image size and output restrictions

    Do I understand it correctly, that it isn't possible to even open larger files than 1600x1600 in this app and the only local output possibility is a low quality jpeg? it's not mentioned in the description or tech data (why? ) just in some of the revi

  • Home Sharing on Apple TV

    Everytime I try to access my computer on AppleTV it asks me to turn on Home share on my computer.  HOme share is on my computer and I have to reset it time and time again.  NOw its telling me it can't read my homeshare and to make sure my itunes is u

  • Nokia 5800

    Hi! Im having problem with my Nokia 5800. I want it to ask me everytime its trying to connect to the internet. I want it to ask me if I want to connect with wlan or with 3G. I have searched the menus but without success

  • Problem with Matte Edge Contols in Chroma Keyer

    I'm in the process of pulling a chroma key using FCP. The actual keying has gone fine, but I want to adjust the matte edges using the Matte edge controls found within the chroma keyer. The problem is that when I adjust any of the 3 controls the unmas