Linking parameters in a subreport

Hello All,
How do i link parameters in a sub report.
I have 2 subreports and I have to link them with cascading dynamic parameters
For the first sub report I an using 1st level of the parameter and for second report I am using  2 level of the dynamic parameter. Can someone please tell me how to link.
The steps i know are:
rt click on subreport>> click change sudreport links.
After this do i have to link each report with all the 4 parameters or what??
Any suggestions on this will be very helpful and please respond asap.
Thanks
Robinn

Do you have the cascading prompt in main report? if so when you create a cascading prompt you will get different parameter for each one like this
suppose if you create a cascading parameter with the name MyParameter and added the values
country,region,city as cascading. Now when you click on the last column "click here to add parameters" in the edit parameter window it will add 3 parameters like
{?MyParameter-Country}
{?MyParameter-Region}
{?MyParameter-City}
Now you can link these parameter to your subreport by right clicking on the subreport select "change sub report links" add {?MyParameter-Country} from main report and link it with the country parameter field from the subreport.
Now for the other subreport add the other two parameters from main report and link them with corresponding parameters in subreport2.
Hope this helps!
Raghavendra

Similar Messages

  • Link Parameters from Report to Form in Insert Mode

    It seems like it should be possible to use the Report wizard to add a link to a form, select some link parameters using the Edit Link function, and then when one clicks on the link it would open the form in insert mode with the link parameters filled in as defaults. Instead what happens is it tries to open the form in update mode with a row that matches the link parameters, and if it can't find a match it opens in insert mode with no parameters filled in. I want it to always open in insert mode and with the passed parameters filled in.
    I've looked through all the documentation I have access to and have been through all the Portal FAQ's on OTN and can find nothing on this. There were a few questions in the FAQ's that told how to do it in PL/SQL, but I don't know how to get access to which instance of the link was selected by the user through PL/SQL, and it seems like there should be a way to do this from within the report wizard.
    Any help you can give me would be greatly appreciated.
    Best Regards,
    Jim Bladen

    If your report is created using ‘Reports From SQL Query’ then you can modify it using the following to achieve this:
    1. Remove the link from ‘Column Formatting’ section of the report object.
    2. In the SQL of the report , use custom link to the column where you want to provide link using the syntax
    select a.empno,’‘||a.ename||’‘ ename_link,a.deptno
    from scott.emp a
    Order by a.empno
    and the form will always open in ‘INSERT’ mode with passed values filled in.
    Thanks
    Krishnamurthy

  • Linking Parameters to sub report from main report.

    When we link a formula in a main report to a sub report parameter and then use the sub report parameter in a SQL Command to an Oracle database, the Crystal Report works in Crystal Reports 2008 but not in  CRFE 2.0 SP1. Please help how to do this. I'm restoring the sub report links after changing the database connection info as per Ted's advice in another thread. Please note that I can see and print the parameters being passed in the sub report. It's only that I can not use it in the SQL command.
    We get the following exception
    Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.hyperformix.athens.crystal.CrystalReportEngine.exportCrystalReport(CrystalReportEngine.java:261)
         ... 11 more
    Caused by: java.lang.NullPointerException
         at com.crystaldecisions.reports.reportdefinition.ParameterFieldDefinition.qJ(Unknown Source)
         at com.crystaldecisions.reports.reportdefinition.ParameterFieldDefinition.qL(Unknown Source)
         at com.crystaldecisions.reports.dataengine.f.hH(Unknown Source)
         at com.crystaldecisions.reports.dataengine.f.S(Unknown Source)
         at com.crystaldecisions.reports.dataengine.f.hN(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataSourceManager.int(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataSourceManager.a(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataSourceManager.if(Unknown Source)
         at com.crystaldecisions.reports.dataengine.y.byte(Unknown Source)
         at com.crystaldecisions.reports.dataengine.y.equals(Unknown Source)
         at com.crystaldecisions.reports.dataengine.i.if(Unknown Source)
         at com.crystaldecisions.reports.dataengine.i.do(Unknown Source)
         at com.crystaldecisions.reports.dataengine.DataProcessor2.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.<init>(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.objectformatter.ObjectFormatter.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatterBase.<init>(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.<init>(Unknown Source)
         at com.crystaldecisions.reports.formatter.formatter.paginator.PageFormatter.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.export2.a.a(Unknown Source)
         at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.ReportViewingRequestHandler.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
    Edited by: balaji va on May 14, 2009 2:55 AM

    Hi Thomas,
    Thanks for the idea but the problem is not that simple, as I'm developing a framework for Crystal Reports 2008 for use at work for future projects. It is not developer-friendly for developers who will use the framework to have a pre-processing just to predict the values they will use for the sub-reports and feed it via the main report (we will not be even sure of the number of parameters to allot for the subreport if that was the case) when all they really needed was a single value.
    e.g. Reports on Departments in a Location (parameter) and the Officers in each Location
    Main Report will query for the Departments in a certain location and other information about it
    Sub report will query for the Officers in the department and their Information (linked to main report via department ID)
    All the developer needed to provide was the Location parameter. I can't make it hard for them so that they need to revise their templates because the new JRC can't process this template. The said template worked in JRC in Crystal Reports XI, that's why I'm thinking there should be a way (I might just have made a mistake or two in what I'm doing in the new JRC). Or is there a bug in the new JRC? I'm hoping for our SAP forum guys here (Ted or other people from SAP) to clear this up.
    Thanks a lot.
    Regards,
    Rizza
    P.S. For snippets of my code, please see JRC for Crystal Reports for Eclipse V2.0 Parameter Problems

  • Linking parameters.. how?

    I have a situation where three different layers and parameters for location need to all be adjusted in unison i.e. when an image moves location, so must a mask on a different layer and so must the centre point of an effect all to that same location.
    I thought rigs may be able to help with this but am confused. When I add all these to a slider, they are still all separate.
    How do I turn these into a single control for position of all three?
    Once I can do this, I then want to animate this location with a motion path. I think I can do that fine once they are all linked.
    Thanks in advance,
    John

    Thanks. That link behavior seems to work well for moving an image and a mask on a background layer simultaneously.
    However, when I try to do the same for the centre position of an effect, it will only let me link to four corner values which seems just totally bizarre. It will not give me the option of linking the centre to the position of the mask for instance.
    How do I link an effect position parameter to an image position parameter?

  • Hyperlink column with link parameters as region column values

    On my APEX page i have region which has sql query as source and it displays as HTML table the query result to the user.
    I want to display addinonal column with a hyperlink inside, and that hyperlink would have CGI/URL-parameters which contains the other values of the HTML row.
    So, let's say my APEX region queryes columns as "select c1, c2, c3, c4 ..." and displays out values "V1, V2, V3, V4" then i want to have addional output column with such hyperlink:
        a href="f?p=100:7:13467554876288::NO::c1,c2,c3,c4:v1,v2,v3,v4">My link column with CGI-parameters</aHow can i create such hyperlink?
    The overall idea is that the link would forward to a page which loads those values "v1,v2,v3,v4" into form fields and user can proceed from there.
    "Application Express 4.2.1.00.08"
    Edited by: CharlesRoos on 10.04.2013 14:55
    Edited by: CharlesRoos on 10.04.2013 14:55
    Edited by: CharlesRoos on 10.04.2013 14:55

    CharlesRoos wrote:
    On my APEX page i have region which has sql query as source and it displays as HTML table the query result to the user.Is this a standard report region or interactive report region? Or something else? Using standard APEX terms makes it easier to understand your problem.
    I want to display addinonal column with a hyperlink inside, and that hyperlink would have CGI/URL-parameters which contains the other values of the HTML row.
    So, let's say my APEX region queryes columns as "select c1, c2, c3, c4 ..." and displays out values "V1, V2, V3, V4" then i want to have addional output column with such hyperlink:
    a href="f?p=100:7:13467554876288::NO::c1,c2,c3,c4:v1,v2,v3,v4">My link column with CGI-parameters</aHow can i create such hyperlink?This is typically done by creating a column link. This is a very basic APEX technique, covered in the <i>2 Day + Application Express Developer's Guide</i> tutorial.
    <li>Creating a Column Link in an Interactive Report
    <li>Creating a Column Link in a Classic Report

  • PDF HTML links/parameters

    Are there any parameters you can add to the end of a PDF HTML link to make it open in a particular size (such as 80%)?  I guess this assumes that the user is using an Adobe product to open a PDF but i was curious.

    Thanks for the reply.  If I include parameters in a URL and a person has a PDF viewer other than Adobe, do those parameters cause a problem?

  • Linking parameters

    Hi All,
    I have a main report having 5 sub report inside it.This main report is just a container report only.
    I kept all sub reports in different report footer sections.
    Now I have a transid parameter for all the sub reports coming from query.
    But in my main report I don't have transid parameter.So
    1) Can I make a report level parameter transid in main report and link to all sub reports
    2 )My main report not connected with any data source where as my sub reports connected with one data source.So will there be any problem with this.
    I mean my sub report will get the data from database.
    Please suggest

    Hi Divya,
    Yes, you can create a 'Static' TransID prompt in the Main report and link it to the TransID field/Prompt in all the Subreports.
    I don't see any issues in doing this and the Subrepor should return data for the entered TransID.
    P.S: Just make sure each Subreport has a Record Selection Formula (If they're based on tables or views) E.g:
    {TransID} = {?Pm-TransID}
    If they're based on Stored Proc or SQL Query, make sure you have a prompt in the source. So you would need to link the TransID prompt from the Main report to this prompt in the Subreport.
    -Abhilash

  • Why, when i click a requested popup link, does the popup open as a full-screen tab, not as a sized popup as per the link parameters?

    i am building a webpage with requested popup links. other browsers show me a popup as expected but firefox just opens the popup in a new tab, no sizing, nothing.

    See http://kb.mozillazine.org/browser.link.open_newwindow.restriction (2)

  • Linking subreport and primary report

    Post Author: ScottBarnard
    CA Forum: General
    I'm having trouble linking a field from a primary report to the same field in the subreport.I've followed all the steps outlined in the help section. When I preview the report I get a parameter prompt for the linked fields.  Should this happen?I've posted the report here http://www.box.net/shared/yu59bgeu8k The file is entitled "SPD1541...rpt"

    Post Author: halecakalli
    CA Forum: General
    you need to write the fields to the record selection of the SUBREPORT.
    basically assign the parameter that is coming from the main report to the field on the subreport.
    e.g  ={?mainreportfield}
    then it wont ask for any parameters for your subreport.

  • Fail to pass parameters to subreports via VB6 application

    Hi everybody,
    I'm a newbie here and I need to view a report (CR10) via a VB6 application where you enter the report's parameters. The report has subreports where its parameters are linked to the main report's ones.
    The application works properly on the development computer but doesn't work on the client computer (Crystal Reports 10 is not installed on it). In fact, the "Enter Parameter Value" message box appears and wants me to enter the parameters manually.
    For reports without subreports, it works nicely.
    How can I do to fix this problem ?
    I really need your help.
    Thank you
    Delphine

    Hello, Delphine;
    If the parameters are linked to the main report they should pass correctly.
    Linked parameters will fail if the database logon fails and the data they are linked to does not exist.
    Open the report in the Crystal Report designer. Go to Database|Set Datasource location.
    What is displayed for the properties of the main report database?
    For the subreport database?
    How do you pass the connection properties in code at runtime?
    Elaine

  • How can I access/identify the linked subreport parameter fields?

    In my report, I have subreports, which have linked SQL parameters.  How can I identify these linked parameters, and what they are linked to in code?
    Thanks.

    reportClientDoc.SubreportController.GetSubreportLinks("<subreport name>").GetSubreportLinks()<i>.MainReportFieldName and
    reportClientDoc.SubreportController.GetSubreportLinks("<subreport name>").GetSubreportLinks()<i>.SubreportFieldName
    Where i is the ith linked parameter and is indexed from 1.
    Hope this helps.
    Thanks
    Aasavari
    Edited by: Aasavari Bhave on Feb 15, 2011 11:05 AM

  • Link subreport to the main report in Crystal

    Hi expert,
    I have a Crystal Report with a row that cointais a Total Field.
    Is possible to add a hypertext link, that open a subreport with all the details?
    Exaple: CardCode: C00001 Account Balance: 14120,50. If i click on the Total of account balance, i open a subreport (linked with the key). Is the same of drill down (perhaps), but I can't use drill down.
    Anybody can help me??
    Regards
    Marco

    Marco,
    try the following:
    make the report into the structure of:
    Group: CardCode
    In the group header delete your group name field, and add your subreport.
    Right click on the subreport, and on format subreport.
    On the subreport tab, there is an option: on demand subreport. Check that in.
    After that you can define a formula ( for example your cardcode ) at On-demand Supreport Caption.
    Hope this helps.
    Regards,
    D

  • Dynamic drill link is not working when i substitute some parameters in Plus

    Hi Gurus,
    Dynamic drill link is not working when i substitute some parameters in Discoverer plus(Tools--->Manage Links--->Edit links--->Parameters options), when i substitute some parameters it working when i click on drill value the link is popping up to go another worksheet.For some parameters link is not popping up. Could you please give any ideas.
    Thanks & Regards
    Vikram

    Hi Vikram
    Oh gosh, me and my big mouth!
    Patch 5381032 has two references to issues with links. You might want to discuss your scenario with Oracle and ask them if this patch would resolve your issue.
    Another solution would be to upgrade to 10.1.2.2 (available as a patch on MetaLink) which has most of the fixes from all of the patches applied. Again I would advise you speak with Oracle Support as they are the only one who can actually confirm whether this particular issue was fixed in this release.
    Are you by any chance seeing zero numbers display as 00 and are you seeing any graying out of icons? If so, then patch 5345595 (sometimes referred to as 5345528) fixes this and is a good patch to apply if you haven't already done so.
    All of these patches require a password which can only be obtained from Oracle by raising a service request to Support and stating the issues that you have.
    Hope this helps
    Regards
    Michael

  • POJO Subreport Linking Problem w/ CR XI

    I am having issues linking a POJO sourced subreport into a linked-table-based main report.  Both reports run fine alone, and in fact, when I include the subreport in the main report with no link, I can get all of the data.  However, when I link the subreport via the subreport links dialog, the result is that I get the correct linking on the first page (i.e., with the first record of the main report), but every other main report record comes up with an empty subreport, even though I know there is matching data values.  As I said earlier, without a link between the reports, I can get the whole subreport to produce, and in fact, once for every main report record.  I assume that I am missing something in the linking of the main report to the subreport.
    Any assistance is greatly appreciated.

    I'm not entirely sure I know what is going on here but I think I have an idea.
    POJO datasources use a 'push' data model which means that you are responsible for gathering the data and pushing it into the report. This means the data must be collected and be ready when the report is run.
    When you embed the subreport inside the main report you are able to push the data into the subreport at the time of rendering.
    When you link the report you are saying that you only want to run the when you click on the report. In this case you have to wait for the end user to click on it. I'm pretty sure that Crystal Reports won't prerun the report so that the POJO data will be available.
    When the subreport link link gets clicked the engine will go and look for the data but it will no longer be available. Does that make sense?
    <a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/robhorne</a>

  • Sending data in details as parameters to subreport

    Hi,
    I got a main report that has subreport located in group total row. The data that is being displayed in main report's detail has maximum number of 10. What I need is to send those 10 rows as 10 parameters in my subreport (located in total row).
    My current approach is to  use a custom code in main report,below is a simplified version:
    DisplayAct will be called in expression in main report's detail row. And getHeaders will be used when sending parameters in subreport. The problem is getHeaders always sent null values to the subreport, however if I call getHeaders in main report it works
    fine. It seems to me that SSRS sending data to subreport (in group total) before populating the details row (which will call DisplayAct and populate variable headers). To me this seems counterintuitive since it implies that group
    total row is generated before the details row.
    Could anyone points to me where it went wrong? Or if this approach is not possible, maybe suggest something else?
    Thanks before
    dim headers(10) as string
    dim ctr=0
    public function getHeaders(ctr as Integer) as String 
    return headers(ctr)
    end function
    public function DisplayAct(currRow) as String
    headers(ctr)=currRow
    ctr+=1
    return ""
    end function

    Ok. In that case what you can do is this to pass entire 10 values from dataset using below expression
    =Join(LookupSet(Cint(1),Cint(1),Fields!YourField.Value,"Dataset"),",")
    Then you will get all 10 values passed as csv. You can just have a multivalued parameter in subreport to receive them.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

Maybe you are looking for