SQL*Plus report: hide accept value in report

HI all,
I have created an SQL Report of an APEX-Application. The output is stored in a HTML file.
All works fine but one think I want to hide in the HTML report.
I try to describe what the problem is.
I prompt the user to put in the application_id of the apex application:
                       accept v_application_Id char prompt 'Appliaction-ID:'
In the HTML file the following output is shown:
Report created on:
25-Jun-2013, 10:06:04
alt 8: where application_id = &&v_application_id
neu 8: where application_id = 680
Workspace
WORKSPACE
APPLICATION_ID
APPLICATION_NAME
ALIAS
OWNER
Q0Q0AUFTRAGSVERWALTUNG
680
Q0Q0AUFTRAGSVERWALTUNG
F680317
Q0Q0AUFTRAGSVERWALTUNG_ADMIN
How can I hide the two lines
alt 8: where application_id = &&v_application_id
neu 8: where application_id = 680
from the report?
I have searched  this forum and toke a look into the documentation but I have nothing found.
Could anyone please help me?
Oracle 11g R2
This is the SQL script what I run in SQL*Plus.
-- start script
accept v_application_Id char prompt 'Appliaction-ID:'
spool C:\a\APEX.html
set termout off
SET MARKUP HTML ON SPOOL ON HEAD "<TITLE>SQL*Plus APEX-Report</title> -
<STYLE TYPE=’TEXT/CSS’><!--BODY {bgcolor: ffffaa background: ffffc6} --></STYLE>"
clear break
clear buffer
clear compute
clear column
clear sql
set feedback off
set serveroutput on
-- Report Header
ttitle left ' ' skip 1
select TO_CHAR(sysdate,'dd-Mon-yyyy, hh24:mm:ss')  "Report created on:"
from dual;
-- Workspace
ttitle left col 15 '<font face="Arial" size="+2" color="#0000FF">Workspace</font>' skip 1
set linesize 300
set pagesize 500
set serveroutput on
column workspace format a35
column application_id format 99999999
column application_name format a35
column alias format a35
column owner format a35
     select
         WORKSPACE,
         APPLICATION_ID ,
         APPLICATION_NAME,
         ALIAS,
         OWNER
     from apex_applications
     where application_id = &&v_application_id;
ttitle off
     select
         APPLICATION_GROUP,
         APPLICATION_GROUP_ID,
         HOME_LINK,
         PAGE_TEMPLATE,
         ERROR_PAGE_TEMPLATE
     from apex_applications
     where application_id = &&v_application_id;
set termout on
set markup html off head '' body '' entmap off spool off pre off
set feedback on
set linesize 80
set pagesize 50
ttitle off
set termout on
set serveroutput off
spool off
set echo on
-- End Script
best regards
ben
Oracle 11g R2

Hi, Ben,
The SQL*Plus command to stop those messages is
SET VERIFY OFF
Put this command anywhere before the first use of a substitution variable, e.g. before the SPOOL command.
Those "OLD" and "NEW" messages will stay suppressed until you either end the SQL*Plus session, or issue a SET VERIFY ON command.
If you use SQL*Plus often, then, when you have a few minutes, look up the SET command in the SQL*Plus manual,
SET System Variable Summary
and read a little about each option.  You probably won't remember everything, but you probably will remember what kinds of things can be controlled by the SET command, and have a better idea of where to start looking in the future when you have a different problem.

