Dbms_output in child report

Hi,
I've been trying to create a report with a child report of type "dbms_output" which does not seem to be working.
The child report by itself (in another report) works correctly, but if it's the child of any other one it doesn't. I have tried both using bind variables and without using them.
The message I get is the typical syntax error even when the code is somethin as simple as this:
begin
dbms_output.put_line('Hello');
end;
Perhaps I just didn't find some very simple option, but it looks like a issue with reports to me.
Any ideas?
Thanks.

> For me (WinXP SP2, 10gR2, 12.1 - 32.13) it doesn't made difference...
Both worked.
I have this report:
Master Name: dept
Master Style: Table
SQL:
select deptno
     , dname
     , loc
  from dept
order by deptno
Child Type: Detail
Child Name: dbms_test
Child Style: plsql-dbms_output
SQL:
begin dbms_output.put_line(:DNAME); end;No other report attributes are set.
This version works fine. But if I change child SQL to
begin
dbms_output.put_line(:DNAME);
end;I get
ORA-06550: line 1, column 6
PLS-00103 found '' but expected one of the following:...and the same messages for line 2, column 30.
WinXP SP2 (czech), 10g rel.10.2.0.3.0, SQLDev 1.2.1.32.13.
Could you compare my and your report attributes, please? Thanks.

