How to line break in an SQL Report

I have a simple SQL report with many columns that make the window very wide and the use has to scroll horizontally quite a lot.
How can I make the line break after some column?
Can someone give me a live example for that?

Custom report template then is your answer.. Without seeing your initial report it would be hard to give you the code fully. However, if you open the standard report template for your theme, you could save it as a new template and edit it accordingly. You would find the column you wish to break on and create a new <tr> .. </tr> under the <td> definition..
Thank you,
Tony Miller
Webster, TX

Similar Messages

  • Unwanted Line Breaks in PL/SQL CODE after 'CREATE OR REPLACE' statements

    Does anybody know how to keep SQL Developer from automatically editing PL/SQL code and adding line breaks after 'CREATE OR REPLACE' statements?
    It keeps taking:
    CREATE OR REPLACE PACKAGE DEVELOPER AUTHID DEFINER
    And turns it into:
    create or replace
    package developer AUTHID DEFINER
    This unwanted linebreak causes our autodeployment processes to break.
    Thanks,
    Michael Dunn
    University of Notre Dame
    Edited by: user9133268 on Feb 21, 2012 8:00 AM

    Hi Michael,
    I believe nothing for this issue has progressed since it was asked here:
    2.1 RC Extra Line Breaks
    As there may be approval for some planned improvements to the SQL Formatter feature in 3.2, I logged an enhancement request for you:
    Bug 13744858 - FORUM: UNWANTED LINE BREAK AFTER CREATE OR REPLACE SYNTAX
    Regards,
    Gary
    SQL Developer Team
    Edited by: Gary Graham on Feb 21, 2012 4:19 PM
    But if you have control over your auto-deployment process code, it might be quicker to enhance that to deal with CREATE OR REPLACE on the same or the preceding line. Also, note that if you edit the package DDL to put the CREATE OR REPLACE on the same line with the package name in the code editor, then immediately use Export or Save Package Spec and Body to save it to disk, then PACKAGE <name> will appear on the same line as the CREATE OR REPLACE syntax.

  • Line break in pl/sql block

    Here's my code, which indeed, may be cumbersome, but works:
    declare
    v_id NUMBER;
    v_iso VARCHAR2(30);
    v_title VARCHAR2(60);
    v_approval_req VARCHAR2(10);
    v_approved VARCHAR2(10);
    v_job_desc VARCHAR2(60);
    v_user VARCHAR2(30);
    v_get_user VARCHAR2(60) := :P101_USERNAME;
    v_get_user2 VARCHAR2(60) := :P101_USERNAME;
    v_num_docs NUMBER;
    v_num_rejected NUMBER;
    v_count NUMBER := 0;
    BEGIN
    CASE v_get_user
    WHEN :P101_USERNAME THEN
    SELECT COUNT(*) into v_num_docs
    FROM doc_info, sh_job_description, sh_employees
    WHERE doc_info.owner = sh_job_description.job_desc
    and sh_job_description.job_desc_id = sh_employees.job_desc_id
    and UPPER(doc_info.approval_req) = 'YES'
    and (doc_info.approved is null
    or UPPER(doc_info.approved) = 'NO')
    and sh_employees.user_name = :P101_USERNAME
    and sh_employees.user_name <> 'SH_LOCAL';
    if v_num_docs  > 0  then
    htp.bold('You have '||v_num_docs||' document(s) to approve.  Please click on the Approve Documents button below to do so.');
    end if;
    END CASE;
    CASE v_get_USER2
    WHEN :P101_USERNAME THEN
    SELECT COUNT(*) into v_num_rejected
    FROM doc_info, sh_job_description, sh_employees
    WHERE doc_info.owner = sh_job_description.job_desc
    and sh_job_description.job_desc_id = sh_employees.job_desc_id
    and UPPER(doc_info.approval_req) = 'YES'
    and UPPER(doc_info.approved) = 'REJECTED'
    and sh_employees.user_name = :P101_USERNAME
    and sh_employees.user_name <> 'SH_LOCAL';
    if v_num_rejected  > 0  then 
    htp.bold('You have '||v_num_rejected ||' rejected document(s) that have had updates made per your request.  Please click on the Approve Documents button below to review the changes, then approve if all changes are accepted.');
    end if;
    END CASE;
    exception when others then null;
    END;Here's the output:
    You have 4 document(s) to approve. Please click on the Approve Documents button below to do so. *\n*You have 1 rejected document(s) that have had updates made per your request. Please click on the Approve Documents button below to review the changes, then approve if all changes are accepted. I have entered a bold /n where I need a line break. Silly, but I've tried many combos of \n and the break with a br and this < and this > (I can't get the real thing to post), concatenating and not, but haven't come up with it.
    Off to lunch now, back in an hour.
    TIA!!!!!

    userRRRYB wrote:
    Here's my codeFrom where? APEX version? Region? Process? Example on apex.oracle.com?
    Fixed. I split it up into two different items, created a region for each, and placed the regions in position 1.Sounds like a lot of extra work.
    I have entered a bold /n where I need a line break. Silly, but I've tried many combos of \n and the break with a br and this < and this > (I can't get the real thing to post), concatenating and not, but haven't come up with it.
    How about instead of the \n, trying a chr(10) and possibly adding a chr(13)?
    I've tried your exampleand htp.p(chr(13)); and suggestions?The HTML specification instructs user agents to collapse white space characters, so however many spaces, tabs, new lines, or carriage returns you add, using whatever notation, only a single space will actually be displayed.
    >
    htp.bold('<p>You have '||v_num_docs||' document(s) to approve.  Please click on the Approve Documents button below to do so.</p>');
    htp.bold('<p>You have '||v_num_rejected ||' rejected document(s) that have had updates made per your request.  Please click on the Approve Documents button below to review the changes, then approve if all changes are accepted.</p>');It's also specified that inline elements can't contain block-level elements. <tt>b</tt> (as generated by <tt>htp.bold</tt>) is an inline element, while <tt>p</tt></a> is block-level.
    In 2011 don't use any <tt>htf/htp</tt> element methods: the HTML generated by these packages is based on an archaic, unadopted HTML version and produces mark-up that is not valid for the XHTML DOCTYPEs used in APEX 4.0 themes. APEX itself stopped using them years ago.
    Not knowing where in the page this information is intended to display, it's always safer to assume there is no open block-level container and provide one (such as <tt>div</tt> or <tt>p</tt>) in the emitted mark-up. Does
    htp.p('<p>You have '||v_num_docs||' document(s) to approve.  Please click on the Approve Documents button below to do so.</p>');
    htp.p('<p>You have '||v_num_rejected ||' rejected document(s) that have had updates made per your request.  Please click on the Approve Documents button below to review the changes, then approve if all changes are accepted.</p>');produce the required layout?
    exception when others then null;Disaster waiting to happen.
    http://tkyte.blogspot.com/2006/08/ouch-that-hurts.html
    http://tkyte.blogspot.com/2007/03/dreaded-others-then-null-strikes-again.html
    http://tkyte.blogspot.com/2008/01/why-do-people-do-this.html
    http://tkyte.blogspot.com/2008/06/when-others-then-null-redux.html

  • How eliminate line break after JPN opening parenthesis

    Is there a way to force my JPN parenthesis marks to stay with the parenthesis text?
    If the opening parenthesis mark occurs at end of a line it does not stay with the contents of the parenthesis, for example:
    ...................end of line『
    parenthesis』
    I have verified that the JPN opening paranthesis mark is not in the "Allow line breaks after" list.
    Thank you for any help!
    Karen

    Well, Karen,
    I am under the impression that it is not necessary to do that. My path 
    of evaluation would be:
    Switch the system locale of a computer to Japanese (if you don't 
    have access to a real Japanese setup)
    Start FrameMaker and create a blank new file, save as MIF
    Open the MIF to find hopefully the default Japanese Kumihan tables
    Back on my standard setup I would
    check if the Kumihan tables need any modification
    Import the MIF segment into one of my existing Japanese documents to 
    see if they are applied
    Unfortunately I have no time at the moment to test this in person.
    - Michael
    Am 26.10.2009 um 18:31 schrieb Karen Story:
    Thank you Michael, this is so helpful! Unfortunately, it looks like 
    the fix for my problem requires opening the FrameMaker files in an 
    Asian locale, which is going to be extremely difficult and painful 
    for our process. It would be wonderful if Frame could implement this 
    functionality for an ENU locale.
    Thanks again!
    Karen

  • How to suppress column names in SQL-report

    What I want is just the data, without any column names.
    COLUMN LDATE OFF;
    SELECT     SYSDATE LDATE
    FROM DUAL;
    LDATE
    07.11.11
    This example doesn't work. There is still LDATE above column. Any idea?

    user5116754 wrote:
    Great, it's so simple. Im sure there is a way to omit this result statement: "531 rows selected" at the end of report!There is, and it's also in the documentation...
    SQL> set feedback off
    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
    SQL>

  • How to find if the SQL Reporting services are stand alone or clustered ?

    Hi All,
    Can any one tell me how do i find if the SQL Reporting services are stand alone or clustered ?
    As there are no other SQL features installed on the server except for reporting.
    Is there any GUI or CLI command to check this ?
    Gautam.75801

    Hello,
    Do not open cluster administrator since SSRS cannot take advantage of Windows Clustering Services.
    You need see if the Network Load Balancing manager (NLB) (windows feature) is installed on the SSRS computer and open
    it to see if a NLB cluster has been configured.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Pl-sql report with parameter

    Hi
    I have created report with region source as pl-sql. In pl-sql block, calling package where i am passing query. In query's where clause i want to pass paramter value which user had selected.
    There are two regions on page. On upper part, there is select list, on lower part there is report with pl-sql region but value of select list is not found in query. I am trying to access with bind variable, select list of item :SL_TEXT. But it is not showing any value in it.
    How to use select list value in query of report? Or let me know how to use parameter in pl-sql report which is selected in other region?
    Thanks in advance

    I am attempting to define the variable as a date variable through Oracle BI and yes it does use a colon to signal variable substitution.
    So thank you the first way you stated should work.
    The only problem I'm running into now I believe steems from the date format that column that I am trying to filter on. It is in what appears to be the worst format possible.
    Is it common for dates to be stored in a DD-MON-YY format? (e.g. 01-JAN-08) I thought we as a community had moved past that post Y2K scare. lol.
    When I set up the bind variable in BI it allows me to define the date format, much similar to the TO_DATE function but then it says (must be java date format). So I'm thinking that maybe DD-MON-YY is not a java date format.
    In that case is there a way to cast or convert my date format in the sql so that it is a supported java date format?
    Or should I just give up and pass it as a varchar2?

  • Single line break

    I want to give line break with <br> tag.
    but since i cannot use single tags i use empty element such as
    ..which is not rendered correctly with Netscape..
    can any one help me by giving me clue as to how to insert break via xsl and which can be correctly rendered by both browsers..
    raju

    I want to insert space in between br and forward slash..
    above infact i left a space..it is not working!!
    Can i some how have line break tag with space in between br and forward slash!
    Thanks for the other tip!!
    Raju
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    is the correct way in your stylesheet.
    Make sure you're using the:
    [b]void processXSL(xsl,xml,PrintWriter)
    api, and not the combination of:
    DocumentFragment processXSL(xsl,xml)
    frag.print(PrintWriter)
    Only the former allows the XSLT processor to do its serialization magic for the HTML output mode.<HR></BLOCKQUOTE>
    null

  • Break line in SQL report

    Hi,
    I am using APEX 4.0 ver .I have created SQL report with 1 column and its looks good but problem is, This columns has huge amount of data for example 1000 words and in the report it is displaying like *****************************************************************
    so, i dont want to display continous words and i want to display the data like ********************
    How could i break the contonous line and display the same in multiple lines.
    thanks in advance.
    Regards
    Narender B

    Hi Aditya,
    Am using following query in sql report
    SELECT message ||' Updated BY ' || user_name || ' On ' || to_char (last_update_date,'MM/DD/YY') message
    FROM TEST .
    This message column has huge data with spaces like *abcd xxxxx yyxs xxxxxx ttttttt abchd ddfjkllglrhr[kng;lrthrthkmrp gkjoph fegjhgignrtmblk*  and this huge data not able to fit in the screen so, we need to create multiple lines to fit in the screen.
    How can i create multiple lines in report.
    Thanks
    Narender B                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to show the break totals and NOT the report totals in an SQL report

    APEX 4.0.1
    In an normal SQL report (Not interactive) with a break applied on the first column, how do you just show the break totals and NOT the extra full report totals?
    Next, Is it possible to display only some of the row totals and not for all columns that have the sum option checked against them?
    PaulP

    PaulP wrote:
    APEX 4.0.1
    In an normal SQL report (Not interactive) with a break applied on the first column, how do you just show the break totals and NOT the extra full report totals?Instead of using the APEX break feature, try doing all of this in the query using <tt>GROUPING SETS</tt> or <tt>ROLLUP</tt> to get the break rows, and <tt>GROUPING_ID</tt> in the <tt>HAVING</tt> clause to suppress the unwanted rows.
    Next, Is it possible to display only some of the row totals and not for all columns that have the sum option checked against them?Don't really understand what's meant here?

  • How to avoid line break ( br ) while exporting Interactive report in Excel

    Hi,
    I have a Interative report and I am using Apex download format as CSV.
    I have defined some of the column heading in multiple line using break < br >
    when I export this into the excel sheet..the column heading contains break also..
    - Any idea how to avoid line break while exporting in excel.
    - also how to put the columns heading in BOLD when exported in excel.
    Thanks,
    Deepak

    Hi Jari,
    I tried this but still getting the
    <br>Interactive Report
    Column Attributes Heading - Employee<br>Detail AddressWhen I download the Report in CSV Format
    I am getting the heading with <br>.
    I am looking for heading as - Employee Detail Address // with no <br> tagThanks,
    Deepak

  • How to show Report Result line breaked(or seprate) into Total AVG MAX MIN?

    Hi all,
    in my report i have report result line which give Total value of all charetristic lines,
    I required to show this Report result line breaked into 4 section one for Total, one for avg, one for max, one for min of that cheretristic lines value, OR if we can show 4 diffrent(Total, Avg,.... ) result lines in report.
    we can show one result line for Total or AVG or MAX OR MIN Eitherwise by setting keyfiguer result line property from calculate > calculate result as - Total or Max or Min or Avg, My requirement to show all together for singal Keyfiguer.
    Is there any work around for this OR enhancment of result line by user exit or by setting some where possibel?
    Regards,
    Dushyant.

    in last post output is scattered,
    I am getting output like this:
    characteristic(row).......................... KeyFig(column)
    Equipment 1...................................... 2 (outstanding notification value)
    Equipment 2...................................... 3
    Equipment 3 ......................................4
    Result Value ......................................9 (By default Total value of above 3 notification)
    My require output is:
    characteristic(row).......................... KeyFig(column)
    Equipment 1...................................... 2 (outstanding notification value)
    Equipment 2...................................... 3
    Equipment 3 ......................................4
    Result Value ......................................9 (By default Total value of above 3 notification)
    req additional row...........................3 (Average of above 3 equipment value).
    req additional row...........................4 (Max from above 3 equipment value).
    I require all single value row of equipment and its(equipment) result required as Total, Avg, Max simultaneously in row only, is there any work around.
    Regards,
    Dushyant.

  • How to get a line break

    Hi All,
    How do I get a line break within a particular field?
    My DB structure is that I have 4 columns address_line_1, address_line_2 and so on. I cannot select them as different fields because all of them can be null, in which case i pick it from internal_address_line column.
    I use:
    SELECT DECODE(address_line_1, NULL, internal_address_line, address_line_1 || ', ' || Address_Line_2) as ADDRESS
    But instead of th comma separating the 2 address lines I want a line break so that 2 address lines come in 2 separate lines in the output.
    It doesn't allow me to use chr(10) as a line break and gives an error
    I'm using Reports 2.5
    TIA
    Naveen

    Yes, true.
    How about setting up the sections as:
    Section 1 Introduction ('Section num space introduction' in this example - tab may be better)
    Then generate the Contents.
    Then do a GREP find/change on the document after the contents:
    This will add a forced line break and tab after each section number... You might want to specify a para style in the Find Format box too, so that references to Section xx in body text are not altered.
    If you update Contents after this, you will get the line break and tab in the Contents too.

  • How to Breake Column in Classic report.

    Dear Friends
    i want to display Employee information so I have created classicreport using below sql query
    select
    EMP_ID,
    FIRST_NAME,
    MIDDLE_NAME,
    LAST_NAME,
    GENDER,
    BLOOD_GROUP,
    MARITAL_STATUS,
    ADDRESS_1,
    ADDRESS_2,
    CITY_NAME,
    PINCODE,
    PHONE_NO,
    MOBILE_NO,
    FAX_NO,
    OFFICE_NO,
    EXT_CODE,
    EMAIL_ID,
    ANNIVERSARY,
    BIRTHDAY,
    QUALIFICATION,
    DESIGNATION,
    MGR_CODE,
    DATE_OF_JOINING,
    EMP_IMAGE,
    PASSPORT_NO,
    SKYPE_ID,
    ACTIVE_FLAG
    from DEMO_EMP  where EMP_ID =:APP_USER
    Problem is all coloumn display in report but i need to display 4 column and  then 4 column in right side and  then 4 column in right side.
    I need breake after 4 column .How can i do this.
    Thanks

    modify your query and include ROW_NUMBER, move everything to an inline view and include a CASE statement to hide some of the values... wow, very cryptic.. there is an example here:
    SQL*Plus or Report style Break Groups in SQL Query&lt;/title&gt; //&lt;title&gt;AMIS Technology Blog &amp;raquo; SQL*…

  • How to remove spaces in the output of an PL/SQL report

    Hi,
    The requirement is to develop a SQL report.
    The sample code is like this
    Select 'Order Number Header Id' from dual; ( This is the heading in the output of the report.)
    Select order_number , header_id from oe_order_headers_all;
    The output is displaying as follows
    =======================
    'Order Number Header Id'
    1234 101
    2222 102
    3333 103
    =======================
    Now I am opening the report in excel, and there is a space appearing after the headings.
    So, how can I remove the additional blank line between the headings and the data.
    Thanks in advance
    Mani

    Mani B wrote:
    Hi,
    The requirement is to develop a SQL report.From which tool ur getting this report...? From oracle forms report..?
    >
    The sample code is like this
    Select 'Order Number Header Id' from dual; ( This is the heading in the output of the report.)
    Select order_number , header_id from oe_order_headers_all;
    The output is displaying as follows
    =======================
    'Order Number Header Id'
    1234 101
    2222 102
    3333 103
    =======================
    Now I am opening the report in excel, and there is a space appearing after the headings. if u use any third party tool like pl/sql developer or sql developer then u can export the data into xcel file.
    Sen

Maybe you are looking for

  • How to create a Batch file for java application  ?

    HI, How to create a Batch file for java application ? And whats the use of creating batch file ? Thanks in advance

  • Web Gallery not showing up in iPhoto

    I've set up multiple albums through the web gallery feature and successfully synced them to my .mac account. The problem: one particular gallery shows up on the .mac account but not in iPhoto anymore so there is no way to manage it/add to it/delet it

  • Setting up local DNS

    Dear all, with the help of this forum I was abel to set up the Domain, external-IP, DNS-A and PTR-Records at the domainname-server of my IPS. Now I tried to setup the mac mini server as a DNS server. Here you can see my settings: http://dl.dropbox.co

  • Can't use my new iPhone 5 cause of incorrect software!

    Hi, I have a Macbook 4,1 using OSX verion 10.5.8. I have just purchased an iPhone 5 and I have tried to restore this to my iPhone 4s' last backup but it says that I need iTunes 10.6.8 or later. I have tried to download this but it then says that I ne

  • How to update multiple rows in ADF Tble

    Hi, I have created a search form and ADF table. This ADF table is having column of Select Boolean check box along with actual table columns. When I click on Search button it should show the result in ADF table. I will be able to select the check box