Similar Messages

  • Web Report - Hide Repeated Values

    My web report hides repeated values regardless of the query setting. 
    Is there any way to set a specific column to not hide repeated values?  Using the table API?
    Thanks!

    dear Kenneth,
    have you try to remove the check mark of properties 'suppress repeated text' in 'specific' section of your web item 'table' in web template ?
    or you can give parameter SUPPRESS_REPETITION_TEXTS for web item 'table' with value blank
    <param name='SUPPRESS_REPETITION_TEXTS' value=' '>
    doc may useful
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/13dc9190-0201-0010-71a4-a9f56cdfcc72
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b1089290-0201-0010-288c-98e4d26487ee
    hope this helps.

  • Hide column values in report

    Hallo,
    I have created a SQL Report which contain some column, and created a checkboxelement and placed it above the Report.
    waht I want to do, is to hide data from column1(f01) when the checkbox is checked, the column header have to remain displayed.
    I tried it with javascript but it doesnt work maybe i am doing something wrong
    any Idee?
    Many Thanks.
    Edited by: user10773430 on Oct 18, 2009 7:51 PM

    Hi,
    Now I don't know why you need to show the column heading if data won't be shown, but maybe it is something the client thinks it's something "nice" to have.
    Anyway, look at this example that shows/hides entire column depending on the selected value of a check box ( in your case LOV) .
    http://apex.oracle.com/pls/otn/f?p=31517:78:1494600569809382:::RP,::
    You can tweak it as follows:
    Assume in your report you have 2 columns (col1,col2) that you want to be shown/hidden depneding on that LOV , create duplicated of these coulmns ( col1_2 , col2_2) that shows "null" values and are hidden at page load.
    Then tweak that provided code to show the "duplicate" coulmn and hide the original column if corresponding value was seleced in the LOV...something like :
    Col1   Col1_2      Col2           Col2_2
    Mike               Manage
    John              Accountantat load it will look like :
    Col1        Col2         
    Mike       Manage
    John      AccountantWhen LOV selects col1 to be hidden , it will hide col1 and show col1_2
    Col1        Col2         
                Manage
               AccountantHope this helps!
    Sam
    Please reward good answers by marking them correct or helpful!

  • Hide the value into report if the value is same

    Dear All,
    In my one of report the list now displaying as below:
    Item    Mat.Code         Qty         
    10       FAA001C          100 pcs
    20       FAA001C          200 pcs
    30       FAA001C          300 pcs
    But I need it should like as below:
    Item    Mat.Code         Qty         
    10       FAA001C          100 pcs
    20                                  200 pcs
    30                                  300 pcs
    If the material code is same only first It will show others will hide.
    Please advice me with given some example.
    Thanks with regards
    Bishnu/27-11

    Hi, Bishnu
    Test the following sample code.
    TYPES:  BEGIN OF ty_test,
            posnr TYPE posnr_va,
            matnr TYPE matnr,
            END OF ty_test.
    DATA: it_test TYPE STANDARD TABLE OF ty_test,
          wa_test LIKE LINE OF it_test,
          old_matnr TYPE matnr.
    wa_test-posnr = 1. wa_test-matnr = 'AAA'. APPEND wa_test TO it_test.
    wa_test-posnr = 2. wa_test-matnr = 'AAA'. APPEND wa_test TO it_test.
    wa_test-posnr = 3. wa_test-matnr = 'AAA'. APPEND wa_test TO it_test.
    LOOP AT it_test INTO wa_test.
      IF wa_test-matnr <> old_matnr.
        WRITE: / wa_test-posnr, wa_test-matnr.
      ELSE.
        WRITE: / wa_test-posnr .
      ENDIF.
      old_matnr = wa_test-matnr.
    ENDLOOP.
    Out Put
    000001 AAA
    000002
    000003
    Regards,
    Faisal

  • Crystral reports - including paramater values on report

    Hi,
    I have a parameter which can have multiple values and which is used in the selection formula.  I would like to display all the values of the parameter in the report header but only the first one input shows.  I have tried enlarging the display box but it doesn't help.
    Please can you tell me if it is possible and how to achieve a list of parameters?

    Hi Diane,
    It is a bit complex - you need to create a formula - something along the following lines
    Local StringVar testValue := "";
    Local NumberVar i := 0;
    while (i <= UBound({?test_param})) Do
    testValue := testValue + ' ' + {?test_param}<i>;
    i := i + 1
    testValue
    This will display the params selected with a space in between
    You then display this formula rather than the parameter.
    Hope this helps
    Alan
    BTW for a faster response I would post this in Crystal Reports and Xcelsius category under Crystal Reports Design.
    Edited by: Alan McClean on Jan 7, 2009 1:03 PM

  • SQL*plus not showing proper value.

    Hi All,
    In one of the database, while quering in sql developer data is showing data as "PüSS", but when trying sqlplus (client and server), its showing as "Puss", but the actual value is "PüSS". Oracle verion 10.2.0.4 and Linux.
    SQL> select sys_context('userenv','language') from dual;
    SYS_CONTEXT('USERENV','LANGUAGE')
    AMERICAN_AMERICA.WE8ISO8859P1
    In server .profile and oraenv there is no nls_lang, same for sql developer. Please help to get the correct data in sqlplus, because i need to manupulate few records in jobs.
    Thanks,
    Prasanna.

    it must be something I'm doing wrong, above, I was running under windows 7 pointing at the version above.
    I just tried it under an Enterprise Linux pointing at
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production          
    PL/SQL Release 11.2.0.2.0 - Production                                          
    CORE     11.2.0.2.0     Production                                                        
    TNS for Linux: Version 11.2.0.2.0 - Production                                  
    NLSRTL Version 11.2.0.2.0 - Production                                           and I get exactly the same script output and no compiler window....
    actually...... if I go into a procedure window from the schema browser and compile it there, then I get the correct warning messages..... the problem is I mostly develop from .sql files extracted from source control rather than directly from the schema browser, I just want the sql worksheet to be able to show me the same compiler log window.....

  • SQL*Plus auto accept CANCEL during recovery

    I am scripting out to do an incomplete recovery with a backup controlfile.
    How do I get SQL*Plus to automatically accept "CANCEL"
    when I get to this point: Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    and then move on to "alter database open resetlogs"
    SQL> recover database until cancel;
    ORA-00279: change 794271 generated at 12/22/2006 12:09:07 needed for thread 1
    ORA-00289: suggestion :
    /opt/oracle/flash_recovery_area/DDB/archivelog/1_4_609804799.dbf
    ORA-00280: change 794271 for thread 1 is in sequence #4
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    Media recovery cancelled.
    SQL> ALTER DATABASE OPEN RESETLOGS;

    You can't - that's the whole point behind incomplete media recovery - how does sqlplus know when you want to cancel

  • Substitution variables in Sql*Plus

    Hi all,
    How to make Sql*Plus ask for the substitution variable value one time only for a substitution variable even if it appears multiple times inside a query ? Because so far each time I launched the query below then I have been asked two times by Sql*Plus for the variable value. For example : select ref_site from t_comsis where longitude_lamb + latitude_lamb < &distance + power(&distance,2).
    Thanks

    of course accept is more friendly, you can check for valid number, you can have a prompt or a hidden input.
    you can also undef your variable if you prefer the && solution
    SQL> select &&x+&&x from dual;
    Enter value for x: 1
    old   1: select &&x+&&x from dual
    new   1: select 1+1 from dual
           1+1
             2
    SQL> undef x
    SQL> r
      1* select &&x+&&x from dual
    Enter value for x: 2
    old   1: select &&x+&&x from dual
    new   1: select 2+2 from dual
           2+2
             4

  • How to avoid this in SQL Plus

    Hi All,
    I am creting a Stored Procedure and when i run this sentence the SQL Plus requests my the value of the variable 'lolo' and the i want to compile the Procedure, without giving that value.
    1 create procedure hh
    2 as
    3 begin
    4 DBMS_OUTPUT.PUT_LINE('&lolo');
    5* end;
    SQL> /
    Enter value for jhsdfsd: df
    old 4: DBMS_OUTPUT.PUT_LINE('hshfdhs&jhsdfsd');
    new 4: DBMS_OUTPUT.PUT_LINE('hshfdhsdf');
    Nelson Soler

    Although V's solution (V, nice to see you back by the way), will allow you to compile the proc with the ampersand character, I suspect that the stored proc will not do what you expect.
    If you are expecting it to prompt for a value of lolo when you run it, it won't.
    SQL> SET DEFINE ^
    SQL> CREATE PROCEDURE hh AS
      2  BEGIN
      3     DBMS_OUTPUT.Put_Line('&lolo');
      4  END;
      5  /
    Procedure created.
    SQL> SET SERVEROUTPUT ON
    SQL> exec hh
    &lolo
    PL/SQL procedure successfully completed.You cannot prompt for values in PL/SQL.
    TTFN
    John

  • Using Bind variables in SQL PLUS Report

    using Bind variables in SQL PLUS Report. This report gets the arguments from the application concurrent program. Now my need is to convert the start_date and end_date to bind Variables to improve the performance. I have commented the original code in 'prompt List of Unapproved Adjustments' and used my Bind Variable but it is giving an error
    error: Bind Variable "ENDING_DATE" not declared
    Report Date and Time:
    26-OCT-2010 15:44:13
    List of Unapproved Adjustments
    Bind Variable 'ENDING_DATE" not declared
    Please see below the code for the sql plus report:
    define p_org_id           = '&1'
    define p_fy_begin_date = '&2'
    define p_start_date = '&3'
    define p_end_date = '&4'
    define p_conversion = '&5'
    declare
    variable begin_date date;
    exec :begin_date := p_start_date;
    variable ending_date date;
    exec :ending_date := p_end_date;
    /* Begin
    :begin_date := to_date('&p_start_date','YYYY/MM/DD HH24:MI:SS');
    :ending_date := to_date('&p_end_date','YYYY/MM/DD HH24:MI:SS');
    End; */
    set newpage none
    set termout off
    set pagesize 55
    set linesize 180
    set heading on
    set feedback off
    set wrap off
    set space 1
    set heading on
    begin
    dbms_application_info.set_client_info('&p_org_id');
    end;
    prompt
    prompt Report Date and Time:
    prompt ----------------------
    select to_char(sysdate,'DD-MON-YYYY HH24:MI:SS')
    from dual ;
    prompt
    prompt List of Unapproved Adjustments
    prompt -------------------------------
    select b.trx_number,
    a.adjustment_number,
    f.user_name created_by
    from apps.ar_adjustments a,
    apps.ra_customer_trx b,
    apps.fnd_user f
    where a.customer_trx_id = b.customer_trx_id
    and a.status <> 'A'
    and a.created_by = f.user_id
    and a.creation_date between :begin_date
    and :ending_date
    -- and a.creation_Date between to_date('&p_start_date','YYYY/MM/DD HH24:MI:SS')
    -- and to_date('&p_end_date','YYYY/MM/DD HH24:MI:SS')
    order by
    b.trx_number ;

    Hi
    Please go to customization part of the report and verify..You have set a default value out there ..And also verify your lov and look at the values ..If it is again giving you the problem ..pl delete the report and develop it again from the scratch it will be solved...
    vishnu
    null

  • Hwo to create a matrix report in sql Plus

    i want to create matrix report in SQL plus for emp table. how is it possible
    requirement is as following
    Deptno -- Clerk -- Salesman--Manager
    10----------2500---3500--------4500
    20----------2400---3400--------4400
    30----------1400---4400--------5400

    Hi,
    Do a search on this site on
    -'pivot'
    and/or:
    -'stragg'
    and/or:
    -'columns to rows'
    to get many example that will give you ideas.
    Also you forgot to mention this:
    What's the value of the job titles?
    Sum of salary of....?
    edit
    Using my data:
    MHO%xe> select deptno, job, sal from emp order by deptno
      2  /
        DEPTNO JOB              SAL
            10 MANAGER         2450
            10 PRESIDENT       5000
            10 CLERK           1300
            20 ANALYST         3000
            20 CLERK            800
            20 CLERK           1100
            20 ANALYST         3000
            20 MANAGER         2975
            30 MANAGER         2850
            30 SALESMAN        1600
            30 CLERK            950
            30 SALESMAN        1250
            30 SALESMAN        1500
            30 SALESMAN        1250
    14 rijen zijn geselecteerd.I would get:
    MHO%xe> select deptno
      2  ,      sum(decode(job,'CLERK',sal,0)) CLERK
      3  ,      sum(decode(job,'SALESMAN',sal,0)) SALESMAN
      4  ,      sum(decode(job,'MANAGER',sal,0)) MANAGER
      5  from   emp
      6  group by deptno
      7  order by deptno
      8  /
        DEPTNO      CLERK   SALESMAN    MANAGER
            10       1300          0       2450
            20       1900          0       2975
            30        950       5600       2850Edited by: hoek on Oct 17, 2009 3:19 PM

  • Can we use xml Publisher reporting for sql* Plus in EBS

    Hello All,
    The current report is designed in Sql* Plus Executable report and the output is in txt format, Now the requirement is to have the output in Excel format.
    So is it possible to use the xml reporting and make the output as Excel from the word template we design from MSword as we do for rdf(I have done few reports created in rdf to xml publisher reports in EBS and stand alone as well.).
    Do the same procedure will suit for Sql*Plus reports tooo or Is there any work around to achieve this.
    Thanks and Regards
    Balaji.

    Hi
    Thanks for the reply..
    I tried to do the follwoing
    1. changed the output to xml in the conc. prog.
    2. ran the same report but i am getting the follwoing error in the output file
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource
    Other reports which are using the Oracle Reports(rdf) as source, i am able to generated the xml as expected....
    So my question is whether we can use sql* reports executable and generate xml in the conc.prog.
    if any one has used the sql*reports for xml publisher reporting... please let me know, so that if its possible i will check my sql needs some validation or tuning...
    thanks in advance
    Balaji.

  • Print a report from sql*plus.

    Regards all
    Let me know whether it is possible to print a hard report rom sql*plus and how.
    waiting

    Let me know whether it is possible to print a hard report rom sql*plus Yes. SPOOL is a command to get SQL*Plus screen results to disk real-time.
    and how.A "report" is such a generic term, that you will have to get started with at least some reading :)
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a90842/toc.htm
    (search for: "How Can I Learn SQL*Plus")
    You may also address specific questions about the SQL*Plus product (that are not really Database SQL and/or PL/SQL related) via the [Technologies>Tools>iSQL*Plus] forum rather than here.
    waiting That's up to you! Dig in!
    Michael O'Neill
    Publisher of the PigiWiki
    clever-idea.com

  • SQL Plus command to print a report in Landscape format

    Hi,
    what is the SQL Plus command to print a report in Landscape format?

    841731 wrote:
    Hi,
    what is the SQL Plus command to print a report in Landscape format?SQLPlus doesn't print, and it doesn't know about 'landscape' vs. 'portrait' any more than it knows about fonts. the only 'formatting' it knows is line size, page size. And all it does with line size is know where to insert a CR/LF pair (windows) or a CR (*nix). The only thing it knows to do with page size is repeat column headers.
    The rest is up to whatever application you use to open the pure asciii text spool file.

  • Is it possible to create a generic report that accepts the SQL as a param

    Is it possible to create a generic report that accepts the FULL sql statement as a paramater and returns variable results based on this?
    We have a requirement to have a generic export routine to spit out csv's from clicking on a web page hyperlink, which would need to accept a "new" sql statement for every run, each containing different columsn etc that would be needed in the output.
    I was hoping could have a generic Oracle report, exporting delimited data format (and as such not using a layout) and somehow pass in the "new" sql statement as a parameter at run time - each sql statement would be different with different columns etc.
    Is this possible with oracle reports ?
    thanks

    If you need a simple dump of data you could try writing a report with a simple query such as
    select 'Report title or column headers'
    from dual
    &data_query
    then your &data_query parameter could be
    union select col1||','||col2 from data_table
    If you are outputing a comma separated data dump the you can concatenate together your data into a single text field.
    This would allow you to have a simple heading followed by the actual data. I guess you could extend this so that the 'Report title or column headers' from the first query was also a parameter to output your row headings i.e.
    select :column_headings_text
    from dual
    &data_query
    Give it a go and good luck