Similar Messages

  • Dbms_output size limit in child report?

    Is there a hard limit on the size of the DBMS_OUTPUT that can be displayed in a CHILD report? If so, can it be increased in a future version?
    I have a user defined report that shows active sessions in the top (i.e. master/parent) report. The report has a child tab that show the EXPLAIN plan for the selected SQL statement using DBMS_OUTPUT. It works great unless the Explain Plan is too large, in which case I get an error.
    I just tried to duplicate the problem but nothing that is running now generates a plan large enough to hit the limit, which isn't surprising because the limit was pretty large.
    The SQL for the Child report is below. Note that is it all in one line because at one time it didn't work if there were embedded newlines in the SQL (I don't know if that is still the case). So, it is ugly, but like I said it works well and is very useful.
    DECLARE v_predicate VARCHAR2(200) ; v_sql_hash_value VARCHAR2(100) := :SQL_HASH_VALUE ; v_plan_hash_value VARCHAR2(100) := :PLAN_HASH_VALUE ; v_inst_id VARCHAR2(2) := :INST_ID ; v_child_number VARCHAR2(3) := :SQL_CHILD_NUMBER ; BEGIN v_predicate := 'HASH_VALUE = ' || v_sql_hash_value || ' and PLAN_HASH_VALUE = ' || v_plan_hash_value || ' and INST_ID = ' || v_inst_id || ' and CHILD_NUMBER = ' || v_child_number ; dbms_output.put_line( '<pre>' ) ; FOR nxt IN ( SELECT substr(plan_table_output, 1, 255) as rec FROM table (DBMS_XPLAN.DISPLAY( 'GV$SQL_PLAN', null, 'ALL', v_predicate ) ) ) LOOP dbms_output.put_line( nxt.rec ) ; END LOOP ; dbms_output.put_line( '</pre>' ) ; END ;

    What database version?
    The default size of the buffer for dbms_output used to be limited in the database. it may be that you are hitting that.
    What is the error message?

  • Child reports for a PL/SQL Parent?

    Hi forum,
    I would like to create a parent-child report based on a given package.
    Unfortunately I (guess I )need to have a PL/SQL DBMS Output parent, and I'm searching to create a child based on some rows of this.
    a slightly simplified example:
    I have a type and a package with a procedure & function (I can not change the package):
    create or replace TYPE         SimpleStringArrayType AS TABLE OF VARCHAR2(2000);
    create or replace PACKAGE  MyPackage AS
    procedure get_filelist(vReturnArray OUT SimpleStringArrayType);
    function get_file(filename in varchar2) return clob;
    My idea is to get a list of filenames with procedure get_filelist in the parent report, and in the child report I show the content of the file according to function get_file.
    the current PL/SQL script is (simplified)
    DECLARE
      VRETURNARRAY SimpleStringArrayType;
      v_cnt number:=0;
    BEGIN
      dbms_output.put_line('<html><body>');
      GET_filelist(vReturnArray => VRETURNARRAY);
      v_cnt:=VRETURNARRAY.count;
      dbms_output.put_line('<br>');
      dbms_output.put_line('<table>');
      dbms_output.put_line('<tr> <th><th>file</th>');
      for i in VRETURNARRAY.first..VRETURNARRAY.last loop
        dbms_output.put_line('  <tr>');
        dbms_output.put_line('<td> ' || VRETURNARRAY(i) || ' </td> ');
        dbms_output.put_line('  </tr>');
      end loop;
      dbms_output.put_line('</table></body></html>');
    END;
    again, I can't change get_filelist to a function.
    Any suggestion is highly welcome!
    Martin

    And syntax (basic or otherwise) is covered in the pl/sql manual:
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14261/toc.htm

  • Passing binds to Child reports / detail script reports

    Hi,
    I've been trying to figure out (assuming it's possible) how to pass bind variables to child / detail PL sql script reports.
    I've made sure to declare the binds tab, and made sure it saved. However, if I try something like:
    exec dbms_output.put_line(:VAR);
    I get bind variable not declared. Any ideas what I'm doing wrong?
    Thanks.

    Make sure that the value you are trying to pass to the child/detail report exists as a column in the parent/master report. Second make sure that the bind name in the child/detail report is in ALLCAPS.
    I don't know of any other way to pass bind values to child reports than via the parent query, and the all caps requirement catches me often enough.

  • Open Doc - & in Child report prompts issue

    Hi,
       I am opening a child report using open doc function. This works fine but if there is no LOV in Child report with ampersend (&)
       ="<a href=\"http://server/XI/opendoc/openDocument.jsp?sType=wid&iDocID=7544&sWindow=Same&lsSSelectBusinessGroup:="[vTeam]"&lsSSelectOrgLevel01:="[Current].[Org Level 03]"&sRefresh=Y\">"[Current].[Org Level 03]+"</a>"
    If valuue of [Current].[Org Level 03] has value eg: 'R&D' the child report is selecting only upto 'R' excluding '&D'. Because of this no data is seen.
      Can anyone help?

    Hi,
    This is because of the character &.
    You need to enclose the value in double quotes. Use Char(34) while forming the url.
    ="<a href=http://server:port/opendoc/openDocument.jsp?sType=wid&iDocID=7544&lsSSelect+Business+Group:="+[vTeam]+"&lsSSelect+Org+Level+01:="+Char(34)+[Current.Org Level 03]+Char(34)+"&sRefresh=Y>"+[Current.Org Level 03]+"</a>"
    Also you can try replacing & with
    &amp;
    in the url using Replace function.
    If
    &amp;
    does not work, then try
    %26
    Regards

  • How to link child report in same reprot but in different tab

    Hi all i nXIR2
    iam able to pass parameters to child report in different report how to pass parameters and open it in same report in different tab?
    below link iam able to open in another report
    ="<a href=\"<Servername>:8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?&stype=wid&Refresh=N&sWindow=New&sDocName=Details3&lsS2)Month:="If(DrillFilters([Month])="";"All Month";DrillFilters([Month]))"&lsS1)Year:="If(DrillFilters([Year])="";"All Year";DrillFilters([Year]))"&lsS4)Account:="If(DrillFilters([Cd])="";"All Codes";DrillFilters([Cd]))+"\">List</a>"
    any ideas please
    Thanks

    Hi Arjun,
    There is no hiding or conditional hiding tab functionality in DeskI, which would serve the purpose of your need.
    One option could be to open up the child report in the same window rather a new window.
    Thanks for the reply
    I dont want to hide any tab..
    i want to open a child report in same report in another tab... in web i
    i can use in same window but..... child report i needed have different columns...

  • How to pass multiple values from master to child report

    Hello,
    How would I pass multiple prompts from the master to child report? So for example, say I want to pass a 'Country' value along with a 'City' value
    Would it be?
    ="<a href=\"../../opendoc/openDocument.jsp?iDocID=ASQlgCemIOlEid1HHUlzyPs&sDocName=DocTest&sIDType=CUID&sType=wid&sWindow=Same&lsSCountry="+[Country]+"&lsSCity="+[City]+"\</a>"
    Thanks,
    Carter

    Carter,
    what is the syntax for this?
    It is exactly how you have posted in your original note.
    "&lsSCountry="+[Country]+"&lsSCity="[City]
    This will work providing the target report has a prompt called "Country" and another prompt called "City".  Note that your prompt and what you pass between the &lsS and the equal (=) must match exactly, otherwise OpenDocument will not communicate the prompt title to InfoView properly and InfoView will stop and execute the prompt to get the info it needs before running the report.  Have you tried what you've posted originally to see if it executes without a problem?
    Thanks,
    John

  • Child Report Window Size XI 3.0 SP2

    Hi All,
    I know that you can do this in javascript, i.e. create a child window of a smaller size when clicking a hyper link, I think the parameters called window.resizeTo(X,Y).
    I know there is no BO supported open doc parameter for this, but was wondering whether anyone had got this to work, some how .
    Idea being, the ability to spawn pop up Windows, containing metadata or hsitory about a selected KPI, without losing visibility of the parent report.
    Cheers,
    Mark.

    Hi Suresh,
    Thanks for the response.
    I have already done the linking, that is not the problem.
    The question is the ability to resize the child window, i.e. so the child report part does not fill up the whole screen.
    I believe that without a custom jsp page that this is not possible. If someone has done this, via jsp, from within BOXI, maybe they could respond and let me know the method.
    If you know any different, let me know....
    Cheers,
    Mark.

  • Disable/Hide the Refresh Button in Child report

    Hi All,
    Our Environment is BOXI-R2;
    We have a Master Report calling a Child Report (based on Open Document);
    Our requirement is to hide the" Refresh Button "in the child report Layout
    we tried using "hideRefresh=true"
    but the child report is not responding to the above clause
    Help us in this,
    if this is a BUG in XI R2, let us know the Service Pack details
    Thanks

    Joe , Thanks for your Inputs..
    our master report has the aggregated Measure , when the user clicks on this , it has to open a child report (with paramters from master report).
    We are aware of customizing "viewer.js " file (under BO install home) with "refreshDocIcon = null".
    But is this the only solution to hide the refresh button in the child report ?
    SInce its already a PRODUCTION environment, our customer won't allow to change the standard settings of the product.
    Thanks

  • Passing all values to the child report in OpenDoc - XIR3.1

    Hi all
    in XIR3.1
    iam able to write the open document syntax and also able pass some prompts i wanted like month, year, ID,... etc
    am able to pass and open a child report based on parameters when i select one value of those fields from dropdown in drill mode
    my requirement is if i select All Months or All Years from the dropdown it should generate a child report based on All Years Parameter can we do this
    Any ideas please
    Thanks in advance

    You may refer to the article:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/WebItrick-drillamongmultiplereports
    And you will find out the way to transfer the all value.

  • Child Report Cursors Are Not Being Closed

    A SQLDeveloper report with a running defined child report with a Refresh rate of 5 or more seconds will eventually exhaust the session's max_open_cursors and will crash with "ORA-01000 maximum open cursors exceeded". This is true whether it is the parent or child report which is refreshed.
    In my case, max_open_cursors is set to 600 and the refresh rate is 5 seconds; it takes approximately 50 minutes or less for SQLDeveloper to crash.
    Tracking the open cursors by viewing V$OPEN_CURSOR for the report SID clearly shows that the number of child report cursors keeps growing at approximately one cursor per refresh rate. From this it is very clear that SQLDeveloper is not closing those child report cursors and I have found no way to work around this problem.
    BTW, congratulations to the SQLDeveloper team for an overall really good product at an excellent price. Still a bit buggy but otherwise quite enjoyable to use.
    Jerry

    How are they connecting? What Service?
    Any particular APPs that do this? Adobe perhaps?

  • Child report with Download and back option

    Hi,
    i created a parent report1 and navigating to the child report2. in my parent report1 i see the download, refresh and print options as i enable them by the report links option.
    when coming to the child report2 i am not finding them. how can i add them? please help!!!
    Thanks,
    Mani.

    hi Mani,
    I am able to see download and return buttons .Using navigate option,i drilled to child report
    and enabled download and refresh buttons using report links
    parent report : http://img214.imageshack.us/img214/1663/parentreport.jpg
    child report : http://img444.imageshack.us/img444/1061/childreport.jpg
    Are you looking for the same?
    Else use , GOURL http://oraclebizint.wordpress.com/2007/07/30/customizing-obi-ee-%E2%80%93-go-url-parameters/
    thanks,
    saichand.v

  • How to identifing the parent report from child report in RRI

    Hi Floks,
    Long back we have created one RRI report(which is having parent child relation).Now i have child report with me,i wanted to know the corresponding parent report.Please give me some inputs to identify this.
    Regards,
    Satya.

    Check in these tables:
    RSBBSQUERYDIR
    RSBBSQRYMAPPING
    Also check in table RSBBSQUERY to get the source and target of the RRI interface.
    Pravender

  • Child reports and bind variables

    I'm working on a user defined parent/child report. What I'm having an issue with is using a parents bind variable value in a child. To simpify my example:
    The master query is:
    select count(*), document
    from download_audit
    where activity_date > sysdate-:DAYS
    group by document
    which returns a count of downloads for each document in the last :DAYS days. I want the child report to then list the person that downloaded a selected document:
    select document, user_id, activity_date from download_audit
    where activity_date > sysdate - :DAYS
    and document=:DOCUMENT
    This does not work because the initial :DAYS bind isn't sent to the child.
    If I add the :DAYS as a selected column to the master sql it works. e.g.
    select count(*), document, :DAYS days
    from download_audit
    where activity_date > sysdate-:DAYS
    group by document
    My question is, do child bind variables all have to be selected columns in the master query or is there a way to have a "global" bind variable that gets carried from master to child?
    I'm using SQL Developer 3.2.20.09 on OS X Lion
    Edited by: RoboMan on Nov 16, 2012 11:23 AM

    I agree whole heartedly :)
    If you want to make things even more interesting, create some 3rd generation child reports and carry the bind variables throughout the multiple levels - here's an example
    http://www.thatjeffsmith.com/archive/2012/09/grandparent-parent-child-reports-in-sql-developer/

  • How to go back to the parent report to a particular page from Child report in SSRS

    Hi,
    I am utilizing the Drill through functionality in one of my SSRS Report.
    My Parent Report contains 5 pages. From 1st page I am selecting a link which goes to my Child report.
    Here from my child report I want to provide a link to go back to my parent report's and it should render 3rd (it should show 3rd) page in parent report.
    How to specify this ? Give your inputs as soon as possible.
    Sridhar

    Hi Sridhar,
    After testing the issue in my environment, we can refer to the steps below to achieve your requirement.
    Right-click a report item to open the properties dialog in Child report, click Action in the left pane.
    Enable Go to URL action, the URL below is for your reference:
    ="http://server_name/ReportServer?/folder_name/parent_report_name&rc:Section=3”
    When you click the textbox in the Child report, it jumps to the Parent report in the third page.
    Reference:
    http://msdn.microsoft.com/en-us/library/ms152835.aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for