Trouble linking subreport

Post Author: ebry74
CA Forum: Formula
Hi,
I am using BO XI with SQL 2000.
I am identifying a list of patients on my main report, then using a subreport to pull address based on the medical record numbers on the main report.  I have linked my sub report via the medical record number.  My main report pulls all the medical record numbers that I would expect, but my sub report only pulls the address that coincides with the very last medical record number in the main report, when I need the address for each medical record number.
Here is what the subreport link looks like:
{dly_acct_fct_v.med_rec_no} = {?Pm-dly_acct_fct_v.med_rec_no}
I also tried to edit it with the following:
{dly_acct_fct_v.med_rec_no} in {?Pm-dly_acct_fct_v.med_rec_no}
and
{dly_acct_fct_v.med_rec_no} in split ({?Pm-dly_acct_fct_v.med_rec_no}, ",",-1,1)
I get the same results no matter what I try.  Any suggestions on how I can get an address for every medical record number in my main report on my subreport?
Thanks,
- Bryan

Post Author: ebry74
CA Forum: Formula
Thanks for the response.  Trust me, I would certainly prefer simple.
Can you explain how I can write a sql statement in Crystal?  I could certainly do this report simply enough by creating a view, then writing my report against it, but unfortunately, that would take a couple of weeks to complete since we have a very structured change control process that I would then need to go through.  I know, it's a view, but I don't make the rules, I just work here.
Is there something I am overlooking. Being able to some sql in crystal to create a data set would really make my life easier.  Have a misunderstood you?

