Date Parameters in 2008 Viewer

Post Author: willywig
CA Forum: .NET
Date Parameters in the 2008 viewer (vs2005) are not working, It will not even prompt for them unless i throw another parameter in the report. And when I do put them in there it ignors them. Am I doing something wrong or is this a MAJOR bug in the viewer?

Post Author: willywig
CA Forum: .NET
Hmmm this is not just Date parameters no Parameters will work in a record select, when added through the viewer, making the viewer Useless for running reports that require user parameters.  Do the developers even test things before they release them here

Similar Messages

  • Compare Date Parameters on Report Viewer

    Visual Studio 2010 (VB.NET)
    Crystal Reports 2010
    I have two date parameters in my report viewer (Start and End dates). When the user clicks the "Apply" button in the parameter panel is there any way to display a dialog box if the Start date is after the End date?
    I don't see any event for the "Apply" button, just the "Refresh" button (the ReportRefresh event).

    I actually got a hack job workaround to get this to work without having to write my own parameter panel or edit any of my 150+ reports:
    At the form load I can loop through the controls in the crystal viewer until I find the toolbar that holds the "Apply" button and add an event handler to it's ButtonClick event.
    I am using VB.NET:
    'Because there is no event handler for the "Apply" button in the parameter panel,
    'loop through the controls until we find the toolbar that holds that button. We can then
    'add an event handler to the button click event so we can check if the "Apply" button is clicked.
    For Each ctl As Control In CurrentCrystalReportViewer.Controls
        If ctl.Name = "InteractiveParameterPanel" Then
            'This control is the parameter panel
            For Each subCtl As Control In ctl.Controls
                If TypeOf subCtl Is Windows.Forms.ToolBar Then
                    'This controls is the toolbar that holds the "Apply" and "Delete" parameter buttons
                    Dim parmTool As ToolBar = subCtl
                    'add event handle so we can catch when a button is clicked
                    AddHandler parmTool.ButtonClick, AddressOf ParmToolBar_ButtonClick
                    Exit For
                End If
            Next
        End If
    Next
    When the "Apply" button is clicked this event will then be called:
    Private Sub ParmToolBar_ButtonClick(ByVal sender As Object, ByVal e As ToolBarButtonClickEventArgs)
            If e.Button.Text = "Apply" Then
                'check if there are date parameters
                If CurrentCrystalReportViewer.ParameterFieldInfo.Count > 0 Then
                      'loop through and find the start and end date parameters to compare the dates.
                End If
            End If
    End Sub

  • Date Parameters in Viewer  2008

    Post Author: willywig
    CA Forum: Crystal Reports
    Date Parameters in the 2008 viewer (vs2005) are not working, It will not even prompt for them unless i throw another parameter in the report. And when I do put them in there it ignors them. Am I doing something wrong or is this a MAJOR bug in the viewer?

    Post Author: willywig
    CA Forum: Crystal Reports
    Well after working on this I discovered it is the upgrade which does not upgrade all the references.  I removed the viewer then added it and it worked...

  • Error when using Date Parameters...

    Hi everybody,
    I have a little issue.
    Ever since I upgraded my CRXI R2 to SP4 I've had a little problem using date parameters.
    The little calendar icon next to the parameter field no longer works.
    When I click it I get the following error message:
    An error has occurred in the script on this page.
    Line:       79
    Char:      1
    Error:      Object Expected
    Code:      0
    URL:       file://C:\Documents and Settings\jlong\Local Settings\Temp\prompting1.html
    I'm thinking this is probable a quick registry fix, but I have no idea where to start looking.
    Hopefully one of you CR guru's knows the answer.
    Thanks in advance,
    Jason

    It seems you are having a scripting issue.
    Go onto the Internet explorer settings (internet options under control panel)
    click on security and then click on Internet and then Custom tab.
    Scroll right down where it says Scripting and enable it.
    That should resolve the issue.
    Here is the full list of browsers with scripting options:
    Windows Internet Explorer
    (all versions except Pocket Internet Explorer)
    Note To allow scripting on this Web site only, and to leave scripting disabled in the Internet zone, add this Web site to the Trusted sites zone.
    1. On the Tools menu, click Internet Options, and then click the Security tab
    2. Click the Internet zone.
    3. If you do not have to customize your Internet security settings, click Default Level. Then do step 4
    If you have to customize your Internet security settings, follow these steps:
    a. Click Custom Level
    b. In the Security Settings u2013 Internet Zone dialog box, click Enable for Active Scripting in the Scripting section.
    4. Click the Back button to return to the previous page, and then click the Refresh button to run scripts.
    ===========
    Mozilla Corporationu2019s Firefox version 2
    1. On the Tools menu, click Options.
    2. On the Content tab, click to select the Enable JavaScript check box.
    3. Click the Go back one page button to return to the previous page, and then click the Reload current page button to run scripts.
    ===========
    Opera Softwareu2019s Opera version 9
    1. On the Tools menu, click Preferences.
    2. On the Advanced tab, click Content.
    3. Click to select the Enable JavaScript check box, and then click OK.
    4. Click the Back button to return to the previous page, and then click the Reload button to run scripts.
    ===========
    Netscape browsers
    1. Select Edit, Preferences,Advanced
    2. Click to select Enable JavaScript option
    Hope this helps.
    Regards
    Jehanzeb
    Edited by: Jehanzeb Navid on Jul 28, 2008 4:38 PM
    Ok I think I got this totally wrong. this isn't what you are looking for.
    Sorry!!! can't delete this reply arggghh!!!
    Edited by: Jehanzeb Navid on Jul 28, 2008 4:40 PM
    Maybe this might help?
    Remove Web Customization
    If multiple folders are causing the script error, remove Web customization from any folder that generates the error message.
    To remove customization from a folder, use the following steps:
    1. Open the appropriate folder.
    2. On the View menu, click Customize This Folder, click Remove Customization, click Next, and then click Finish.
    3. Close the folder.

  • Use evdre to query data from a SQL View

    Hi all
    I believe that it is possible to use evdre to query data from a SQL View. If this is possible then how does one go about setting it up in the evdre options (assuming that the view has already been created)?
    Regards,
    Byron

    Byron,  perhaps this is no longer supported, it might be worth opening up a case at service.sap.com on this.  However, I did find the following on Page 11 of the "Usages and Considerations of EVDRE" pdf file.  This doc is imbedded in the helpfile for BPC 7 SP5 (which was released in August of 2009, well after note 1315011 was last updated.
    It looks like you are limited to one custom view per application, since you have to name the view in a parameter at the APPLICATION level.  Go into BPC Administration, login to the application related to the custom view, choose "Set Application Parameters" and enter the name of the view to the Application Parameter called "EVDRE_QUERYVIEWNAME"  If it is not listed, go ahead and create it at the bottom of the Application parameter screen.
    Also:  I interpreted the following info from Page 10 of the same doc:
    In your EVDRE, set the following options:
    QueryEngine: MANUAL
    QueryType:  enter either NEXJ  OR TUPLE  see below:
    NEXJ  - Use two-dimensional queries using the nonemptycrossjoin function
    TUPLE  - Use two-dimensional queries using tuples"
    And I'm assuming you'd enter a Y for the following two parameters:
    QueryViewName
    "..to enforce the query engine to use a used-defined SQL view of the fact tables, when trying to read the values using SQL queries. This option is typically used in conjunction with the SQLOnly option (see below). "
    Option SQLOnly
    "..to enforce the query engine to only execute SQL queries, when reading data. This can be achieved using this option."

  • When Exporting a Crystal Report to Excel format all of the dates get changed when viewed on Mac version of Excel

    We're using Crystal Reports 10 and when we export a report from the Crystal Viewer using either the MS Excel 97-2000 option or the MS Excel 97-2000 (Data Only) option, the date columns on the report appear as expected on a PC version of Excel, however, most of the users at our company use Macs so when they open the same report on the Mac version of Excel all of the dates show up as 2011 or 2012 dates eventhough they are suppose to be 2008 dates. We've tried to just open the report after the export process and then do a "Save As" but get the same result. The date columns all appear to be formatted as Date. The dates on the Crystal Viewer appear as expected when viewed on a Mac. The users are running Excel for Mac OS-X Service Release 1.0. Any idea why this may be happening and is there a solution to this problem? Thanks!

    Hi,
    To clarify, are you currently using the Mac version of Crystal Reports Viewer 2008 which you downloaded from here?: http://www.sap.com/solutions/sapbusinessobjects/sme/reporting/viewer/index.epx

  • Error with date parameters - Object expected,  res://ieframe.dll/syntax.htm

    I am porting a report done in CR X to CR 2008, so I can distribute it to a third party. When I preview it and enter my date parameters, I get and address not found html page. When I close this page, I get an error stating that an object was expected, line 1, char 1, code 0, URL res://ieframe.dll/syntax.htm.
    The report worked great in CR X.

    start removing all parts to see what needs to be fixed up

  • Defaulting Date Parameters

    Post Author: tegage
    CA Forum: Formula
    I have many reports that allow the user to specifiy a starting and ending date range.  I would like the reports to default to all dates.  I can do this by defaulting the start date to "01-01-2000" and the end date to "12-31-2099", but then the calendar tool is useless since there is no TODAY button on the calendar tool and it picks up the default date, i.e., the users will have to do a lot of scrolling through the calendar tool.
    The other way is to make the starting and ending date parameters strings and use values like Today, This Week, This Month,....  and reolve them in the record selection formula.   This would be nice, but then if the user wants a specific date range, they don't have the calendar tool to use.
    Is there a way to take advange of the user-friendliness of string values and still have the calendar tool to use?

    Post Author: tegage
    CA Forum: Formula
    Thanks much for the response. 
    I had done exactly what you described - I had a string parameter for Today, This Week, etc and a set of date parameters - Starting and Ending Date.  But, in order to use the Starting and Ending dates in a formula, I had to provide them a default value - leaving them blank causes the record selection formula to explode.  The issue here is that the calendar tool picks up the default value instead of showing today's date. 
    I did more web surfing and found the answer on the Business Objects web site.  The solution let me do what you suggested AND keep the Starting and Ending date parameters as Date types and defaulted to blank by making them optional parameters.
    From the Business Objects web site (why isn't this stuff in the user's guide?):
    2.  Control over default values.
    3.  Request for an 'ALL' value.
    Both of requirements 2 and 3 are met with the new optional parameter feature of CR 2008.  When a parameter is flagged as 'optional', the report can execute without that value being set.  The trick here is that any formula that attempts to reference an optional parameters that doesn't have a value set will return an error.  So we've introduced the new HasValue() function which allows you to check and see if the parameter has a value. 
    This is really powerful, because now you can reference your parameters indirectly through another formula (or custom function) that checks if the parameter has a value or not.  If it does, then the formula returns the parameter value.  If it doesn't, then it can return whatever default value you wish.  So if you want the default to be the day before, or last Friday, then you can code that logic into your formula that uses HasValue to check if the parameter has a value set or not.
    Optional parameters were also intended to solve the 'All' problem.  Basically, you want a parameter to participate in a record selection formula only if it has a value.  If it doesn't, then you want that filter to be disabled.  By using optional parameters and HasValue() in your record selection (and new saved data section) formulas, you can include conditions in your filter only if the parameters in those conditions have a value.

  • Discoverer Date Parameters

    Hi,
    How can i perform for user date parameters to get the result of
    From Date To Date (2007) Sales , From To Date(2006)
    It is required in view that having sales of 2 Years 2006,2007 and the user
    need to compare sales of period in 2007 with same period in 2006
    Regards
    Hassan

    hi hassan,
    for having from-date & to-date parameters in ur report its better to create 2 parameters with the same names & define a condition using "between" option along with those parameters in discoverer itself.
    coming to comparison of 2 years data like "this year & last year" you should mention these in ur query itself like below:
    hope it will b helpful for ur report.
    all the best_Rakesh Reddy.
    SELECT A.Region,A.Account,A.Door,A.Location,A.retailer_month,A.week,SUM(A.Netretlsold_TY) as Netretlsold_TY,SUM(A.Netretlsold_LY) as Netretlsold_LY FROM
    SELECT
    NVL(TY.Region,LY.Region) as Region,
    NVL(TY.Account,LY.Account) as Account,
    NVL(TY.Door,LY.Door) as Door,
    NVL(TY.Location,LY.Location) as Location,
    NVL(TY.RETAILER_MONTH,substr(LY.RETAILER_MONTH,1,2) || to_char(to_number(substr(LY.RETAILER_MONTH,-4))+1) ) as RETAILER_MONTH,
    NVL(TY.WEEK,LY.WEEK) as Week,
    NVL(TY.Netretlsold,0) as Netretlsold_TY,
    NVL(LY.Netretlsold,0) as Netretlsold_LY
    FROM
    SDW.ST_WK_SALES_SUM_MV TY
    FULL OUTER JOIN SDW.ST_WK_SALES_SUM_MV LY
    ON
    TY.Door=LY.Door
    AND TY.RETAILER_MONTH = substr(LY.RETAILER_MONTH,1,2) || to_char(to_number(substr(LY.RETAILER_MONTH,-4))+1)
    AND TY.WEEK = LY.WEEK
    ) A
    GROUP BY A.Region,A.Account,A.Door,A.Location,A.retailer_month,A.week;

  • Passing date parameters to a custom folder

    Is there any simple way to pass date parmeters to a custom folder?

    I think I recognize a question very similar to this recently.
    And it's the same situation, in that - what do you mean by passing a date?
    I understand it to mean that you want a user - at run time - to enter a date or date range that will then return only that data from a custom folder.
    1. You could have all data returned (ie: no date conditions applied to the SQL) and then filter using the Disco tool (ie: plus, viewer, desktop).
    2. If you want to 'pass' those date parameters into the actual folder in the EUL, then there is a method that you can use using functions you write.
    3. Or you could code the actual database SQL view with some kind of hard-coded date parameters (ie: SYSDATE - 30), etc.
    Russ

  • BAM : Date parameters

    Hi , We have a report level paramters : start date and end date.
    These two parameters we would like to default to sysdate-1 and sysdate.
    start date should default to sysdate-1
    end date should default to sysdate
    How do we achieve this ?
    Thanks,
    Satish

    Thanks for your reply, but it didn't satisfy my requirement.
    Here is the detail requirement.
    1. I have 4 views on a single dashboard
    2. I have two date parameters (Start Date and End Date) (dashboard level) . Once I select these dates , it will refresh all the 4 views that are there on the dashboard.
    3. To implement point 2 above , I added filters to all the 4 views pointing to the report level parameters(Report Start time and End time).
    4. Now I want these two report level parameters to be defaulted to sysdate and sysdate -1 so that first time when dashboard opens, it apply these default conditions. after the report opens, User should be able enter his own date range and it needs to reflect in the report.
    Please suggest how to implement the above.
    In addition to above , How would I build filters with (all OR conditions, AND and OR conditions) ? Whats the use of (add new header) in the filters tab ? Is this helps in building AND OR conditions in the report ?
    Thanks,
    Satish

  • Default Date Parameters for SSRS Subscription

    I have a SSRS 2008 R2 report running on a Sharepoint 2010 site.
    It has two date parameters (Beginning and Ending Date).
    The defaults of these dates are calculated correctly when running interactively.
    For example:
    =DateAdd("d",-28, Today)
    =DateAdd("d",-1, Today)
    However, when you create a subscription the defaults are based on when the report is submitted and not when the report is executed.
    Is there anyway to set a subscription to pull the default parameters every time when executed.
    Thanks in advance.

    Hi miguelh,
    Based on my research, if we specified the report parameters with “Use Report Default Value” is checked in the subscription, we could get the report from this subscription with the default value. The default values are based on the expression when the subscription
    is executed, rather than the time when we create the subscription. If today is 7/21/2014, the Beginning Date is 6/23/2014, Ending Date is 7/20/2014.
    So, please double check you have typed the expressions as the default values in the two date parameters and we have select the “Use Report Default Value” as the parameter values when creating the subscription .
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Calculate difference in value based on two date parameters

    Hi All,
    I have a table and need to calculate the difference in rent amount for a property based on two date parameters.
    I have uploaded sample data here:
    https://app.box.com/s/pu8oa4f3jhrhm0ylshdz2fuo7541vn4z
    Thanks
    Jag

    Hi jaggy99,
    Do you have the knowledge of
    Excel Add-In? If you don't have knowledge of C#/VB.NET language and Visual Studio, I don't think Excel Add-In is what you want. As I said previously, your problem is totally about the business logic, we don't provide solution for a complete requirement.
    Based on your sample data, I think VBA code is suitable.
    If you're not familiar with VBA, please take a look at the MSDN documents for scratch:
    Getting Started with VBA in Excel 2010
    The steps should be like this:
    1. Sort all the records by [Rent Change Date] field
    2. Loop throuth the records and find the FromDate and ToDate as well as the corresponding [Rent Charged] field
    3. Calculate the difference and save the data into a new range
    It's not so hard, please have a try, if you encounter any development problems, you can post in this forum.
    Thanks.
    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.

  • Optional Date parameters in SQL Command

    I'm using Crystal Reports 2008. I want to make the start and end date parameters optional and have them default to the beginning and end of the previous month. Unfortunately, I'm using an SQL Command, rather than filtering in the Record Selection Formula, and I can't see any way to pass the computed start and end dates into the query. Is there any way to get the results I want short of omitting the date parameter in the query and doing all the filtering on the front end? Thanks.

    The way I have gotten around this problem is to make the date parameters strings, and allow mnemonics such as PM for prior month, PD for prior day, PQ for prior quarter, etc.  I then wrote Crystal and database functions that convert these mnemonics to actual dates, which are then used where necessary.  This is also useful for scheduling the same report to run weekly (for the prior week), monthly (for the prior month) and quarterly (for the prior quarter)...
    Also, remember that an SQL command in Crystal is basically the equivalent of a stored procedure, so you can do a lot of logic in them before returning your data set.  So, in your SQL, you could set a variable to either the parameter value or a calculated prior month dependent on if the date parameter is null (assuming Crystal allows no entry for the parameter, which I think 2008 does [I'm on XI R2]).
    HTH,
    Carl

  • Opendocument date parameters

    I'm trying to work with the opendocument command passing arguments for date parameters. I am having problems passing dates. 
    I've tried:
    lsSDateRangeTo=2008-12-01
    lsSDateRangeTo=12/1/2008
    and a fair few others.  Any ideas on the required format?
    I'm using XIR2.
    Thanks
    Steve

    Hi Steve,
    Yes it is possible to use function calls in the url, if your source document is a Web Intelligence it will work fine.
    syntax would be
    "...&lsSDate%20Range%20From="+DateFormat([From Date],"YYYYMMDD")+"...
    The problem might not be the date format, but simply the fact that there are spaces in the prompt text. I don't think XI r2 supports this. To put white space you have to include
    %20
    or use the URLEncode function.
    Regards
    Alan

Maybe you are looking for

  • No More Delete Option After Viewing Videos?

    It used to be that the Iphone asked you if you wanted to delete videos to conserve space on the phone after you were done watching them. Have they taken this option away with the latest update because it never asks me anymore? I need to conserve spac

  • Problem with installing the drivers from cd-rom CTREG

    I have the following problems. st.. this one is the most urgent.. the problem is I can't seem to install from a drivers cd.. the error I get is like CTREGSVR.. it says it cannot find differnt applications on dri've c... there is like a whole bunch an

  • Problem in Using Mass Data Getlist.

    Hi All, I am using a "Mass Data" Getlist for Salesorder. there are nearly 8000 records in VBAP table wich I want to bring it in Batches of 1000. I have modified my Getlist to the requirement as given in the document [http://www.sdn.sap.com/irj/scn/go

  • Deduction amount from the bill should hit reconciliation account.

    Hello Friends, In my current implementation scenario, The customer will deduct some amount from every invoiced amount as a retention amount.So net payable will be amount after deduction. Here in pricing if i create condition type for deduction then i

  • How to ensure singleton classes no longer exist

    hi all not sure if this is the right forum.... I am writting an application that integrates another, I wish to stop and then restart the integrated application but it seems that the singleton classes of which there are quite a few ( each being static