Crystal report input prompt..for sub report

Hi All,
I developed crystal report and retreived the fields from the exsiting Query.Now for  enhancing the report i must creat a sub report for th eexisting one.In this case iam getting 2 input prompts one for the old report and the other one is for the enhanced sub report .But the requirement is tha t, the report must get only one input prompt for both the reports. Is this can be possible from the Query end or the crystal report end?
YVL

Hi Vijayalakshmi
You can apply just one input parameter for the main report and then link your subreport with this parameter.
Once you link the subreport, you would get only one prompt for inputting parameter values.
This way you can optimize the performance of the report as well.
For more information about linking subreports you can refer to the user guide for the respective crystal reports version you are using.
Hope this helps!!!
Regards
Sourashree

Similar Messages

  • Financial Reporting: One prompt for all reports in a book

    I want to prompt once for all reports in the book for year and month. Right now it prompts for each report. I see that you can select to "respond at book level" but I don't know if that will solve the problem and I can't see how to make that drop down appear.
    Books points of view are set to User POV for year and month now. When I try to edit the memebr selection I see member names, sub var and User POV but no prompt choice.
    Thanks for any help you can provide.

    user644540 wrote:
    I want to prompt once for all reports in the book for year and month. Right now it prompts for each report. I see that you can select to "respond at book level" but I don't know if that will solve the problem and I can't see how to make that drop down appear.
    Books points of view are set to User POV for year and month now. When I try to edit the memebr selection I see member names, sub var and User POV but no prompt choice.
    Thanks for any help you can provide.I suggest you may repost the message in Planning and Budgeting forum for FR related issues.
    Cheers!

  • Crystal report(Can i link sub report and main report Compulsorily) - invalid path

    hi.
    i need small clarification.
    i am developing one Crystal report
    main report i took it from rdr1 one table...
    report is working fine..
    Sub report i took it from inv1 one table.
    i have not linked any fields from these tables.
    May be it is having links in b1..
    but in my other report both the tables.... from main report  and sub report does not have any relation.
    My Questions is..
    Can i Compulsorily link fields to main report...
    if both does not have any relation what should i do...
    i took two tables.
    main report rdr1
    sub report inv1...
    if i  run the report it is asking two parameters one is for sub report and other one for main report working find in crystal report.
    but...i want to run the report in b1.
    while importing i am getting the error (Plz have a look on below image)
    if i choose any other report it is importing  fine...
    Clearly i am mentioning i dont want to link both tables there is no links between two reports...
    in this scenario can develop  a report..
    I need your Valuable suggestions.
    here below u can find my developed sample report...
    http://www.megafileupload.com/en/file/544758/NewReport-rpt.html

    hi.
    If i try only i am getting the error..
    out side if i run i am able to run the crystal report but
    in b1 i am not able to import the report.
    you can also try my report
    from below link u can get my simple report.
    if u find any mistake what i have done plz inform me..
    http://megafileupload.com/en/file/544806/NewReport85-rpt.html

  • Crystal runs sql command of first sub report in the second sub report ?

    Hi,
    I have report that contains 3 sub reports.
    Each subreport is running his own sql command to retrieve it's data.
    When moving from the first subreport to the 2nd subreport, we see on the oracle that the crystal runs the sql command of the 1st subreport, and then the sql command of the 2nd subreport.
    The results are fine (he ignores the 1st subreport result in the 2nd subreport), but it delays the showing of the 2nd subreport to show.
    Why? The 2nd subreport doesn't need the data of the 1st subreport!
    How do I cancel that????
    BTW - The 3rd subreport is running only his own sql command (As should be).
    Thanks.

    Hello,
    Not without more info about the report and the data. If there is nothing linked from the main report to sub1 then it's going to run and return all data, no filtering. And from the sounds of it to take 5 + minutes per query this is going to affect performance for the whole report.
    You may want to re-evaluate why and what the subreports are used for. If they all use the same data the link them in the main report use groups to sort the data.
    Having subreports in the Details section is asking for performance problems, every record returned will cause the subreport to run. Not knowing what the subs are doing I can't say for sure....
    What you should do also is re-evaluate your Commands for each sub and see if you can do it either in one SQL statement or write a Stored Procedure to do all of the data collection. DB Servers are much more efficient at collecting data than CR will ever be. Pushing just the results to CR makes it simply formatting the results in the Designer and no performance hits....
    Talk to your DBA on how to optimize your Command SQL's and how to get them into one SQL or into a SP that dumps the final results into a final SQL * from TEMP Table into Crystal.
    Don

  • How can I have Main report with a sub-report with in a sub-report??

    I have a main report that has about 5 subreports, almost like a dashboard.  I need to make one of those subreports contain another subreport.
    I don't have the option to add a sub-report with in my sub-report, so what I thought would work is remove my sub-report from my main report, then add my new sub-report, then add that report back to my main report.
    Everytime I add the sub-report that has a sub-report to my main report I lose the second sub.
    From what I've read on the internet is you can't have a sub-report contain another sub-report.  What some say is you can hyperlink that second sub report.
    When I setup my hyper link to open the second sub-report I'm prompted to re-enter my report parameters.
    Can some help me link a sub-report to a sub-report or show me how to pass a date range parameter in my hyper link so the reports just opens up?
    I'm using CR IX R2
    Thanks

    Nate,
    You are dealing with a product limitation.  Crystal cannot have nested subreports within a sub report. 
    You can generally use shared variables between sub reports to achieve your desired result

  • How to show view tab Main Report and all of Sub Report in one action through Visual FoxPro

    How to show all view tab (Main Report and all of Sub Report) in one action.
    I already know how to show Main Report with this code sample:
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=this.Parent.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    Inside the 'MyReport.rpt' it has 2 subreports:
    1. MySubReport_1
    2. MySubReport_2
    I try to show MySubReport_1 and MySubReport_2 together with their own Main Report with this code sample:
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=this.Parent.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptSub1=oRptOpen.OpenSubreport('MySubReport_1')
    oRptSub2=oRptOpen.OpenSubreport('MySubReport_2')
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    Did I miss something because there was only view tab 'Preview' (Main Report) shown without view tab MySubReport_1 and MySubReport_2.
    Thank you.

    Your right, there is only one tab to view the report.
    To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
    http://diamond.businessobjects.com/robhorne</a>

  • Report sometimes prompts for database logon prior to execution

    I have installed the Crystal Reports Integration Addon on our system and it works correclty for users on our terminal services server.  But when I installed it on a user's PC running Windows XP, when I go to execute an existing report, the Runtime viewer launches, and then displays a Database logon panel with the Server field filled in, the database field is blank, and the SA user and password fields are populated, and I get an error that says logon failed.  I type in the SA user id and password, but get the same error.
    If the same user logs onto the TS server, the runtime viewer launches correctly and the report prompts for input, then displays the appropriate data (no database logon is requested). But if it runs at that user's workstation, the viewer launches, and then prompts for database logon.
    We are running SAP 2007A SP00 PL47, CR Basic 2008 for SAP Business One, and the runtime viewer is Crystal Reports 2008 Runtime SP1. version 2.0.0.7

    Hi Bruce,
    I am not sure what the problem is.
    The only workaround I can think of is to change the Integrated Security in the report to true. This means that you will be using Windows Authentication as opposed SQL Authentication. This will not prompt for SQL username and password.
    Usually this is NOT an ideal process as you will have to Add each and every Windows user in the SQL Database you are trying to access. For example, you have to add DOMAIN_NAME\User_Name under the Database Properties.
    I am not sure what the minimum security you need to run the report. You will try a few different options and see what works best for you. Avoid permissions that would give users ability to write to the SQL database.
    Again, I know this is not ideal. But I am not sure what else can be done here.
    Krishnan

  • Custom Report Syntax - Prompt for limiting collection

    I'm building a customer report that will display maintenance windows for multiple devices.  I'd like to be able to filter the number of devices reported by collection (as to not have EVERY device in the console listed all at once).
    I've got the report working for everything except the filtering part.  Do I need to add a new Dataset and then filter it somehow?  Here's my only dataset so far:
    FIELDS: Computername, CollectionName, Next_Maintenance_Window
    QUERY:
    select
    v_FullCollectionMembership.Name as Computername ,v_Collection.Name as CollectionName,
    v_ServiceWindow.Description as 'Next Maintenance Window'
    from v_ServiceWindow
    inner join v_FullCollectionMembership on (v_FullCollectionMembership.CollectionID = v_ServiceWindow.CollectionID)
    inner join v_Collection on (v_Collection.CollectionID = v_FullCollectionMembership.CollectionID)
    order By Computername
    What do I need to add to be able to select the collection 1st then run the query above?

    HI
    Or you could do it like this:
    Create a new dataset and paste in the following Query:
    SELECT
      v_Collection.Name
      ,v_Collection.CollectionID
    FROM
      v_Collection
    Where CollectionType=2
    Insert the following code in your own Query (dataset) right before order by Computername
    Where v_Collection.Name = (@CollID)
    Expand Parameters in Report Builder, you should see a paramter called @CollID
    Right-click CollID and fill in the following information on the general page:
    Name: CollID
    Prompt: Collection
    On the Available Values select Get values from a query
    Dataset: Dataset2 (the new dataset you just created)
    value field: Name
    Label field: Name
    Design your layout in report builder and run the report. You will get a drop-down box with all your device collections.
    This report is not "RBAC" enabled

  • Date prompt for Answers report.

    Hi,
    I created a report in Answers. I created a prompt on a date field which shows when the Account was closed. I foramtted the date field into a custom date format and the results also display in that format. for ex: the format I created was DD-MMM-YY. When I create a prompt for this field the drop down values show as 4/24/2008 12:00:00 AM, But I want the drop down for the prompt to be displayed as the same format as the column i.e DD-MMM-YY. This is for just a regular report prompt (column filter prompt) and not any dashboard prompt. How can I acheive this? Thanks.

    hi,
    But the prompt displays DD/MM/YYYY. How can I make the prompt also display DD-MMM-YY? Also if I create a dashboard then how do I use the same prompt with DD-MM-YY formatIn both the report and prompt fx use the following syntax and make is prompted on report column "fx"
    EVALUATE('TO_CHAR(%1,%2)' AS CHARACTER ( 30 ),Dim-Date.REPORT_DATE, 'DD-MON-YY')
    Thanks,
    Saichand.v

  • Bypass a prompt for broadcasted reports-designer only

    Dear All,
    I'm having a little question concerning @prompt, as I used it in WHERE clause
    to force users to choose only dimension value at a time ('mono' option) to lower
    down number of datas.
    But as reports designer I'd like to bypass this prompt .. is-it possible through
    standard option ? or should I implement a technical trick like create 'ALL' in lov
    and make this value available only for designer?
    I noticed an optional value user:0 in @prompt syntax but coulnd find any documentation
    related to this, does anybody know how to use it ?
    Thanks for your help,
    Rgds,
    Nicolas

    By bypassing the prompt do you mean that the users should not be prompted to enter values in the prompt rather it should pick up a default value and generate the report on the basis of that.
    There is no such way in Designer to bypass a prompt. We can add ALL in the LOVs of the object but still user's will be prompted for the value, here they can select ALL from the LOVs. You can also specify to Keep the Last Values Selected in the prompt. Hence everytime the report the prompt will appear with the Last Value that was passed. You can either change it if you want or can refresh the report with the same value.
    To achieve this you can use "Persistent" parameter.
    This parameter keeps the last entry in the prompt as the default value when reusing the prompt.
    The syntax of @prompt then becomes:
    @prompt('prompt','Data Type','LOV',Mono or Multi,Free or Constrained,Persistent or Not_Persistent,,User:0)
    Here the User:0 or User:1 is used to specify the order of prompts as they should appear in the report.
    BO XI 3.0 also has a feature of "Optional Prompt". You can define a prompt as optional, hence its not mandataory for the user to enter a value in the prompt.
    I hope this should help.

  • Page size not displaying properly for sub report

    I created a landscape report in Visual Studio 2010 which contains sub reports.  I had to change the layout of the main report back to portrait.  The ruler on the main report updated itself to show the new page range.  All of the sub reports updated as well except for one.  I have one subreport where the ruler still displays like the report is in landscape mode.  Is there a way to fix this?  Is this a bug?

    David - 
    I agree with your comment about being allowed to configure page setup in subreports.  I don't know why users are allowed to do that.
    I jumped to exporting the subreport because that is what Ludek suggested in the second post.  In tried what he suggested in his last post but that will only export the main rpt, not the sub reports.  According to him my only other option is to export the sub report via code.  That seems like a lot of hassle.  It sounds like I have to just put up with the inconvenience of looking at the rulers indicating that I have a landscape layout on one of my three subreports instead of seeing the correct portrait layout when I'm in the designer. 
    Also, I really wish there was a way to attach screenshots so you could see what I'm referring to, and how annoying this is.  It still feels like a bug to me.  Any suggestions on how I can report this other than via this forum would be appreciated.

  • Single prompt for multiple reports in a webi doc

    I have a webi document with three reports; each three has it's own query.
    I want to apply a date prompt one each report; how do I create a prompt that could accept date value only once and apply on all three queries.
    I tried to put the date prompt on each query separately and it prompts for all three; means I have to enter same date value three times.
    Please advise.
    Thanks

    Hi Ahmed,
    BO differentiate prompts on the basis of its definition.
    You must use the same prompt definition in all the three queries to display it once while asking for the user response:
    @Prompt('Text','A'\'D',{'Class\LOV Object'},mono\multi,free\constrained)
    P.S.  you need to drag it separately in the 3 queries.
    Regards,
    Rohit

  • Fix the coulmn width of main report which contain the sub report( remains white space of extra width)

    Hi,
    I am setting the column width of main report and that column is bounded with the sub report which contain some data.
    But if width is exceeded other than sub report data that width is showing as white space block. 
    It should be showing as normal header in gray shade.
    Please provide the solution for this. see the screen attached.
    Thanks

    Hi Raj,
    According to your description, you want to show the sub report without any white space in the textbox. Right?
    In Reporting Services, when we display a sub report in a textbox, this textbox will always show the whole sub report area. If the textbox is smaller than the report area, this textbox will extend automatically to fit the size of the sub report. Otherwise,
    it will has white space inside of the textbox. And if you have white space in your sub report, it will also be displayed in the textbox. So you may need to adjust the sub report size to make it fitted in main report.
    Reference:
    Subreports (Report Builder and SSRS)
    If you have any feedback on our support, please click
    here.
    Best Regards,
    Simon Hou (Pactera)

  • Default date in reports without prompting in the report

    Hi,
    I am using xcelsius 2008, i have developed a report and it should run on a particular date (current date) without hard coding it in the worksheet. because don't want the user to enter date , and report should run for current date.
    Regards
    Aflal

    Still, you would use Excel formulas. I assume you're passing values to a filter? E.g.
    From date: =now()-365
    To date: =now()
    Or something to that effect.

  • Breaking up Crystal report into e-mailable sub-reports

    First time poster, long time ignoramus...
    The company I work for uses Crystal Reports (version 11, don't judge me) to create our invoices.  The invoices are created as one big report, and then, after printing, we manually separate the pages by customer so that we can mail the invoices appropriately.
    What I would like to do is create the reports in such a way that we can merge them with available e-mail addresses (from a separate program) and e-mail the invoice to the customer.  Not all customers will have an e-mail address on file, and I would still need to print those invoices for which we lack an e-mail address so that they can be mailed. 
    I'm barely skilled with Crystal Reports, but not completely new to it.  Is there a way to configure my current report to reflect these two changes (merge with available e-mail addresses, and print only those invoices that cannot be e-mailed)?
    Thanks in advance for any parsing work you have to make to understand my question, and I will answer any questions you have that might clarify my post as promptly as possible.
    Aaron

    Creating one big report is the start of your problems. E.g.; Dell is correct in that there is no way to take a subreport, merge it with an email address and so on. However, what about creating one small report and in your app passing it what ever parameter you need and loop through for next parameter.
    E.g.;
    Load report
    Connect to a database
    Pass a parameter or selection formula to the report (say customer name)
    Run and email the report (see How to export a report to MAPI destination in VS .NET).
    Do a .Close and .Dispose on the report
    Load report
    Connect to a database
    Pass a new parameter or selection formula
    Also, see KBA: 1295243 - How to export to MAPI using CRYSTALREPORT .NET SDK
    I would also highly recommend updating to CR XI R2 (11.5). See this blog on how to.
    Finally, note that both CR XI and CR XI R2 are out of support and may not support your version of Outlook or what ever email client you are using. E.g.; I'd be leery using Outlook 2007 - but I don't know what CR XI / XI R2 supported.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

Maybe you are looking for