Similar Messages

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

  • Urgent help required - linked subreport keeps asking for parameter value

    Greetings,
    I have developed a report in the Crystal Reports bundled with Visual Studio 2005. The data is obtained from a stored procedure. One of the fields in the result set is named "Id".
    I have embedded a subreport in the details row of the main report. The subreport also gets its information from a stored procedure. This stored procedure has one parameter named "OpportunityId". This field is linked to the field named "Id" above. the subreport has been set to supress blank subreports.
    In the development environment and running the executable of the application on the development machine the report works perfectly. The subreport displays as it should and all is well.
    When I deploy the report onto user machines where they have the crystal runtime installed, the report keeps asking for a parameter value for the subreport.
    I cannot get this to stop happening.
    This report is urgently required. PLEASE could someone help me out here.
    I am at my wits end.
    I have attached a zipe file containing the following:
    - the two stored procedure
    - the rpt file
    - a sample report
    - a screen showing the report having just been generated
    Thanks in advance,
    Robert Lancaster

    <p>Hi Robert,</p><p>I see your report template and stored procedures. All seems to be ok. <br /></p><p>The most important is to assign the report parameters for all linked subreports (only one in your case).</p><p> </p><p>Try this (in C#, in VB.NET the code are very similary): </p><p>ReportDocument report = new ReportDocument(@"TopFortyReport.rpt");</p><p>AssignParameters(report, paramCollection);</p><p>// and now assign parameters to all linked subreports </p><p>foreach( CrystalDecisions.CrystalReports.Engine.Section section in report.ReportDefinition.Sections)</p><p>{</p><p>    foreach (CrystalDecisions.CrystalReports.Engine.ReportObject reportObject in section.ReportObjects)<br />    {</p><p>        if (reportObject.Kind == ReportObjectKind.SubreportObject) </p><p>        {</p><p>            SubreportObject subReport = (SubreportObject)reportObject;</p><p>            ReportDocument subDocument = subReport.OpenSubreport(subReport.SubreportName);                                               AssignParameters(subDocument, paramsCollection);</p><p>        }</p><p>} </p><p> </p><p>void AssignParameters(ReportDocument report, object[] paramsCollection)</p><p>{</p><p>    int nParams = paramsCollection.Length;</p><p>    for (int iParamIndex = 0; iParamIndex < nParams; iParamIndex++)</p><p>    {</p><p>        if (report.DataDefinition.ParameterFields[iParamIndex].IsLinked())</p><p>            continue;</p><p>        report.SetParameterValue(iParamIndex, paramsCollection[iParamIndex]);</p><p>    }</p><p>}</p><p> </p><p> </p>

  • How to Create a Linked Subreport in Crystal Report for Enterprise

    Hi All
    I am developing a monthly report grouped by cost centre, I want to create a second table for each cost centre showing year to date, underneath the monthly data for that cost centre.  My thoughts on how to achieve this is to create a linked subreport in the group footer of the cost centre grouping.  However every time I try to set this up the report crashes.  Am I doing something wrong, can this be done in crystal reports for enterprise?  Can anyone give me a pointer on how to set up a linked subreport so that it passes the particular cost centre the report is grouped upon into the subreport so it only shows data relevant to that cost centre?
    Any help will be appreciated as I am going in circles at the moment.
    Thanks
    Neil
    Edited by: SmiddyLad on Feb 6, 2012 2:49 AM

    Hi Neil,
    You are doing right. You can create linked subreport in crystal report for enterprise.  Please refer below link to see the elearning tutorial  in which a simiar scenario is explained step by step. Here its an unlinked subreport. Enable subreport filter to make it linked and try. It should work.
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/200c56fc-5a02-2e10-36a1-ba3d28e31fc2]
    Hope it helps you.
    Regards,
    Nikhil Joy

  • What exactly means Linked Subreport?

    <p>What exactly means Linked Subreport?</p><p>When i create a primary report with fields customer id & Country and subreport with Customer id & Lastyear&#39;sSales and try to link the subreport by selecting Customer id the subreport shows only the data for last record from primary report.</p><p>Not clear about the linking subreports...</p><p>Linking should show all the fields matching for Customer id or only the last record?</p><p>Need an detailed explanation as is it is not clear... </p><p>&#160;</p>

    Firstly,
    Is it on Demand-Subreport?... If not where are you placing the subreport if it is in Report Footer it will show only last record for data from primary report.
    Place the Subreport in Details Section and you will see the corresponding records for the Customer ID but before that you have to link it on Customer ID.
    Thanks
    Rahul

  • HT201342 Trouble linking iCloud E-Mial with my PC E-Mail app

    Having trouble linking iCloud E-Mial with my PC E-Mail app.  When I created the new iCloud user name I couldn't use my current Apple ID (@comcast.net) it required me to use a @iCloud.com address. I was never asked for a password for this new account but it did say this was created under my original Apple ID somehow.  I got all of the server settings off of the support site and used the password for my original Apple ID but it doesn't work.  Any ideas on where to go from here?
    Thanks.

    After a series of tests with the Thunderbird users, we've established the problem was not:
    Mail/Thunderbird incompatibility
    related to Mail's stationery
    related to styled text
    only because of attachments
    only because of PDF attachments
    Both users had the trouble after I forwarded PDFs to them from two different outside suppliers. So far, my theory is that there was something about those particular files. After five run-throughs where the co-workers had no problems with e-mail from me, I now want to replicate the problem, but (understandably) they're not eager to lose their work time to do it. I'll post more as I learn more.
    Thanks, BDAqua for the ideas about blank lines around the attachment.
    Rob

  • Trouble Linking content within Attached Movieclip

    Ok, so as the title indicated I am having trouble linking a
    flv file with a playback component via actionscript. Here's a
    breakdown of what's going on:
    At the root level I have attached a movieclip named
    Navigation. Inside of Navigation is a button that attaches another
    movieclip, named List, also at the root level. Inside of List is
    another button that attaches a third movielcip, named Movie.
    Inside of Movie is an FLVPlayback component, instance name
    Player, with no content linked. The code for the button in List is
    as follows:
    on (release) {
    _root.attachMovie("movie", "movie1", 3);
    _root.movie1._x = 250;
    _root.movie1._y = 0;
    _root.movie1.player.contentPath= "
    http://home.comcast.net/~ptgerke/one.flv"
    So the button in List successfully attaches Movie, and
    positions it correctly, but the FLVPlayback component, Player,
    never establishes connection with the flv file that I tried to
    direct it to.
    Is there something simple that I'm messing up on?
    Thanks for the help, and sorry if I didn't do a well enough
    job describing the situation. Let me know and I can further clarify
    or provide the .fla file or something.
    Thanks
    Pat

    Have you tried using "movie" without attaching it
    dynamically? (does it work when just sitting on the stage and you
    set the var). I would give that a try first. I know that some
    server hosts block unknown/rare file types, so you might not even
    be able to connect to the file. Alternatively, you can check for a
    connection error by adding the code below

  • Having trouble linking dll file

    Hey guys,
    I'm having trouble linking a third part dll file in visual studio 2013.
    I'm using a third part library called "tinyXml2" to parse xml file in my plugin. Here's my folder structure"Adobe After Effects CS6 Win SDK\Examples\AEGP\ServerRender\Win\tinyXml",
    my project file is in the "Win" folder.
    In my "tinyXml" folder I have 3 files "tinyxml2.dll", "tinyxml2.h" and "tinyxml2.lib".
    I use "#pragma comment(lib,"tinyXml\tinyxml2.lib")" to link the lib file
    but it doesn't work, I still get "error LNK2019" and "error LNK2001" errors says the compiler can't find the methods I'm using.
    I have set the "Project Properties --> C/C++ --> Code Generation-->Runtime Library" to "/MT" too
    Do you ever running into such problem before?  Please help me !!!

    Never mind, newbie mistake. If I want to link a dll to my project, I need to make sure that my dll and lib file are compiled with the same settings as my plugin. Current my plugin is compiled in debug mode targeting x64, so I need to make sure my dll and lib are compiled with such settings too!

  • Troubles with linking subreport with an SAP Query variable

    Hi there
    I have a main report mith a subreport placed in the detail section.
    Both reports base on an Bex Query and have Query-variables. While linking the subreport i can not select the parameter which is based on the Bex variable in the subreport.
    While connecting other parameters /variables i learned, that Crystal cannot determine the type of data of a Bex variable, right?
    Because of that i built formulas which convert my values into strings and these strings can i connect in the subreport linking.
    Unforntunately this does not work with this on variable. In Bex this is a Number. I tried to link with the corresponding field in the Detail section (which is a number, too) and i tried with the string, but both does not work. I can not select this Parameter.
    Any idea how to determine the datatype of this Parameter (based on Bex Variable) i have to provide?
    Thanks in advance
    Alex

    Hi Ingo
    Well, i knew that thing with the same types already, as i mentioned it in my post.
    In this problematic case I want to connect a field of the detail row to a prameter in the subreport. This Parameter is coming from a Bex Variable. I treid with values of oll types - it doesn't work. How can i determine the type that Crystal assignes to the Be variable?
    Alex

  • 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

  • Linking Subreports based on group in the main report

    Hello,
    I have a main report that groups by department, month, and then employee name.  I put a subreport in at the month and name level (it brings back statistics for a particular employee for the chosen month).  The subreport is based on a completely different set of data.  I want the subreport to pull just the data for the individual month and employee into that employees monthly section.  How do I link the subreport?  It seems like it should be pretty straightforward, but I can't get it to work.  Do I need to set up groups in the subreport?  I am a beginner and appreciate your help.
    Thanks,
    Al

    How I would do it is as follows
    Create a Formula Field and choose the group name e.g.
    GroupName ({migsol_oppact.COMPANY})
    Then link the sub report using that Formula Field

  • Question: Trouble linking PDF in Muse

    Hi. I purchased a Adobe Creative Cloud subscription for Christmas and have since been learning how to use Muse. Today, I was working on a website for a client that includes a downloadable PDF of the clients brochure. Everything works fine except that when you click the PDF link it opens the clients primary website, http://www.ipgauto.com, instead of downloading the PDF. I have carefully checked to make sure I followed the instructions in the tutorial, but to no avail. Also, I am having the same trouble with one of the text hyperlinks. I linked it to ipgrewards.com but when I click on it it opens ipgauto.com. I have broken and reapplied the link several times, but with no different result. My webBasics temporary URL is http://ipgtemp03.businesscatalyst.com/index.html. Any suggestions?

    You have different links assigned for clicking on the text and for clicking on the graphic.  Clicking on the text opens a PDF. Clicking on the graphic opens a web page/
    Just a comment. Ya may want to move the graphic and text to the right a bit.

  • 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

  • Trouble Linking TOC Paragraph Styles from a Word 2010 Document to a RoboHelp HTML Project

    I apologize if this question has been answered elsewhere. I did my best to search the forums and the web, but I haven't seen anything that helps resolve the issue I'm having yet. I am new to RoboHelp 9. I am using Word 2010 and Windows 7.
    I am working on creating a WebHelp that is linked to a Word 2010 document. For the most part, I have had no trouble with the linked document, but something seems to be wrong with the styles and formatting for the TOC paragraph styles that I created in the Word document: the formatting does not apply to the topics in RoboHelp. All of the other paragraph styles (Heading 1-4, Body Text, etc.) are working perfectly. The problem seems to apply ony to text using the paragraph styles TOC 1-4.
    The TOC in the Word document looks like this:
    The topic containing that TOC in the RoboHelp project looks like this:
    In the Word document, the entries for 1. Introduction, 2. Punctuation, and 3. Numbers are all all set to the paragraph style TOC 1. The entries for Purpose, Audiance and Applicability, Scope and Other References, etc. are all set to the paragraph style TOC 2. Both of these paragraph styles contain formatting for font and indentations, and they also appear in the RoboHelp project's .CSS file as WD_TOC 1 and WD_TOC 2.
    The problem, as far as I can tell, is that the TOC 1, TOC 2, and TOC 3 styles do not appear to be applied to the text in the topic.
    I could resolve the issue by highlighting the text I'd like to apply the style to and applying the appropriate style using the Styles and Formatting pod, but then every time I update the Word document, the text would revert.
    Does anyone have any suggestions?
    Please let me know if anything is unclear or if I need to provide additional information.
    Thank you!
    Rachel

    Thanks for your response, Peter. I do understand that what I'm trying to do is not standard--and probably not best practice for WebHelp. I am following instructions to make the WebHelp function like the website we are using as a model, which  features a TOC for each chapter as a separate page. So I understand that what I'm doing is essentially pounding a square peg into a round hole, but it seems like it should work as long as RoboHelp can pick up the right paragraph styles.
    I can eliminate the page numbers pretty easily by choosing to use hyperlinks instead of page numbers in web output (this is an option in Word 2010), but the Hyperlink style is a character style that overlays the paragraph styles TOC 1, TOC 2, etc and suppresses page numbers. While the Hyperlink character style translates with no problem to RoboHelp, those underlying paragraph styles are still not linking up quite right. For the sake of trying to simplify things and address the real problem, I temporarily removed the hyperlinks (thereby including the page numbers) in order to straighten things out. Thank you for pointing out the apparent oversight, though!
    What's confusing about the problem is that WD_TOC 1 and WD_TOC 2 are already defined--they just aren't being applied. I can apply them manually, but as soon as I do, the status indicator in the Project Manager pod changes to the yellow triangle with an exclamation point (), indicating that the project is out of sync. As soon as I update the topics, those TOCs revert to having no paragraph styles at all. Does that make sense?
    Thanks again for your help!

  • Linking SubReport Issue

    I have a field in the main report that I want to use to link to a subreport and only display the informaton that meets that fields value. I have the subreport set up and when I go to create the link it can link with either the ?PM-MISC.RUNNUMBER or Select data or subreport based on field. When I just use the first I get all the data (many different run numbers, not just the matched number form the main report.) When I check the second one I get nothing. .
    Any ideas?
    Jim

    Hi..
    Where you are inserting this sub report ?  Try to create a group on the field which you are linking to sub report.  Place sub report on group footer.
    Link sub report with ?P M to sub report field.
    Thanks,
    Sastry

Maybe you are looking for

  • Multiple FDM Value by -1 in import script

    This should be an easy answer, but we have certain line items in our source file where we want to multiply the amount by -1.  What would be the correct syntax.  Everything I try fails.  Below is what I have that gives a type mismatch error on v_Amt_2

  • Does the 4th gen Nano have an adapter for docking stations? Need help!!!!

    I have a philips dock and play docking station and whilst my 1st gen Nano is very happy playing on it the 4th Gen won't even go on properly. Am i not inserting it correctly or are they just not compatible? What i'd really like to know, is there an ad

  • User completing fill in screens and tabbing

    Good morning, In the training that I'm creating, my user needs to fill in a screen, like a pop-up dialog box. They need to enter several different lines of information. Rather than have this done as a demonstration, I want it to as closely mirror the

  • Comma Separated Tags from BLT?

    Was reading the help documentation and noticed that there is a way to pass in comma separated tags to a query template: TagName One or more tag names to be queried String Or String List None The name of a tag in the underlying data source.  This para

  • PO UoM conversion problem

    Hi, I have the following scenario: - sales unit for material is PAC - order unit is PAL=42PAC - in material master, purchasing tab, the variable order unit is set to active, which should allow also the using of sales unit as order unit. Sales order a