Maybe you are looking for

  • Pages document 'cannot be opened'

    I was working on a document in Pages, closed it, then reopened it, to be greeted by this error message: It hasn't happened with any other documents (yet). I called Apple Support, copied, exported to PDF, erased and installed Pages fresh, only to stil

  • Memory leak linux

    I'm running Ubuntu Linux and it looks like I see a memory leak that I'm not seeing when I ran it on my PC. I get heap exception everntually. I was using sam maxm heap size of 500M. Is there anything I have to do special for linux? Thanks

  • Autocomplete does not work in CVI 9.0

    IDE does not show the auto complete member of the structure. The issue is very similar in the post described here. And then when I look at the bug fix for the post here it mentions that it is fixed in CVI 2009 which I believe is the same as CVI 9.0.

  • Buying a new iPad and selling my old one.

    I currently have an iPad 2 16Gb wifi, and I'm upgrading to a retina 4th gen same spec, a work colleague is buying my old iPad and I was wondering how I go about resetting my iPas 2 so he can register it?

  • Leopard video lagging like crazy

    So after installing Leopard on my upgraded G4 Cube (1.5GHz, 1.5GB RAM), I'm noticing insane video lag.  Nothing moves smoothly; Dock icons jump around.  I suspect that I need a newer video card that the factory-installed one.  I'm mainly just posting