Select Date Parameter in Crystal Report

Select fields Customer number ,Part code, transaction date, and sales amount from a table by month for a report . Report to run LastFullMonth.
However, need to include a date that lists the first time a customer bought the part previous to and including the LastFullMonth.
The date field in the table includes all transaction dates.
Can this be done on the same report?

Add an SQL Command something like (MS SQL):
select customer, part, min(salesdate) as FirstSale
from invoice_detail
group by customer, part
and link it to the other tables in your query.
HTH,
Carl

Similar Messages

  • Optional Prompt for Date type parameter in Crystal Report.

    Hi Every One,
    I have a date type parameter in crystal report.When I am convert it to optional prompt it is showing following message.
    But the Type field is gray out when I was selecting list of values Dynamic.
    Please suggest.
    Thanks and Regards
    DEV

    Hi,
    Please check SAP note:
    1710595 - CR_Defining "Optional Prompt" as True for SAP Crystal
    Reports Does Not Work
    Thanks & Regards,
    Nagarajan

  • Writing and including our own customer data source to Crystal Report Design

    Hi,
    I need to create a Crystal Report based on a locally stored XML and schema. I can do this but the issue Iu2019m facing is that some tags used in the schema and the format is not supported by Crystal. So my plan is to write a database driver which will take our format and then convert it to the format Crystal supports and vise versa. To do this before writing the driver I need to know if itu2019s possible to include my custom database driver source in to the list that is shown in the Crystal Report Designer when selecting a data source to create a report.  Is there such an API available so that I can plugin my data source to Crystal Report Designer? Is this at least possible to do or is there another way?
    Hope you can help me.
    Thanks you in advance.
    Regards,
    Chanaka

    Hi Chanaka,
    Not directly. If you base your driver on OLD DB or ODBC then it will show up in those lists.
    If you are planning on selling a lot of packages then you may want to contact our OEM Sales team and sign up. You'll have more resources to do customized features like this. Not sure if we can but the option is there.
    Thank you
    Don

  • How Do I Display HTML Formatted Text From A Data Table In Crystal Reports?

    I'm creating reports in Crystal XI.  The information being displayed in the reports comes from data tables where the text is formatted in HTML.
    I've worked with Crystal Reports enough to know that HTML text pulled from a data table doesn't appear in Crystal the same way it does in a web browser.  Crystal Reports ignores all the tags (...unless I'm missing something...) and just displays the text.
    Someone far more Crystal savy than I (...who I don't have access to...) came up with a Formula Field workaround that tricks Crystal Reports into displaying some basic HTML tags.  Here's that workaround:
    <!--
    stringVar TableName := ;
    TableName := Replace (TableName, "<ul>","<br> <br>");
    TableName := Replace (TableName, "<li>", "<br>   &bull; ");
    TableName := Replace (TableName, "</li>", "");
    TableName := Replace (TableName, "</ul>","<br> <br>");
    TableName := Replace (TableName, "<a", "<u><font color='blue'");
    TableName := Replace (TableName, "</a>", "</font></u>");
    TableName
    -->
    QUESTION - Does any similar workaround exist so I can display an HTML Table in Crystal Reports?  If not, is there any way to display HTML formatted text from a data table in Crystal Reports as it would appear in a web browser?

    Hi Steven,
    To display html text in Crystal Reports follows these steps.
    1. Right click on the field and select Paragraph tab.
    2. Under 'Text Interpretation' select 'HTML Text' and click OK.
    I have tried using the way,but it never works.So reply me if there is any way to solve the issue

  • How to use Dynamic cascading parameter in crystal Report XI ?

    Hi,
    I want to use Dynamic cascading parameter in crystal Report XI which is to be viewed through the infoview without using the Business View.Is it possible?
    I could implemented Dynamic cascading parameter using the CR XI developer without using Business View, but cannot view the report when uploaded it to BOXI, through infoview.
    Please suggest..
    Thanks in advance..
    Rajneesh

    In the crystal reports field explorer>right click on parameter field>create new-->name the parameter field and select the type as dynamic. Now in the value field click the row and add the database field also add another field below that by clicking on the next row so..on. The order should be like this parent field first and then child field next...... Also click on the last column to add parmater for each level.
    Regards,
    Raghavendra

  • Reading data from a crystal report using crystal for eclipse

    tried both approaches listed here: [Help needed in reading data from a Crystal Report]
    but having the same issues, is this a bug or is there some workaround? cant get any results with rowsetcursor and only the first 100 no matter what i do with browsefiledvalues

    Hello,
    I have the same problem. I need to know values of last record in CrystalReports and i got only 100 records.
    Have you found solution for this problem?

  • How to register/configure a Data Provider with Crystal Report Designer

    Hi,
    Iu2019m in the process of developing an ADO .Net XML Data Provider which works with Data Sets. I want to use this custom Data Provider through Crystal Report Designer 2008 so that I can access it from the u201CStandard Report Creation Wizard\Available Data Sourcesu201D section. How can I do this? I read the following in the u201Ccreating custom adddins.docu201D documentation.
    u201CCrystal Reports (CR) 2008 installs a new managed dll called DotNetExternalCommandAdapter.DLL and installs it into the Global Assembly Cache (GAC).  CR 2008 uses this dll to search and load files with a csc prefix in CR 2008u2019s AddIns subdirectory in a similar way it looks for database drivers, export drivers and UFLs. To create an Add-In the developer needs to reference this dll and inherit two classes from it, ICommand and ICommandDLL.u201D
    I have the following questions,
    1) As it mentions above how can I make Crystal find my custom Data Provider when it searches for the database drivers?
    2) Is there another class I can inherit from when creating my custom data provider? If so where can I find some documentation regarding this?
    3) Can I register my custom data provider in to the GAC and will Crystal find it if so how can I register my custom Data Provider? Will GACUtil work for Crystal as well?
    Thanks in Advance,
    Regards,
    Chanaka

    Baron, thank you for providing that link.
    Chanaka see if that article helps you out. It should - had I got to this thread earlier, I'd have sent that link also. Certainly DE place to start.
    Ludek

  • Hiding the Selected field in the Crystal reports 2011

    Hi Experts,
              I am new to the Crystal reports. How to hide the Selected Field in the Crystal report 2011.
    Thanks,
    Kavya.C

    Hi Kavya,
    You can right click on the field, go to Format Field -> Common Tab. Select/Check the option "Suppress". Or if you want to hide/ Suppress the entire section in a Crystal Report, for e.g. Detail section, right click on Details Section and select Section expert. You can select Hide/Supress accordinly.
    That should hide the filed/Section when you run the report.
    - Kuldeep

  • How to hardcode date(s) in Crystal Reports?

    Post Author: Vishy
    CA Forum: Formula
    Hi,
    Any one have any idea about, how to hardcode the date(s) in Crystal Reports?
    For example, I want hardcode the US holidays in my Crystal Report.
    I am using Version 9.0.
    Your immediate help is greatly appreciated
    Thanks,
    Vishy

    Post Author: chantilly
    CA Forum: Formula
    Not sure I'm the best person to answer because I seem to be experimenting in my own inexperience.  What I would try first would be to create variables for each of the holidays and pull them into the report.  Such as
    dateVar Christmas := Date (2007, 12, 25);Christmas
    I think you can then perform more calculations on it, such as to find how many days etc.

  • Hierarchical Data Source in Crystal Reports Options

    We are trying to use Crystal Reports in VS2005 and set the data source
    to a list of our objects.
          Dim list As New BindingList(Of Payslip)
          Dim Report2 As New CrystalReport2()
          Report2.SetDataSource(list)
    This works fine when we are just considering the Payslip class in
    isolation. However we have a property on Payslip which contains a list
    of another class Element.
       Public Property Elements() As BindingList(Of Element)
          Get
             Return _Elems
          End Get
          Set(ByVal Value As BindingList(Of Element))
             _Elems = Value
          End Set
       End Property
    We would like to be able to display the Elements in the report, in a
    sub report ideally. However we cannot find a way of doing this. We can
    tell Crystal Reports how to link an Element to a PaysSlip, but not how
    to get to the Elements in the first place (i.e. by going through the
    property called Elements).
    How can we achieve this?

    The fundamental data model of Crystal Reports is relational and not object hierarchial.
    Are you able to transform the object hierarchy to a relational model?
    Sincerely,
    Ted Ueda

  • Select multiple items from a list box as values for a parameter of crystal report and Oracle procedure

    -  I have a  Product list box (asp.net) used as multiple selected values for  a parameter. 
    - The Product ID is defined in the Oracle procedure as NUMBER data type. 
    -  In my crystal report, I have a parameter field allow multiple values as p_product_id type as Number.  This is the code in my Record Selection Formula for the report:
    ({?p_product_id}[1] = -1 OR {Procedure_name.product_id} in {p_product_id})
    -  In C#, this is my code
    List<decimal?> productUnit = new List<decimal?>();
    int counter = 0;
    decimal prod;
    for (int i = 0; i < lstProducts.Items.Count; i++)
                  if (lstProducts.Items[i].Selected)
                                if (decimal.TryParse(lstProduct.Items[i].Value, out prod))
                                    productUnit.Add((decimal?)prod);                              
                                    counter++;
           if (counter == 0)
                       productUnit.Add(-1);                      
    ReportingDAO rDataFactory = new ReportingDAO();
    retVal = rDataFactory.GetProductReport(productUnit);
    public CrystalDecisions.CrystalReports.Engine.ReportDocument GetProductReport(List<decimal?> productUnit)
              CrystalDecisions.CrystalReports.Engine.ReportDocument retVal = new rptProductDownload();
              ReportLogon rptLog = new ReportLogon();
             rptLog.Logon(retVal, "RPT_PRODUCT_DOWNLOAD");
             retVal.SetParameterValue("p_product_id", productUnit); 
    I keep having the "Value does not fall within the expected range" when I debug.  My question is, is the data type I used for procedure/Crystal report/ and C# correct ?  I always have problem with the data type.  Any help would be
    appreciated
    Thank you

    Hi progGirl,
    Thank you for your post, but Microsoft doesn't provide support for CrystalReport now. Please post your question in SAP official site here:
    http://forums.sdn.sap.com/forum.jspa?forumID=313
    Thank you for your understanding.
    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.

  • Date parameter used in report selection

    Post Author: calj
    CA Forum: Upgrading and Licensing
    In CR XI, is there an option to convert date/time fields to date that was under Report Options in 8.5?  In the Select Expert date/time fields display the time, and date parameters are not listed unless their type is also date/time.  How do I convert the database fields to date only so that date parameters appear in the list of values?
    I recently upgraded from CR 8/8.5 to XI and and it is not an issue for converted reports, only for those created in XI.  I've changed the settings under Options (Fields/Date Style = mm/dd/yyyy) but that doesn't make a difference.  Since it works for converted reports, I must be overlooking something in the options dialog.
    Thank you.

    Post Author: calj
    CA Forum: Upgrading and Licensing
    In CR XI, is there an option to convert date/time fields to date that was under Report Options in 8.5?  In the Select Expert date/time fields display the time, and date parameters are not listed unless their type is also date/time.  How do I convert the database fields to date only so that date parameters appear in the list of values?
    I recently upgraded from CR 8/8.5 to XI and and it is not an issue for converted reports, only for those created in XI.  I've changed the settings under Options (Fields/Date Style = mm/dd/yyyy) but that doesn't make a difference.  Since it works for converted reports, I must be overlooking something in the options dialog.
    Thank you.

  • How to make Start Date as optional parameter in Crystal reports 2011

    Hi All,
    I have existing Start Date and End Date parameter how to make them as optional parameters.
    Thanks for your help in advance!!.

    Hi Mnnica,
    There is an option 'Optional Prompt' under value options, make that as true.  Do the same for both startdate and enddate then go in Record Selection Formula and write below formula :
    If Not (hasvalue({?Startdate}) then True else {?Startdate} >= {databasedatefield}
    and
    If Not (hasvalue({?Enddate}) then True else {?Enddate} <= {databasedatefield}
    Check below screen capture for Optional Prompt options :
    -Sastry

  • Adding date as runtime parameter in crystal report

    Post Author: priyanair
    CA Forum: General
    Hi,
    I have a report in which iam passing four runtime parameters. One of the parameter is date. my report is taking the date parameter as mandatory and if i leave it blank it doesn't show any output. If i fill in the date parameter it gives me the output corresponding to date. It ignores the other 3 parameter values. What could be the reason and what could be the possible solution for the same?
    Please help.
    Thanks
    Priya

    Post Author: priyanair
    CA Forum: General
    Hi,
    This is the statement that iam using for assigning the parameter values to the database fields.
    {Account.Name} = {?Name} or  {Account.BillingCity} = {?City} or{Account.Type} = {?Type of customer} or{Account.LastModifiedDate} = {?Last Modified Date}
    the last statement is my date parameter.
    Thanks
    Priya

  • How do I select range and require end date in it crystal report

    I'm trying to select a range of dates in my records however it must include the end date from my parameters what is the syntax for that record selection and anything after the Start Date (open).  If the Date range doesn't end in the specified End Date then I don't want to see it.

    well I created two reports one with pulling all the end dates data then the other report with the stuff before that date and put the end date as a subreport in the other one so he can see what was done recently on the subreport and scroll through the other report while the subreport stays on the results bottom end - however he has to scroll through 100's of pages to find the data he wants so he doesn't like that. However it is a good mockup of the results he wants ...but he doesn't want to scroll through 100's of pages - my guess is he wants one report with end date only and any dates before hand.
    Original
    Part                         TransactionDate                         Qty                     Unit cost
    GA101                    10/11/2013                                  5                         1.23
    GA101                    5/25/2012                                   10                        2.23   
    GA101                    8/14/2011                                   15                        5.15
    HE8924                  8/22/2014                                   14                        4.25  
    HE8924                  6/13/2012                                   2                          3.25
    UY325                    8/22/2014                                   5                         6.32
    UY325                    7/10/2010                                   2                         3.25
    TE5689                  8/12/2014                                   1                          8.14
    TE5689                  5/16/2013                                   2                          9.12
    IO8978                    8/22/2014                                   6                         8.25
    IO8978                    5/20/2013                                   8                         7.25
    IO8978                    3/15/2012                                   4                         9.25
    IO8978                    1/20/2009                                   5                         10.25
    MY CODE RESULTS SHOULD SEE
    START DATE 01/01/2011  END DATE 08/22/2014
    Part                         TransactionDate                         Qty                     Unit cost
    HE8924                  8/22/2014                                   14                        4.25  
    HE8924                  6/13/2012                                   2                          3.25
    UY325               
      8/22/2014                              
        5                    
       6.32
    IO8978                    8/22/2014                                   6                         8.25
    IO8978                    5/20/2013                                   8                         7.25
    IO8978                    3/15/2012                                   4                         9.25

Maybe you are looking for

  • My itunes library does not show up in apple tv

    I am using a Dell computer and my itunes library does not show up in my apple tv under computer.  I am sure I just need to change settings in my computer to allow access to apple tv but I do not know how to do that. Any help?  My apple tv has interne

  • Photos app doesn't show my shared albums and activity

    I've just installed the new Photos App and so far so good, until I try the shared tab. cleanest place on my Mac. I can still access it from iPhone but now I'm not sure whats going on. is my iPhone late in cache? is my Photos Mac going to overwrite my

  • More than one container in fluid grid

    Is it possible to have more than one container in the fluid grid? I need to do it (I think) to be able to make a movie file scale properly using seperate code somebody else suggested to me. The idea is to have the header in one regular container, the

  • Problems with .acsm file

    Hello, I've purchased the book "The Shepherd" with my LG 500 Android device. The downloaded format is .acsm which I can't open in Aldiko. I've tried to use Astro, reinstall Aldiko - but both of them didn't help. I was registered with my Adobe ID all

  • LCDS error when using Producer/Consumer messaging to exchange objects between clients. Please help!!

    Hello, I decided to test this with the  publish/subscribe messaging. Something I thought would work is not. Here  is the simple example;                  var btn:Button = new Button();                  btn.label = "My Button ";                  msg =