Default Parameters in Crystal Report

Hi all visitors
I have created one crystal report and now i want to set the parameters to my report by using parameters in Crystal Report(  the parameters not from sql).My parameters are datetime datatype. in my report, i create one formula( get date from DocDate field from sql).How can i set the default "Todate" parameter as current date?
Best Regards,

Hi,
So all of the seleciton is done using selecct expert.  They have alot of default values there...but if you go to advanced then you can do much more still.  So if you just want to only use the currentdate then you can just do something like
date({IT_ChangeManagement.Deployment Date/Time}) = currentdate
In the above case there would be no parameters needed and would show the currentdates information. You could of course do a varity of >= or <= using the above method. 
If you want more flexability then you could create a parameter or two . Here is an example.  This is again done in select expert....
if {?Start Date} <= date("01/01/2000") then
date({IT_ChangeManagement.Deployment Date/Time}) = currentdate
else
      {IT_ChangeManagement.Deployment Date/Time} >= {?Start Date} and
      {IT_ChangeManagement.Deployment Date/Time} <= {?End Date}
The above defaults to the current date if the start date is older than 2000, otherwise it uses the start & end date parmeters.
Make sense?

Similar Messages

  • "Date / Date Time" type parameters in crystal reports 2008

    i am using parameters in crystal report to select records. one of the parameters is "From Date" of type Date Time.
    i mapped this parameter to a field "DateIn" of type smalldatetime in my sql table.
    Now, when i open the report it asks for "From Date" but b y default it sets the time to current time so i have to change it to 00:00:00 manually. i want it to show 00:00:00 by default. which means i don't want time here.
    For this if i select the datatype of parameter "From Date" as Date only then i am not able to map it to the "DateIn" field of the sql table.
    Please help me out of this.
    Edited by: rohit0825 on Jun 2, 2010 2:25 PM

    >
    Deepravs wrote:
    > Hi Rohit,
    >
    > Change the Parameter to Date Datatype and use this formula in the "Record Selection Formula " (Report Tab -> Selection Formulas -> Record)
    >
    > = CDateTime ({?From Date})
    >
    > Though the parameter is date datatype it converts to datetime datatype amd maps to the desired column.
    >
    >
    > Thanks,
    Great !!!
    this is working.
    i found another way, i changed the datatype of parameter to Date and click ok and everything was good, it doesn't require any conversion to date time.
    Thank You so much. All Points You.
    Edited by: rohit0825 on Jun 3, 2010 10:47 AM

  • PASSING PARAMETERS TO CRYSTAL REPORTS THRU FORMS!

    Hi! all,
    Is there someone who passed parameters to crystal reports from
    forms 5.0?
    The problem is when I call the report executable from the form,
    its giving a login prompt again which is not desirable as @ this
    stage the user has already logged in once. So is there a way to
    pass this as a parameter to crystal or may be any better way???
    Thanx for the solution,
    Hima
    null

    First make sure you are on SP 3:
    https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe
    SP 3 msi     
    https://smpdl.sap-ag.de/~sapidp/012002523100007123592010E/cr2008sp3_redist.zip
    SP 3 msm     
    https://smpdl.sap-ag.de/~sapidp/012002523100007123582010E/cr2008sp3_mm.zip
    Have a look at [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]
    (The above does apply to your version of CR also)
    Have a look at the samples:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    And look at the Developer Help file:
    http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm
    And don't forget to use the search box at the top right corner of this web page. It will bring up KBases, blogs, wikis, articles and more. Searching these forums is also a good idea.
    - Ludek

  • Creating List of Values for Parameters in Crystal Report

    Dear All,
    I have created a Report using Crystal Report XI and integrated that with VB Dot Net.  It uses a Stored Procedure (SQL 2000) to retrieve data.  The stored procedure has some parameters.  When I run the VB dot net exe, it prompts for the parameters.  However, I like to pass a List of Values to the Parameters, which the end user must select from the same.
    How can I create a List of Values and attach to the Crystal Report.
    Please help me in this regard,
    Naren.

    Are you trying to set a bunch of default values (e.g.; 1st name, last name, address, order number, etc.), or an actual List of Values?
    Also, remember to search the forums for possible solutions. When I enter "parameter" in the search box, I get over 7 pages of links...
    The [notes|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true] database and [articles|https://www.sdn.sap.com/irj/sdn/businessobjects-articles] are great information resources also.
    Oh, and confirm exact version of CR used.
    Ludek

  • How do send to call on Infoview programated parameters did Crystal Reports

    Hi
    I created some reports in Crystal Reports 2008 that have parameters, these reports function fine, but when I try to view them on Infoview, my reports still appear all the information without requiring all the program parameters.I have done the following steps to try solve that, but the problem contnues:
    1. connect to the Central Management Console (CMC)
    2. open the properties of my report
    3. expand Default Settings and click on Parameters link
    4. I checked "Prompt when viewing"
    I´m using Business Objects 13 and Crystal Reports 2008
    Do you have another solution?
    Thanks in advance

    Hi,
    please open the report in the CR designer und go to File. Unselect there the Save data with report option and save the report again in the BOBJ repository.
    Regards,
    Stratos

  • How to Pass parameters to Crystal report 10 based on Oracle Stored Procedur

    Hi,
    I use the following code to pass the parameters:
    Rep.Tables[0].ConnectBuffer := Connection_Str;
    Rep.Tables[0].AliasName := 'REP';
    Rep.Connect.Propagate := True;
    Rep.ParamFields.ByName('Lang', '').CurrentValue := IIF(BiDiMode = bdRightToLeft, '2', '1');
    Rep.ParamFields.ByName('SESSION_ID', '').CurrentValue := IntToStr(Session_id);
    Rep.WindowState := wsMaximized;
    Rep.Show;
    The 1st parameter 'Lang' which created from crystal report pass well,
    but the 2nd parameter 'SESSION_ID' which created from Oracle Stored Procedures give the following Error:
    Error: 202 Parameter Name could not be found u2013 ParamFields.ByName
    However in MS SQL Server the above code work fine with the 2 Parameters.
    Any one has solution,

    Hello,
    Click on the businessobjects Tab above and then select Samples and dowload the sample app you for your SDK. There are a few samples for changing/setting Parameters.
    The Parameter collection has all parameters.
    Thank you
    Don

  • Dynamic Parameters in Crystal Reports

    Post Author: Suresh Babu
    CA Forum: General
    Hi,
    Iam working in Business Objects Crystal Reports XI.
    I faced a problem when dealing with the multi value parameter.
    Iam taken a parameter it allows to choose multiple values from user.
    after selecting the values how to send these values to stored procedure.
    if iam selecting one value it retrieves the data perfectely. But if we select more than one value it does not retrieves any rows.
    ex: iam taking a parameter name @AlgorithmCode
    if iam select AlgorithmCode it retrieves the the data, if iam select more than on e AlgorithmCodes as  parameters its not working.
    If any one knows please help out.
    Thanking You
    Suresh Babu

    Hi,
    assuming all what you are using in the Crystal Report are tables using the OpenSQL connection (Table, ..) then you should be able to create the parameters as dynamic in Crystal Reports.
    Ingo

  • Date Span - Validation for start and end date parameters in Crystal reports

    Hi,
    I am new here and am unsure if this is the right place to post this issue. If so, I apologize for that.
    I am working on Crystal Reports 12 and don't know if it is possible; to validate the parameters - Start Date and End Date are within a specific span of time. For Eg. Start Date and End Date should be within 6 months or Start Date should be a future date.
    Can we prompt that parameters entered are invalid and have users re-enter it?
    I will really appreciate any help into this issue.
    Thanks Much,
    RP

    Hi,
    Well, it is not possible to validate the date/datetime values in the prompt window, however there are other alternatives.
    One of them is to create an Alert with the condition:
    datediff("m",Minimum({?DateParameter}),Maximum({?DateParameter})) > 6
    //This is to check if the start date and the end date are within 6 months
    Another way of doing this is by displaying a message on the Report Header and suppressing all other sections if the date range values do not meet the condition.
    Hope this helps!
    -Abhilash

  • Problems using Dynamic parameters with Crystal Reports and SBO 8.8

    Has anyone been able to successfully use a dynamic parameter in Crystal Reports with 8.8 using the Business One connector? When we try we get an additional logon to the database that pops up and the logon fails.
    We need this because we want to return live lists of PO documents from the server for selection. We are also trying to use nested dynamic parameters, because we want to first return the PO document based on the PO number, and then chose specific rows based on a field value in POR1.
    It works if we don't use the Business One connector, but then the report doesn't function properly inside of SAP.
    Any ideas would be appreciated.

    I have tried using tokens but they are too simple. I need something like a subselect where you first select one value and then another that is a subset of those values. Apparently the tokens can't even use a "where" clause.
    SAP dances around Dynamic parameters, but won't come out and say that they can't be used with the B1 connector. If that is the case then they should just say so and stop wasting our time. Apparently Crystal is not truely interfaced with B1, just sort of hanging out with it.
    I don't really care other than I have to do this select, subselect. If someone has a way to do that with tokens I would love to hear it.
    Thanks,
    Roy

  • Passing Parameters to Crystal Report

    Dear all,
    I wonder if anybody has tried out the crystal report bundled with workshop
    in SP2.
    I got some problems when I try to pass a parameter from a jsp in workshop to
    crystal report according to part 4 of tutorial in the Crystal Reports for
    BEA Weblogic workshop Developer's guide.
    This message show in the web browser:
    com.crystaldecisions.report.web.viewer.CrystalReportViewer
    Some parameters are missing values
    However, the report viewer works fine in workshop if I am not passing
    parameters.
    If anyone has successfully setup a report which involves parameter passing
    in workshop, I would appreciate you can share the tricks how to make it
    work.
    Thanks!
    Orion Yiu

    Hi Orion,
    I have the same issue like the one you sent to bea helpdesk . Please, if you got any positive response on that issue. Need help. Thanks you for you time.
    Abdellah

  • Passing parameters to Crystal Reports 2008; C#

    Hi,
    we are developing a .NET C# application and would like to call a Crystal Reports document (version 2008) from there passing some parameters.
    So we will build the Crystal reports with the necessary parameters - however, how can I pass them from our C# application? The Crystal reports will be stored locally.
    Thanks!

    First make sure you are on SP 3:
    https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe
    SP 3 msi     
    https://smpdl.sap-ag.de/~sapidp/012002523100007123592010E/cr2008sp3_redist.zip
    SP 3 msm     
    https://smpdl.sap-ag.de/~sapidp/012002523100007123582010E/cr2008sp3_mm.zip
    Have a look at [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]
    (The above does apply to your version of CR also)
    Have a look at the samples:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    And look at the Developer Help file:
    http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm
    And don't forget to use the search box at the top right corner of this web page. It will bring up KBases, blogs, wikis, articles and more. Searching these forums is also a good idea.
    - Ludek

  • Parameters in Crystal Reports on SAP B1 Mobile App

    Hi there everyone.
    I have succesfully installed the SAP B1 Mobile application en connected to our server. After setting some Crystal reports visible for mobile I came to the conclusion that simple reports are displayed correct in the mobile app, but when a parameter is set, the report will not show. Anyone have experience with this?
    Kind regards,
    Andy

    Up!

  • How does Report side parameters in crystal report be processed?

    Post Author: gunner
    CA Forum: General
    I have modifed the crystal report to improve the performence timing by tuning the query. I have modified the query for the better performence (basicaly tuned the query). Data is exactly matching with the old version but the problem is the sort order is totally diffrent.
    Old query and the new query both have tha same group by fields. On the report side there is no group by nor sort on any field.
    The modification i have done on the query are
    Restructure the query
    Moved two report side parmeter to query side
    Fetched few old columns form new tables ( i.e. tables which were not previously used in the query)
    Please let me know what could be the reason for this?

    HI..
    Create a Dynamic parameter with first field and in the same parameter select the second field also.  It means you are creating a dynamic cascading paramenter.  It will thake the second field values based on first field.
    Thanks,
    Sastry

  • Default save folder Crystal Reports XI

    How can I change the default location for saving reports please?

    Barry,
    Is this what you looking for? [Article how to change location|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313336333733323331%7D.do]

  • Default Parameters in SQL Report will not be set

    Hi there,
    I'm currently working on a repor twhere I created some Parameters. My Problem is that for some particular Parameters the Default value are not set automatically as in other Parameters. What am I missing? The data are out of a SharePoint list and they are
    all stringvalues. Because of the issueI always receive the following error message
    Parameter validation failed. It is not possible to provide valid values for all parameters. (rsParameterError)
    Thanks in advance for your help

    Hi Spätzel,
    According to the current description, I want to know how to set particular parameters for their Available Values and Default Values, and whether they are hidden parameters. Additionally, I would like to confirm which edition of Reporting Service you are using.
    Based on my research, hidden parameters with defaults or dependent on previous parameters don't automatically recalculate after applying 2008 SP2. In this case, the behavior is a known issue. We can resolve it through upgrading to 2008 SP2 CU5 or 2008 R2 RTM
    edition.
    Hope this helps.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

Maybe you are looking for

  • Want to delete more than one song at a time

    I need to download the new ios 8.1.1 but don't have enough memory on my ipad. I would like to delete the songs on my ipad (school issued) without deleting songs in the cloud. I would also like to delete more than one song at a time. How can I do this

  • IAS Policy with Pix

    I have a pix 501, with vpn users authenticating off of MS 2000 IAS. Works great although I want to filter a few users to only be able access a couple PC's when they come in through the pix. I created a new group on NT called Vendors, added the users

  • Creating a GUI in netbeans

    If anyone can help it would be so GREAT! I am trying to create a GUI, which can import two programs off my desktop into two frames on the GUI. If possible does anyone knows how to do it? Basically my GUI is used in terface and see two differnt progra

  • Aperture's Rendering of NEF Files

    This might be a very elementary question, but where does Aperture get the RAW fine tuning settings to apply to NEF Files? I shoot with a Nikon D90 and shoot both NEF and JPEG. I usually import both into Aperture, with the NEF as Master. I know some s

  • Latest update, 10.5, thinks my iPhone and iPad are still connected and self launches. Help?

    Since updating to 10.5, iTunes self launches and shows bothmy iPad and iPhone as connected when they're not. Any help would be appreciated.