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

Similar Messages

  • Test Connection failed in Crystal Reports for Eclipse using SQL Server 2008

    I installed an SQL Server Express 2008 on my local PC (Window XP SP3). I downloaded sqljdbc4.jar to Crystal Reports for Eclipse
    IDE library path and tried to Test Connection, but got the Ping failed message : The TCP/IP connection to the host localhost, port 1433 has failed. It said that check that an instance of SQL Server is running on the host (I saw SQL Server SQLEXPRESS is Running on my PC) and accepting TCP/IP connection at the port (I enabled TCP/IPin my PC's SQL Server Network Configuration),
    and that no firewall is blocking TCP connection to the port(I turned OFF Window Firewall on my OC). Can anyone tell me how can I fix this problem ?

    Hi,
    Check the below thread also:
    http://scn.sap.com/thread/1634856
    Thanks,
    DJ

  • Report for a dynamic SQL Statement

    Hi,
    I have a dynamic generated SQL query and I want to report the result in a report region like a regular (standard) report.
    Is there a PL/SQL package function where I can put the parameters in (like SQL query etc) and outputs me the the HTML Code which I can put with htp.p?
    regards
    voidy
    PS: hope you understand what I mean

    Hi Denes (and all the others ;),
    well, I was too busy on my Apex projects lately ;). Actually quite an interesting application. Currently I build a high availability solution for 4.500 users, maybe 2.000 using it at the same time.
    And I have just recently become a father of a beautiful daughter:
    http://www.flickr.com/photos/13993868@N00/sets/72157594266133338/detail/
    http://www.flickr.com/photos/13993868@N00/sets/72157594266133338/show/
    These things have kept me quite busy lately ...
    Greetinx,
    ~Dietmar.

  • User defined Parent child report

    I trying to create parent child (dril down report).
    I able to refer parent column as bind variable in child report but unable to refer child column as bind variable in subsequent child report.
    select a,b from parent.
    select x,y,z from child1
    where x = :a
    select e,f,g from child2
    where e = :x ==> this does not work
    Did anyone tried this, if yes please me know did it worked for you and how
    thanks
    -K

    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

  • Getting Report ID of Calling Report in Child Report

    Hi,
    Am using Business objects webi reports at my job.
    I have a scenario where i call report B from report A and  report B from report C.Am using hyperlinks to call the other reports.
    A ->calls->B
    C->Calls->B
    I wanted to know how to get the report id of the parent report(calling report)(A/C) in the child report (B). I need those details as i have to have back button in child report(B) which takes me to corresponding calling(parent) report.
    So if A->calls->B back button in B report should take me to A Report.
    C->B back button in B report should take me to C Report.
    Your help is very much appreciated.
    Thanks & Regards,
    Sravya

    Karthik,
    Thanks for your response.But my problem is not getting report id.I need to make a dynamic back button which points to correct parent report from child report, though there are many parent reports calling the child report.
    So i should be able to track which report has called.
    Looking forward for some help
    Thanks
    Sravya

  • Defining Report LayOut for a parent child report

    I have a parent child report. I want to print this report in PDF using BI Publisher. Now I wanted to define a layout for that report using BI template builder. My stratagey for defining Report layuout is
    1. Write a query containing all fields that I need
    2. Convert that query data to XML, one way or the other
    3. Load that XML into template builder.
    4. Define the layout.
    Now the problem is that I need some fields for parent and some from child. If I do not use group buy clause in the query I will not be able to use the tabular format in template builder (taht I wanted to use).
    IF I use a group By caluse then I am unable to select the child fields as they are not the part of group by clause.
    Plz help

    You have 2 repeating frames: R_contracts and R_ads. Create a frame M_disclaimer after R_ads, within R_contracts to hold the disclaimer page. This page will print after all the ad records have been printed, and before the new contract starts.
    You can set Page Break Before on M_disclaimer to print this frame on a new page.

  • SQL Dev Child Reports - Dynamic From Clause Possible?

    Hi All,
    Trying to figure out this problem:
    Master Report SQL:
    select TABLE_NAME from USER_TAB_COLS where COLUMN_NAME = 'CREATION_DATE'
    Results with some table names. Now I want to use the table name to formulate my child query
    Child SQL:
    select * from :TABLE_NAME where CREATION_DATE >= SYSDATE-7
    or whatever.....but I want to somehow use the table_name dynamically.
    Thanks!
    -Brent

    I doubt that you can get dynamic from clause for Child Report if its style is table.
    But you can get dynamic one in child with style script:
    Say you have :
    Master report for list tables which select owner and table name by some condition (I omit this):
    SQL :     select owner, table_name from all_tables ..So Child Report
    SQL is follow:
        COLUMN TN NEW_VALUE TNAME ;
        select :OWNER||'.'||:TABLE_NAME as TN  from dual;
        select '&&TNAME' as tab_NAME, count(1) from &&TNAME;Hope it help.
    Edited by: K_Serge on Jan 5, 2013 5:10 AM
    Edited by: K_Serge on Jan 5, 2013 5:20 AM

  • Creating a new page and new layout in a Parent/Child report.

    Hi,
    Currently I have a Parent/Child Report in Oracle Reports 6i. The report shows Contracts as the parent and the detail of the contracts are the Ads. Sometimes there are many ads which extend the contract to another page. Just a normal Parent/Child report. This report can display many contracts at once. My problem is that at the end of each contract I need a new page with a different layout, for a disclaimer page. I've tried many different scenarios using Anchors and page breaks. Is this even possible with Oracle Reports 6i, to have a new page with a different layout in a contract level repeating frame? Any suggestions would help.
    Thanks.

    You have 2 repeating frames: R_contracts and R_ads. Create a frame M_disclaimer after R_ads, within R_contracts to hold the disclaimer page. This page will print after all the ad records have been printed, and before the new contract starts.
    You can set Page Break Before on M_disclaimer to print this frame on a new page.

  • Need an approach regarding reporting for a one-to-many primary-child relationship, where there are more than three child objects for a primary object for reporting purpose

    Business Scenario- We have a parent organization with 6 different Business Units.One BU requires 9 stages for for Opportunity(Tender) Tracking.The client requirement is to show the basic details of the tender at the header level and to show details specific to individual sales stage as different tabs.There will be multiple opportunity members added as opportunity team and will be responsible for capturing details specific to individual sales stage(tab). The Tab should be enabled and disabled based on the role. Reporting is required against each stage with specific fields of child objects against each opportunity.
    We created multiple children entities under the oportunity(one to many mapping) but we are unable to add more than 3 child objects for a primary object for reporting purpose.
    Kindly suggest what needs to be done to meet the requirement

    Can you provide the exact steps you took to  "created multiple children entities under the oportunity" ?
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Standard to follow for SSHR Pl/Sql report

    I wrote a web report for Oracle SSHR using the PL/SQL web tool kit. Is there any standard should i follow. Any SSHR packages has to be called in my package?
    thanks in advance
    Zameer

    can you mail me your specific request on [email protected]

  • 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.

  • 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

  • Pass one parameter from parent to child report.

    Hello experts,
    I am new in OBIEE. I have devloped report1 and report2. Report1 is master report and report2 is child report. Both reports are madeup of combined request to need to business requirement.
    I am facing issue to create navigation from report1 to report2. Actually i have to pass to value to col1 of report1 to filter the second report. There are 5 and 6 columns in 1st and 2 report respectively.
    Please suggest how i can achieve this.
    Thanks in Advance

    Hello,
    Keep all the columns which are in the report 1 as prompted in report 2 and provide the navigation path in report 1 for report 2.
    Also please refer this:
    http://gerardnico.com/wiki/dat/obiee/olap_operation ---gives results as You expected..Please mark it as useful if it is satisfies your requirements.
    Thanks,
    Chitra Subramani
    Edited by: user6371773 on Mar 3, 2011 4:28 AM
    Edited by: user6371773 on Mar 3, 2011 4:29 AM

  • Using opendocument for child report

    Hello Experts,
    One my webi report(parent) is likned with another wei report(child)using hyerlink and opendocument.
    Now my requirement is to hide refresh button of child whenever it would get opened (After clicking on hyperlink on parent)
    So every time, user clicks on hyperlink on parent report, child report should get opened without 'Refresh' button.
    Is there way out to this problem using SDK or url reporting?
    Regards,
    John

    With the SDK, you can create your own Web Intelligence viewer.  Other than that, there's not way to control the refreshability of a document other than using the security model (i.e., do not give rights to a user to refresh the document).
    Sincerely,
    Ted Ueda

Maybe you are looking for