Parameter Prompting Dialog

<p>Is it possible to instantiate and display the Parameter PromptingDialog from .Net code. If yes then how to do it.</p><p>Regards Sreeni</p>

Weird, but I just responded to this but it didn't save my response!
Anyways, the quick response was that the parameter prompt dialogs are intended to be used internally by the viewer.  If you want to prompt the user for params without having to use the viewer, you can create your own prompt page and use the SDK to set the values for the parameters.
-MJ

Similar Messages

  • Parameter Selection Dialog Prompt Issue

    When using the CR2008 and do a export in C#, the Parameter Selection Dialog Prompt is not prompted.
    How can I show the Parameter Prompt DIalog when in export in C#??

    HI,
    First of all, upgrade the reports to CR2008. For this open the reports in designer, re map/upgrade the fields/tables using set Datasource location option, preview the report(to make sure we are getting proper data) and then save them. Once the report works ok in development environment move them to the production machine.
    Through code you can use the ReportDocumentObject.SetParameterValues(name of parameter, value) and pass the parameter value to the report.
    Also please remember that we need to pass the parameter before exporting a report.
    CR9 is a very old product and CR2008 have got a lot of new features added in them, most of them were for users benefits. Please visit [this|Articles] for more information on different products.
    [Samples|https://www.sdn.sap.com/irj/boc/samples] may be helpful too.
    Regards,
    AG.

  • Sub report parameter prompt appears when running Visual Studio 2008 with Crystal Reports 2008

    Post Author: relliott
    CA Forum: .NET
    If I build a simple Crystal Report that contains another simple Crystal Sub Report, the report will print preview fine in Crystal 2008.  The problem happens when add this report to a Visual Studio 2008 Web Application Project and I build and debug the application, the Crystal Viewer is prompting the user for the parameter used to link the sub report to the main report.  This should never happen as the user is not supposed to see this parameter.  If I type in some value for this sub-report parameter prompt, the Crystal Report Viewer gives an error message about not finding the field.
    I was having the same problem in Vs2005 with Crystal 10 which is why I upgraded.  Business Object's official fix for this problem was published under their KB article number c2018840 and c2019047.  These hot fixes ended up causing general exception errors in Visual Studio so I scrapped these solutions.
    Support had me install SP0 for Crystal 2008 (which did not fix it).
    Any ideas?
    Any help is greatly appreciated.
    Thanks,
    Rich Elliott

    Hi Bontrager,
    Thank you for posting in MSDN forum.
    According to your description, I agree with pvdg42's suggestion, so I suggest you can try pvdg42's suggestion to install the version of
    Crystal Reports 10.5 to check this issue again.
    Reference:
    http://forums.asp.net/t/1236730.aspx?Which+CR+version+is+in+Visual+Studio+2008+
    In addition, since this forum is
    to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor. So if you have any issue about the
    Crystal Reports, I suggest you can ask the issue to the
    SAP Crystal Reports website:
    http://scn.sap.com/community/crystal-reports/content?filterID=contentstatus%5bpublished%5d~objecttype~objecttype%255bthread
    as pvdg42 pervious suggestion, it will be better support.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can avoid the  problem of Parameter Prompting when I submitting ?

    I am developing web application in visual studio 2008 in csharp.How can avoid the issue or problem of  Parameter Prompting when I send parameters programaticaly or dyanmicaly?  I am sending the values from .net web form to crystal report but it is still asking for parameters. so when i submit second time that is when the reports is being genereated. How can i solve this problem. Please help. The code Iam using is below.
       1. using System; 
       2. using System.Collections; 
       3. using System.Configuration; 
       4. using System.Data; 
       5. using System.Linq; 
       6. using System.Web; 
       7. using System.Web.Security; 
       8. using System.Web.UI; 
       9. using System.Web.UI.HtmlControls; 
      10. using System.Web.UI.WebControls; 
      11. using System.Web.UI.WebControls.WebParts; 
      12. using System.Xml.Linq; 
      13. using System.Data.OleDb; 
      14. using System.Data.OracleClient; 
      15. using CrystalDecisions.Shared; 
      16. using CrystalDecisions.CrystalReports.Engine; 
      17. using CrystalDecisions.Web; 
      18.  
      19.  
      20. public partial class OracleReport : System.Web.UI.Page 
      21. { 
      22.     CrystalReportViewer crViewer = new CrystalReportViewer(); 
      23.     //CrystalReportSource crsource = new CrystalReportSource(); 
      24.     int nItemId; 
      25.  
      26.     protected void Page_Load(object sender, EventArgs e) 
      27.     { 
      28.         //Database Connection 
      29.         ConnectionInfo ConnInfo = new ConnectionInfo(); 
      30.         { 
      31.             ConnInfo.ServerName = "127.0.0.1"; 
      32.             ConnInfo.DatabaseName = "Xcodf"; 
      33.             ConnInfo.UserID = "HR777"; 
      34.             ConnInfo.Password = "zghshshs"; 
      35.         } 
      36.         // For Each  Logon  parameters 
      37.         foreach (TableLogOnInfo cnInfo in this.CrystalReportViewer1.LogOnInfo) 
      38.         { 
      39.             cnInfo.ConnectionInfo = ConnInfo; 
      40.  
      41.         } 
      42.  
      43.  
      44.  
      45.  
      46.  
      47.  
      48.         //Declaring varibles 
      49.          nItemId = int.Parse(Request.QueryString.Get("ItemId")); 
      50.         //string strStartDate = Request.QueryString.Get("StartDate"); 
      51.         //int nItemId = 20; 
      52.         string strStartDate = "23-JUL-2010"; 
      53.  
      54.         // object declration 
      55.         CrystalDecisions.CrystalReports.Engine.Database crDatabase; 
      56.         CrystalDecisions.CrystalReports.Engine.Table crTable; 
      57.  
      58.  
      59.         TableLogOnInfo dbConn = new TableLogOnInfo(); 
      60.  
      61.         // new report document object 
      62.         ReportDocument oRpt = new ReportDocument(); 
      63.  
      64.         // loading the ItemReport in report document 
      65.         oRpt.Load("C:
    Inetpub
    wwwroot
    cryreport
    CrystalReport1.rpt"); 
      66.  
      67.         // getting the database, the table and the LogOnInfo object which holds login onformation 
      68.         crDatabase = oRpt.Database; 
      69.  
      70.         // getting the table in an object array of one item 
      71.         object[] arrTables = new object[1]; 
      72.         crDatabase.Tables.CopyTo(arrTables, 0); 
      73.  
      74.         // assigning the first item of array to crTable by downcasting the object to Table 
      75.         crTable = (CrystalDecisions.CrystalReports.Engine.Table)arrTables[0]; 
      76.  
      77.         dbConn = crTable.LogOnInfo; 
      78.  
      79.         // setting values 
      80.         dbConn.ConnectionInfo.DatabaseName = "Xcodf"; 
      81.         dbConn.ConnectionInfo.ServerName = "127.0.0.1"; 
      82.         dbConn.ConnectionInfo.UserID = "HR777"; 
      83.         dbConn.ConnectionInfo.Password = "zghshshs"; 
      84.  
      85.         // applying login info to the table object 
      86.         crTable.ApplyLogOnInfo(dbConn); 
      87.  
      88.  
      89.  
      90.  
      91.  
      92.  
      93.         crViewer.RefreshReport(); 
      94.          
      95.                 // defining report source 
      96.         crViewer.ReportSource = oRpt; 
      97.         //CrystalReportSource1.Report = oRpt; 
      98.          
      99.         // so uptill now we have created everything 
    100.         // what remains is to pass parameters to our report, so it 
    101.         // shows only selected records. so calling a method to set 
    102.         // those parameters. 
    103.      setReportParameters();  
    104.     } 
    105.  
    106.     private void setReportParameters() 
    107.     { 
    108.       
    109.         // all the parameter fields will be added to this collection 
    110.         ParameterFields paramFields = new ParameterFields(); 
    111.          //ParameterFieldDefinitions ParaLocationContainer = new ParameterFieldDefinitions(); 
    112.        //ParameterFieldDefinition ParaLocation = new ParameterFieldDefinition(); 
    113.         
    114.         // the parameter fields to be sent to the report 
    115.         ParameterField pfItemId = new ParameterField(); 
    116.         //ParameterField pfStartDate = new ParameterField(); 
    117.         //ParameterField pfEndDate = new ParameterField(); 
    118.  
    119.         // setting the name of parameter fields with wich they will be recieved in report 
    120.        
    121.         pfItemId.ParameterFieldName = "RegionID"; 
    122.  
    123.         //pfStartDate.ParameterFieldName = "StartDate"; 
    124.         //pfEndDate.ParameterFieldName = "EndDate"; 
    125.  
    126.         // the above declared parameter fields accept values as discrete objects 
    127.         // so declaring discrete objects 
    128.         ParameterDiscreteValue dcItemId = new ParameterDiscreteValue(); 
    129.         //ParameterDiscreteValue dcStartDate = new ParameterDiscreteValue(); 
    130.         //ParameterDiscreteValue dcEndDate = new ParameterDiscreteValue(); 
    131.  
    132.         // setting the values of discrete objects 
    133.          
    134.  
    135.           dcItemId.Value = nItemId; 
    136.          
    137.         //dcStartDate.Value = DateTime.Parse(strStartDate); 
    138.         //dcEndDate.Value = DateTime.Parse(strEndDate); 
    139.          
    140.         // now adding these discrete values to parameters 
    141.           //paramField.HasCurrentValue = true; 
    142.  
    143.        
    144.  
    145.           //pfItemId.CurrentValues.Clear(); 
    146.          int valueIDD = int.Parse(Request.QueryString.Get("ItemId").ToString()); 
    147.           pfItemId.Name = valueIDD.ToString();  
    148.            
    149.         pfItemId.CurrentValues.Add(dcItemId); 
    150.         //ParaLocation.ApplyCurrentValues; 
    151.         pfItemId.HasCurrentValue = true; 
    152.         
    153.         //pfStartDate.CurrentValues.Add(dcStartDate); 
    154.         //pfEndDate.CurrentValues.Add(dcEndDate); 
    155.  
    156.         // now adding all these parameter fields to the parameter collection 
    157.         paramFields.Add(pfItemId); 
    158.          
    159.         //paramFields.Add(pfStartDate); 
    160.         //paramFields.Add(pfEndDate); 
    161.         ///////////////////// 
    162.         //Formula from Crystal 
    163.        //crViewer.SelectionFormula = "{COUNTRIES.REGION_ID} = " + int.Parse(Request.QueryString.Get("ItemId")) + ""; 
    164.         crViewer.RefreshReport(); 
    165.         // finally add the parameter collection to the crystal report viewer 
    166.         crViewer.ParameterFieldInfo = paramFields; 
    167.         
    168.          
    169.      
    170.     } 
    171. }

    Keep your post to under 1200 characters, else you loose the formatting. (you can do two posts if need be).
    Re. parameters. First, make sure yo have SP 1 for CR 10.5:
    https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe
    Next, see the following:
    [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]
    CR Dev help file:
    http://msdn2.microsoft.com/en-us/library/bb126227.aspx
    Samples:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • CR 2008 - Optional parameter prompts

    Hi!
    I sometimes use Optional parameter prompts in Crystal Reports 2008.
    The main reason is to minimise user input in Selection Criteria Screen.
    I have many subreports, and not all prompts are needed for all subreports.
    If the user leaves the prompt blank, then a formula will set a default value for the user.
    I usually put the optional prompt at the top, so that user needs only fill prompts at the bottom.
    Here is an example:
    I have a parameter field called "PreferredSortOrder"
    The Edit screen reads as follows:
    Type: String
    List of Values: Static
    Value:
        Original Order
        Description
    Value Options:
    Show on (Viewer) Panel           : Read Only
    Prompt Text                              : Preferred Sort Order [Optional]
    Prompt With Description Only  : True
    Optional Prompt                        : True
    Default Value                             :
    Allow custom values                 : False
    Allow multiple values                 : False
    Allow discrete values                 : True
    Allow range values                     : False
    Min Length                                  :
    Max Length                                  :
    Edit Mask                                   :
    Show value or Description        : Show Value
    My report works perfectly, even if I leave the parameter field blank
    I now add another parameter field called "WhichWarehouse"
    with exactly the same values as above.
    When I run the Crystal Report, I get this message;
    Error running Crystal Reports
    The report runs only if I type a value in the "WhichWarehouse" prompt
    (The "PreferredSortOrder" prompt remains blank)
    I did exactly the same as before. Why does the 2nd optional parameter not work like the first?
    What has gone wrong?
    Thank you
    Leon Lai
    JUST ADDED
    I just noticed that in the Field Explorer,
    (a) There is a green TICK near the parameter PreferredSortOrder
    (b) But no green Tick neat the parameter "WhichWarehouse"
    What does the green tick mean?
    Could this be the key to the mystery?

    Hi Leon,
    No green tick means that the prompt has Not been used in the report.
    If the report has Subreports, and if the subreport also has a 'warehouse' prompt then it could be this prompt that is causing the issue. You should link both the warehouse prompts to make sure you're only prompted once.
    -Abhilash

  • Dynamiclaly determine the need of parameter prompt? (CR8.5)

    Hi,
    I'm wondering if it's possible to have cr8 decide if a parameter is needed.
    I have a report, its an invoice template that has some graphics that display depending on a selected parameter.
    The graphics are generally only used when a copy invoice or credit is needed - otherwise the user selects 'plain' and the invoice prints with no graphics.
    The document type is determined by the database field DOC_TYPE which would be 'CIV' for copy invoice or 'CCR' for copy credit - otherwise 'INV' or 'CRN'
    Is it possible to specify that, if the doc_type is 'CIV' or 'CCR' then prompt for graphics if not, no parameter prompt - show/print the plain report.
    The reason for this is that, when invoices are raised, they are raised in batches and it would be inpracticle to stop and choose a parameter for each invoice - these invoices are all printed on headed paper, therefor - graphics are supressed.
    The graphics are only shown when a customer requests a copy invoice and we then send out a pdf generated from the report with graphics shown

    Please re-post if this is still an issue or purchase a case and have a dedicated support
    engineer work with your directly

  • Parameter Prompt, additional line being displayed

    When viewing report in Crystal Report XI, which was developed in earlier version of Crystal Report, an additional Parameter Prompt Text is displayed.  Then opening report in version of Crystal report developed in text is gone. 
    In Crystal Report XI Prompt Text is displayed as:
         Enter desired Ending Cleared Date for report display:
         Please enter date in format u201Cyyy-mm-ddu201D
    In Crystal Report 8.t Prompt Text is displayed as:
         Enter desired Ending Cleared Date for report display:
    Where is this text coming from, and how can it be removed?

    Because this is a date field, the report is looking for data formatted as:  MM-DD-YYYY
    But the Prompt is:
    Enter desired Ending Cleared Date for report display:
    Please enter date in format u201Cyyyy-mm-ddu201D
    This is really confusing our end users.  When they manually enter the data as the prompt is telling them (yyyy-mm-dd), they get a bad date error message.
    Is there a way to make this extra line of prompt text match the date format needed by the report?
    Edited by: Barbara Miller on Jul 16, 2008 12:03 AM

  • Cant get Parameter prompting in Report Viewer XI

    Post Author: jt327
    CA Forum: Crystal Reports
    Hi All,
    I am relatively new to crystal, so this may be a stupid question..
    I have created a report in Crystal Reports 10, and it all works fine in Crystal itself. However, when I try to run the report in Reports Viewer XI, I dont get the parameter prompts. Instead it just uses the default values.
    Anybody know how I can get this working?
    Thanks.

    Post Author: bchu
    CA Forum: Crystal Reports
    If you are referring to Crystal Reports Viewer XI, then it only supports viewing saved data report only, so there will be no database logon prompting and no parameter prompting.
    - Ben

  • Combine Subreport Parameter Prompt

    Post Author: Leanne
    CA Forum: General
    Good morning,
    I have a report with multiple subreports that print based on the main report parameters.  For instance, one subreport will print if the main report references a Project ID, in which case the other subreport (based on EnrollmentID) will be suppressed.
    The two subreports have similar information based off of different tables and as such have two parameters that are identical.  The two parameters are a type of currency and simply print values on the report.
    My question is, how do I 'combine' the parameters that are the same so the user is prompted only once for the value?
    The strange thing is I've done this before - even had it working on this report last year, however am now adding another currency field and the parameters are appearing twice in the list.  I have a screen shot of the parameter prompt if you'd like to see what I'm referring to.
    The parameters on both subreports are named identical and the Parameter description is identical.  How can I combine these parameters to result in the user being prompted only once?
    Thanks so much for your help!
    Leanne

    Post Author: Leanne
    CA Forum: General
    Thanks for the reply!
    I am also using Crystal XI however I can't seem to find a reference to 'Update Links'.  Can you be more specific?
    Thanks again,
    Leanne

  • Size of parameter prompt

    Hi,
    How can I increase size of parameter prompt...??

    The only thing you can increase on the parameter panel is the 'horizontal' size or width.
    The workaround involves increasing the 'width' property in the promptengine2.css file.
    Do remember however, that this works only for the CR Designer, as far as I know, and the properties are all reset when you apply a new Service Pack.
    There is no property that can increase the vertical size of the window. Please post this as an Enhancement at the Crystal Reports Idea Place and post the URL to the idea here for us to Vote.
    -Abhilash

  • Hide the prompt dialog

    Hi,
    I am using relational universe (Oracle) as data source for my design studio 1.3 application. I want to pass the universe prompt value from Design Studio drop down component. Here is my code in Application on startup event:
    APPLICATION.setVariableValue("psEnter Market Basket ID", "3"); //prompt from universe
    DS_1.loadDataSource();//loading data source
    But still I am getting prompt dialog box to enter/select the prompt values. I need to hide the prompt dialog and pass the value in my code. Can anyone please help on this.

    I have not done this with universes, but with BEx Queries I think you need to put the "APPLICATION.setVariableValue("psEnter Market Basket ID", "3"); //prompt from universe" statement in the "On Variable initialization" event (not in the "On Startup" event)...

  • Parameter Prompt when print only

    In the past we used the RDC to run reports within our application. When a user selects a report to run they have the option to preview or print it. No matter which option they chose the Crystal Parameter prompt screen would be displayed so they could enter the appropriate values. Then of course the report would run and either be printed directly to the printer (if chose print) or displayed in a viewer (if chose preview). We have recently switched to using CR2008. We have the preview working like before but not the print option. I'm thinking we are just missing something. If we choose print then the parameter prompt screen from crystal never shows and therefore the user is unable to enter values and report fails. How do you get crystal display the parameter prompt screen when not using a viewer?

    There is no RDC in CR 2008 so I assume you are using VS 2008 and CR .NET Assemblies.
    Look at these samples for more options:
    Root Page
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsHome
    Enterprise Samples (including managed and unmanaged ras)
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications
    Non-Enterprise Samples
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
    Exporting Samples (RAS)
    http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting
    Also, use the ReportClientDocument.Refresh before making changes to the report to clear reports with saved data and then it will prompt for parameters.
    Thank you
    Don

  • Click on calendar control in parameter prompt of viewer gets Jscript error

    Within SAP supplied CrystalViewer.  VS2008 web app, XIR2 Crystal Server, 11.5.3700 or 11.5.3300 libraries.  Although not a forum favored combination of tools, everything seems to work except calendar control within parameter prompts.
    IUSER_(machine name) or everyone has read and execute access for directory and subdirectories via IIS and Windows file system (suggestion from a more general problem post).
    I am able to fill in the date parameter text box and all works well.  Calendar icon properly displays to right of text box but it is followed on subsequent lines by :
    Business Objects X
    i
    i
    within the individual parameter box.
    Click on calendar icon to allow pick of date from calendar causes Jscript error.
    alan

    Hi Jonathon,
    Thank you for your quick response.  Response to you questions follows.
    Q:Does it work anywhere? 
    A:It doesn't work on any date parameter when executed in VS project.  (It does work with Crystal Developer XIR2 client.)  I am only using the viewer - not designing report within project.  Given that, can you suggest a test for calendar control outside of parameters to answer this question?  Sorry for my ignorance.
    Q:It is likely the combination of CR 2008 / XI R2 is not playing well, as you've indicated - they are not meant to. It could be missing runtime files causing issues. Is the CR 2008 runtime installed on the server as well, or only the XI R2 runtime?
    A: We have VS2008 but not CR2008 which is what I think you meant.  With VS2008 installed on development workstation accessing remote XIR2 server objects, a web app running on workstation has problem with calendar.  I am out of my league, but I am thinking the execution of a calendar control for a parameter would not need to call any Crystal libary which might mess things up, but the call is coming from an 11.5.3700 viewer which may be making the wrong call for a VS2008 base library that handles calendar control.  But, I am hoping instead that the problem is that it cannot find something it needs or that it does not have proper access to that something (which has been the cause of all the other problems I have solved).
    alan

  • Custom Prompts Dialog

    We are running BOXI 3.1 SP3 Java, and we have an application that includes the Analytical Reporting and OpenDoc war files to display webi reports in our own portal. We would like to customize the prompts dialog to do advanced date handling and more powerfull cascading prompts.
    Is there a way to replace the existing prompt dialog with our own page using Extension Points? We don't need to change any other part of the webi report viewer, so I really don't want to have to create a full SDK solution for viewing reports. Plus it would be nice to not have to hack the Analytical Reporting code so when new service packs come out we can upgrade without having to worry about our changes. Has anyone done this?
    Thanks
    Tim

    Yeah, I know that using Extension Points is not supported unless you are a SAP Partner. However, it makes more sense to use extension points then to try to hack the webi code. Completely re-writing our own version of the interactive viewer seems to be extreme overkill just so we can have custom prompt handling. I really got my hopes up when I started reading about Extension Points as they seem the perfect way to handle this type of task. Simply write a new module for just the functionality you need and plug it in. Too bad it doesn't seem to be anything but a hobby side project for SAP.
    Does anyone know if Extension Points will be upgraded with the new version of BO due out next quarter?
    Tim

  • How to popup a prompt dialog when closing IE?

    Hello,every one
    How to popup a prompt dialog when closing IE by clicking the "Cross"(close) of the left-up corner?
    can you give me any suggestions?
    Thnak you!
    zhongboqing

    hi,everyone,
    I am wrong. It should be:
    How to popup a prompt dialog when closing IE by clicking the "Cross"(close) of the right-up corner?
    thank you!

Maybe you are looking for

  • Cannot install HP support assistant after upgrading to windows 7 error 1316

    After upgrading to Win 7 from Vista I am unable to install the HP support assistant.  First I get this error:  Error 1316 The specified account already exists.  After clicking OK I get the following error msg:  Error: -1603  Fatal error during instal

  • Is theRe a. Way to put my own dvd movies on my iPod youch

    Is there a way to put my own DVD movies on my iPod touch?

  • Framemaker 8 to PDF

    Hi, In my current project, I need to design a page , which when I open in Acrobat PDF version, shows links to all the user guides. Consider that I have three user guides which are contained in three separte books. In other words, I have three book fi

  • Networking mac 10.39 to windows XP

    I am running mac os 10.39 and can connect to my pc running windows XP. I can see all of the files on the pc from the mac when connected. However when I try to copy files from mac to pc it shows 'a server you are using is no longer available. Do you w

  • Odd problem with display in 9.2.2

    Hey, I just bought an older Apple lcd display (A1038). I use it with a G4 A/V tower. This Apple cinema display works great at the higher resolutions in OS X (10.2.8) and only works at the lowest resolution (640X480 - no other choices given)) in OS 9.