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.

Similar Messages

  • Pass variables to child via C# script task ?

    I don't want to use package configurations to pass variables from Parent to child package. I'd prefer to pass the variables to child, from a  C# script task in the parent package. Can this be done ? Here is the pseudocode for what I hope to do - 
    //code in script task of parent package
    Main(){
    Object parentObj = SSIS.ParentPackage.myObject;
    String parentStr =  SSIS.ParentPackage.myString;
    callChildPackage(parentObj, parentStr);

    You have four choices for this:
    Use Parent-Child variable configurations
    Place the value in a variable in the parent package, which can be referenced from the child package, when run with an Execute Package Task. (http://agilebi.com/jwelch/2009/10/03/passing-an-object-from-a-parent-package-to-a-child)
    Take over the execution of the child package entirely executing the package from inside your C# script task.
    Use something like the Task Factory Advanced Execute Package task. (Full Disclosure: I work for Pragmatic Works)
    Item 3 is probably closest to what you want. You'd need to use the Package.Execute method to run the child package yourself. The advantage of doing that is you can set child package variables explicitly before executing the package.
    John Welch | www.pragmaticworks.com | www.agilebi.com | ssisUnit.codeplex.com

  • We need to pass the customer id from Parent BO report  to Child BO report.

    Hello Experts
    We are using SAP BI BO 4.1 for Business Objects  and SAP BW 7.3 as BW Backend.
    Requirement: We need to pass the customer id from Parent BO report  to Child BO report.
    Issue: Customer (0CUST_SALES__CUSTOMER) Characterisitic is used where in the display characteristic is set to Key i.e 'Display As "Key" ' But the In BO the Dimension appreas as Text .
    I have tried out by changing the display characteristic as KEY/ TEXT/ KEY & TEXT but still at the BO end the it is displayed as TEXT.
    Workaround Tried:  I have used the detailed object for the Dimension 0CUST_SALES__CUSTOMER- key in SAP BO i.e the key value where in we are able to view the customer ID. But we are unable to pass the value from parent report to child report  as the query level Filter cannot be applied onto a detaield object.
    Is this a BI- BO Integration issue?? Kindly help me out with the same.
    Regards
    Akshay.

    Hello Victor,
    I have gone through the doc sent. It was helpful.
    Info Object (BW)/ Dimension (BO): 0CUST_SALES__CUSTOMER.
    In SAP BO the dimension has detailed object under it 0CUST_SALES__CUSTOMER- KEY and 0CUST_SALES__CUSTOMER- TEXT.
    Now I can pass "0CUST_SALES__CUSTOMER- KEY" from the parent report. But in the child report we cannot apply Query level Prompt / Filter on the detailed object which will hold the parameter passed from the Parent report.
    Q1: Can we apply prompts on a detailed objects?? Is there any configuration  changes required.
    Q2: Is there any other method the achive the same??
    Regards
    Akshay.

  • How to pass bind variable in report

    I'm trying to add tables and chart based of the value selected by the user using the filters.
    l_param_values := MGMT_IP_PARAM_VALUE_LIST();
    l_param_values.extend(13);
    l_param_values(1) := MGMT_IP_PARAM_VALUE_RECORD (
    'oracle.sysman.eml.ip.render.elem.sqlStatement',
    'SELECT TO_DATE(TO_CHAR (alloc.timestamp, ''MON RR''),''MON RR'') AS CALENDAR_MONTH,ROUND(AVG(alloc.avg_size_mb/1024),2) AS SIZE_GB,ROUND(AVG(used.avg_used_mb/1024), 2) AS USED_GB,
    ROUND (AVG ((alloc.avg_size_mb - used.avg_used_mb )/1024), 2) AS FREE_GB
    FROM
    (SELECT m.metric_column AS metric_column,m.rollup_timestamp AS timestamp,sum (m.average) AS avg_size_mb
    FROM
    mgmt$metric_daily m, mgmt$target_type t
    WHERE t.target_name LIKE ??EMIP_BIND_PARAMNAME??
    AND (t.target_type = ''rac_database''
    OR (t.target_type = ''oracle_database'' AND t.TYPE_QUALIFIER3 != ''RACINST''))
    AND m.target_guid = t.target_guid AND m.metric_guid = t.metric_guid AND t.metric_name = ''tbspAllocation''
    AND (t.metric_column = ''spaceAllocated'')
    and m.rollup_timestamp >= ??EMIP_BIND_START_DATE??
    and m.rollup_timestamp <= ??EMIP_BIND_END_DATE??
    GROUP BY m.rollup_timestamp, m.metric_column) alloc,
    ( SELECT m.metric_column AS metric_column, m.rollup_timestamp AS timestamp, sum (m.average) AS avg_used_mb
    FROM mgmt$metric_daily m, mgmt$target_type t
    WHERE t.target_name = ??EMIP_BIND_PARAMNAME??
    AND (t.target_type = ''rac_database''
    OR (t.target_type = ''oracle_database'' AND t.TYPE_QUALIFIER3 != ''RACINST''))
    AND m.target_guid = t.target_guid AND m.metric_guid = t.metric_guid AND t.metric_name = ''tbspAllocation''
    AND (t.metric_column = ''spaceUsed'')
    and m.rollup_timestamp >= ??EMIP_BIND_START_DATE??
    and m.rollup_timestamp <= ??EMIP_BIND_END_DATE??
    GROUP BY m.rollup_timestamp, m.metric_column) used
    WHERE alloc.timestamp = used.timestamp
    GROUP BY TO_CHAR (alloc.timestamp, ''MON RR'') order by 1');
    l_param_values(2) := MGMT_IP_PARAM_VALUE_RECORD (
    'oracle.sysman.eml.ip.render.elem.TableRender.filterNames','NAME');
    l_param_values(3) := MGMT_IP_PARAM_VALUE_RECORD (
    'oracle.sysman.eml.ip.render.elem.TableRender.filterPromptNAME','Database Name');
    l_param_values(4) := MGMT_IP_PARAM_VALUE_RECORD (
    'oracle.sysman.eml.ip.render.elem.TableRender.filterTipNAME','Filter on the target names');
    l_param_values(5) := MGMT_IP_PARAM_VALUE_RECORD (
    'oracle.sysman.eml.ip.render.elem.TableRender.filterPromptTYPE','Target Type');
    l_param_values(6) := MGMT_IP_PARAM_VALUE_RECORD (
    'oracle.sysman.eml.ip.render.elem.TableRender.filterTipTYPE','Filter on the target types');
    l_param_values(7) := MGMT_IP_PARAM_VALUE_RECORD (
    'oracle.sysman.eml.ip.render.elem.TableRender.filterStartEmpty', 'yes');
    l_param_values(8) := MGMT_IP_PARAM_VALUE_RECORD (
    'oracle.sysman.eml.ip.render.elem.TableRender.filterEmptyTableHeaders','Calender Month, Size GB,Used GB,Free GB');
    l_param_values(9) := MGMT_IP_PARAM_VALUE_RECORD (
    'oracle.sysman.eml.ip.render.elem.TableRender.filterSqlNAME',
    'select distinct t.target_name from mgmt$target t where (t.target_type = ''rac_database'' OR (t.target_type = ''oracle_database'' AND t.TYPE_QUALIFIER3 != ''RACINST'')) order by 1');
    l_param_values(10) := MGMT_IP_PARAM_VALUE_RECORD (
    'oracle.sysman.eml.ip.render.elem.TableRender.numberOfColumnsShowed','4');
    l_param_values(11) := MGMT_IP_PARAM_VALUE_RECORD (
    'oracle.sysman.eml.ip.render.elem.TableRender.filterHeaderText','DB Filter');
    l_param_values(12) := MGMT_IP_PARAM_VALUE_RECORD (
    'oracle.sysman.eml.ip.render.elem.TableRender.filterTipText','My Tip Text');
    l_param_values(13) := MGMT_IP_PARAM_VALUE_RECORD (
    'oracle.sysman.eml.ip.render.elem.TableRender.filterButtonText','Get Growth');
    l_element_guid := mgmt_ip.add_element_to_report_def (
    p_report_guid => l_report_guid,
    p_element_name_nlsid => 'user_table_from_sql',
    p_element_type_nlsid => 'any_target_type',
    p_header_nlsid => 'Select DB for 6 Month Growth Summary',
    p_element_order => 1,
    p_element_row => 1,
    p_parameters => l_param_values,
    p_targets => null);
    Is there a way to pass the EMIP_BIND_PARAMNAME to a new element added to the report ?

    The report framework dev response was that the code was not designed for this use case (e.g. a report filter bind parameter used in multiple report elements). They said it is possible that this may work by chance (go ahead and try to pass the same filter parameters into other report elements and see what happens). If that does not work then you can work with your Oracle support contact to file an enhancement request.
    Edited by: cfowler on May 20, 2010 2:46 PM

  • How to output the outline parent-child relationship using a report script?

    I'd like to extract the outline's dimension members with it's parent-child relationship using a report script. Anybody can provide a sample script? Thanks.
    Example:
    DimensionX
    -----MemberX
    ----------ChildX
    Output:
    Dimension X MemberX
    MemberX ChildX
    Edited by: obelisk on Jan 11, 2010 5:16 PM

    Sorry a report script won't do it. You have two options
    1. Use at Essbase Outline API to walk the outline and get it for you
    2. Use the Outline extractor available from Applied Olap (it is a free download). It can be run interactively of as a bat file.
    Frankly, I would rather use 2 since I don't have to code it myself

  • How to pass bind variable into oracle reports 6i - Parameter form

    Hello All,
    I want to pass bind variable into Oracle Reports 6I - Parameters.
    I have tried out that but got the below error :-
    rep-0781 : Bind variables are not allowed in the select statement
    Kindly help me is there any option which allow me to pass bind variables into Oracle reports 6I.
    Thanks
    HARSH SHAH

    Hi,
    may be its not possible to use :P_PARAM1 in user parameter of oracle 6i reports
    but u can full fill user requirement using oracle forms
    create a form as like as report parameter window
    then create parameter list and run report
    PROCEDURE Run_Emp_Report IS
      pl_id ParamList;
    BEGIN
      pl_id := Get_Parameter_List('tmpdata');
      IF NOT Id_Null(pl_id) THEN
        Destroy_Parameter_List( pl_id );
      END IF;
      pl_id := Create_Parameter_List('tmpdata');
      Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
      Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
    END;
    thanks
    mostafiz mitul
    Dhaka Bangladesh

  • Calling ASP script from APEX button passing Bind variable

    I am looking for some examples or best form for calling asp script from apex button that will pass apex bind variable to asp script to process.
    Thanks,s
    Bob

    I am surprised by the degree of no replies. I have solved this by using asp redirects such as:
    Response.Redirect("test.aspx?UserName="&user)
    My formulated solution contains a page with a manually built interactive report. I have a number of bind variables at the top of the reoprt where users can query the information they want based on desginated database columns for this particular report. Once they have the "manual" interactive report displaying what they want, they click a button where a asp script is called with parameters passed that calls a Java based Crystal Reports plugin with the called correspnding report displayed with passed parameters.
    Works like a charm!
    This solves our reporting needs without having to resort to Bi Publisher (much too expensive) and other third party applications that kinda indicate it can work with apex but provide limited help or best form for doing so.
    Bob

  • Distributing crystal reports - batch scripting

    1) How can I distribute reports using Crystal Reports in VB.Net?
    2) what is windows functionality?
    3) Where can I find FTP Scripts?
    Any ideas or samples will be appreciated.

    Jaya, with all due respect, you have made several post in these forums. Each time we ask that you supply more information as the info you do supply is sorely lacking in detail. I understand teat we are all busy these days, however by not providing the information you are prolonging the time to resolution of your issue. With each post, please ensure that you supply at least basic pertinent information:
    1) Version of Crystal Reports used
    2) Development language to be used
    3) Version of development language to be used
    4) Crystal Reports SDK to be used (COM, CR for .NET, RAS, BOE)
    5) Possibly database to be used
    6) Database connection type used
    To you questions;
    1) How can I distribute reports using Crystal Reports in VB.Net?
    You must use msm or msi files. I can not provide any links as I do not know which version of CR you are using (thus prolonging time to resolution...)
    2) what is windows functionality?
    This question has no meaning. Please take the time to elaborate.
    3) Where can I find FTP Scripts?
    Please supply more details. What do you mean by FTP scripts? Do you mean that you are looking for sample web apps?
    4) Any ideas or samples will be appreciated.
    See my suggestions re more details above and throughout this note.
    I would also recommend getting familiar with out notes, articles and downloads pages:
    https://www.sdn.sap.com/irj/sdn/businessobjects-notes
    https://www.sdn.sap.com/irj/sdn/businessobjects-articles
    https://www.sdn.sap.com/irj/sdn/businessobjects-downloads
    Thank you for your understanding,
    Ludek

  • [Interface] - Passing variety parameters/input to PL/SQL report

    Hi,
    I've the PL/SQL report which can allow passing in the parameter, i use '&'.
    the report is given to the end user who do not have the IDE for PL/SQL. the machanism of the report is generated into the spool file and import into excel format.
    now i am wondering how to create a tool using SQL or PL/SQL to allow the end user to choose the parameter(s) dynamically and passing into the PL/SQL to generate the report based on the input selected.
    the parameters like below:
    package code :
    week no :
    year :
    department :
    all the above parameters, the data would be selected from the existing lookup table. the user is allow to select more than 1 input for specified parameter for instance i want to spool report for week 1 until week 5.
    pls advise any solution on this topic. thanks

    hi scoot,
    thank for reply.
    yep, i'm using sql*plus and also sql navigator 4.0 .
    the user don't have the software to interact. i'm thinking of build an simple interface using VB and passing in the parameter then initiate the sql*plus to run the program in background mode.
    but if you have any other solution which not need to use other software to wirte such program , pls let me know immediately. thank

  • No Data in Reports Details in Custom date range

    Hello, iTunes U Public Site Manager Admins.
    As the iTunes U Public Site Manager admin, I've been trying to access our institution's iTunes U Reports Details for a couple of days. (I send a monthly report of usage to our course/collection contributors.) When I custom the date range, under Details, there is zero entry; "No data available in table" message is shown.
    This feature had been working well since Apple iTunes U added this enhancement on August 13, 2013. The report Details showed the exact stats for Browse, Subscribe, Download, Stream, and Enclosure for each course/collection in the custom date range.
    Now under "Details", the data is shown only when the date range is Last 30 Days. It shows no data in custom date range when the Calendar is used to select a Start Date and End Date.
    Has anyone else noticed this problem?
    Thanks.
    Q. Wang

    Erik.
    I used your suggestion and it worked very well. This is how I did it.
    Export the range of data that includes Feb. 1-Feb. 28, 2014 as .tsv file.
    Open that file in Excel.
    Add a blank column next to the Date column. Use function =Month() to just extract the month into the new column. Fill down the whole column. Then copy and paste special (value) into the same column (I have over 26,000 rows of data in the file.) Converting to Value will allow for the next step of PivotTable.
    Create a PivotTable for the 26,000 rows of data. Use Month as the Report filter, iTunes_ID as the Row Labels, Select Browse, Subscribe, etc. as the Sum Values. (The result is a summary table with about 200 rows.)
    I then do a Vlookup to my premade Master file to add Category (course, collection, resources) and Instructor Name to each of the 200 rows.
    That will do it for my monthly report.
    Thanks for your tip again. I did not know the .tsv file would have DATE for each item.
    Sincerely,
    Q. Wang

  • Aging report - detailed needs invoice project code

    Dear All,
    Would it be possible for us to have project code (on A/R invoice header) on Aging report - detailed print layout? I found all fields in Aging report - detailed PLD are sys var. Is there a way for us to figure out which sys var is for project code of the invoice? Thanks a lot.
    Regards,
    Yuka

    Unfortunately you can't, you have to recreate it using crystal. In all SAP std reports you only able to show/print what it already shows.

  • Is it possible to pass a formula value from a sub-report to a main report

    Hi there,
    Im trying to pass a formula value from a Sub-report back upto into my Main report but the value doesnt seem to be getting passed up. Ive tried it the other way around, that is, passing a value from the main report to the sub-report and that works fine.
    Below is an example of what I am trying to do but it is not working. In my sub-report Ive declared a formula variable as,
    formula name=main_subIntRatePageCount
    Shared NumberVar subIntRatePageCount := TotalPageCount;
    and in the Main report Ive declared the formula variable as,
    formula name=subIntRatePageCount
    Shared NumberVar subIntRatePageCount;
    subIntRatePageCount;
    I want the value assigned to "subIntRatePageCount" in my Sub-Report to be available to my Main report.
    The problem I am trying to solve is that the sub-report is spilling over onto two pages, and I need a way of updating the page display on the main report to reflect this. The page display is of format, "displaying page 1 of  3", but its not taking into account the extra page produced by the sub-report, so it should say "displaying page 1 of 4".

    Also thanks Raghavendra, Asha,
    I've tried adding the "whileprintingrecords" statement but that doesnt seem to make any difference.
    I notice that the subReport is being called from my the GroupFooter section of the main report, and I am trying to reference the variable in the main repot in the Page Footer section. Could it be that the variable hasnt been calculated in the Page Footer by the time I calculate it in sub-Report? I thought Crystal Reports does at least 5 passes over the report evaluating all the formulas before it prints the report?
    The problem Im trying to solve is I need to know how many pages my report will have before its completed, so that i can print the statement "displaying page 1 of X", and X is currently not being calculated correctly because the sub-report is printing onto 2 pages and not 1 so the report thinks I have 1 of X pages and not X+1.
    Regards
    Robert.

  • Due date in Detail Aging report

    Dear all,
    I would like to ask if it is possible to add the Due date for each document displayed in the Detailed Customer Receivable Againg report ?
    I tried, but it seems impossible to do so, even I set the field as System Variable (as the Due date in Dunning module).
    Thanks a lot

    Hi,
    'Due Date' column of the documents is available in:
    Aging Report - 'Customer Statement Report (One Page per Customer)'
    The same is unavailable in the Details Aging Report.
    Regards,
    Jitin

  • Search on Master Detail form/report

    Hi,
    I noticed that when I created a new application in Apex 4.01 basing the intial page on a Master Detail form/report, I was able to add a search item to the initial page. When I go to add another page with a different Master detail form/report, I did not have any option for adding a search item to the report page. Seems like an oversight?
    I would appreciate any hints as to how to add same search item to my 2nd Master/Detail form/report.
    Thanks,
    Pat

    Me too facing the some problem can some one pls help

  • How to pass database login information to a crystal report using c#?

    Hi,
    I need to pass database logon information to a crystal report dynamically using c#.  I am developing a windows application using c# .Net.
    I looked some of the articles however I am not able to figure out the mistake I have did.  Please find below the code I have written so far; It would be great if you could help me out in solving the issue.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using System.Data.OracleClient;
    using System.Configuration;
    using CrystalDecisions.Shared;
    using CrystalDecisions.CrystalReports.Engine;
    private void Frm_report_Load(object sender, EventArgs e)
                setReportParameters(); // method to pass parameters to the Crystal report
                crystalReportViewer1.ReportSource = new Upper_Lower();  // Upper_Lower is the Crystal report I have used in my project
               TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
               TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
               ConnectionInfo crConnectionInfo = new ConnectionInfo();
               Tables crTables;                            
                    crTables = new Upper_Lower().Database.Tables;
                    crConnectionInfo.ServerName = "oops";
                    crConnectionInfo.DatabaseName = "";
                    crConnectionInfo.UserID = "new";
                    crConnectionInfo.Password = "new123";
                    foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in crTables)
                        crtableLogoninfo = CrTable.LogOnInfo;
                        crtableLogoninfo.ConnectionInfo = crConnectionInfo;
                        CrTable.ApplyLogOnInfo(crtableLogoninfo);
    Thanks & Regards,
    Karthik.

    Hi,
    Try using this code ,
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    using CrystalDecisions.Web;
            ReportDocument rd = new ReportDocument();
            rd.Load(Server.MapPath("Report name"));
            rd.SetDatabaseLogon("User Name", "Password", "Server Name", "Database Name");
            CrystalReportViewer1.ReportSource = rd;
    [See Also.|http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm]
    Hope this helps!!
    Sincerely,
    Nikhil Dharme

Maybe you are looking for

  • How do I open a .msg file...is it safe?

    Occasionally i get an email with a .msg file attached.  It is from a friend who is known to me.  How do I open it and is it safe? Thanks for the help.. kathy

  • Simple InDesign question / problem

    Hi, I'm having a very simple / basic issue with InDesign. I'm still very new to the program, and I've been going through online lessons, etc. Anyhow, I have a document where I have a simple line, and then I copied and pasted the line and moved it sli

  • Printing Problem in Smartform Payslip

    Dear All, I have developed a payslip in smartform and it is working fine but when select the printer (set up by the Basis People) and click on the Print Preview or the Print Button it is giving the status as NO VENDOR SPECIFIED. and leaves to the sel

  • Sliced in photoshop, trouble in dreamweaver

    I designed my layout in photoshop and sliced it up to make buttons that would act as links. when i linked my email button the page broke up. here is a picture. [IMG]http://i582.photobucket.com/albums/ss261/turbodiaboli/Picture2.png[/IMG] or here http

  • Isight audio does not record with video

    isight audio does not record with video