Default Date parameter to current date

Using Crystal Reports 2008 version 12.1.0.892
I have a Stored Procedure for the report that among others requires a StartDate and EndDate parameter.
It appears that I can not easily/simply set the default for this parameters to the current date.
In the properties dialog for the parameter the Default value appears to be just a text field.  I can type in a value, but I can not make it always have the current date selected.
This report also has an End Date that we would like to have default to the current date(no time) plus one day.
We can do this using Reporting services, but I can not find a way to do this as easily in crystal reports. What am I missing?
Thanks

Well here's a little quick tip for reports have to be scheduled and require date parameters. I've used this on lots of reports...
For the bulk of our scheduled reports, the user typically wants to see data for either the current month or the previous month. For example management may want a production report scheduled to run at the end of every week for the current month so that they can track month to date progress. They will also want the same report run on the 1st of the month for the previous month so that they have a final monthly total.
Here's how I do it with just one report...
1) Create a text parameter called {?DateRange}
2) Give it 2 static LOVs... Current Month & Previous Month
3) Build out the SQL Command (I use a lot of them... Most of our vendors aren't nutty about clients adding SPs to their DBs)
4) Drop in the following block of code at the top of the SQL Command...
DECLARE @DateRange CHAR(15)
DECLARE @BEG DateTime, @END DateTime
SET @DateRange = '{?DateRange}';
IF @DateRange = 'Current Month' SET @BEG = DATEADD(mm, DATEDIFF(mm,0,GETDATE()),0)
                                               ELSE SET @BEG = DATEADD(mm, DATEDIFF(mm,0,GETDATE())-1,0);
IF @DateRange = 'Current Month' SET @END = DATEADD(ms,-5,DATEADD(mm, DATEDIFF(mm,0,GETDATE())+1, 0))
                                               ELSE SET @END = DATEADD(ms,-5,DATEADD(mm, DATEDIFF(mm,0,GETDATE()), 0));
5) Modify the WHERE clause of the SQL to pull dates between @BEG AND @END
6) Add the DateRange parameter in the Parameter List of the Command.
At this point the user has just 2 date range options... Current Month & Previous Month.
From there you can upload to the CR Server and schedule it.
Jason

Similar Messages

  • I need to default a parameter to current year in Bi publisher

    Hi,
    I have a requirement where i need to default the value of a parameter to current year. i see a sysdate() for current date i am looking for something similar.
    Thanks
    Vijay

    Yes, you can; please look at this example
    You can play around with these functions to add/subtract date/month/year
    To extract day or month or year- use Date format string dd for day, MM for month and yyyy for year

  • Default Data Parameter

    Post Author: despec
    CA Forum: General
    I have read that in previous CR version (before XI), you could default a date parameter to the current date.  Is there any way in CR XI to achieve this or our we SOL until we upgrade to CR 2008 (which I hear does allow date parameter defaults)?David

    Hi,
    It depends which version of Discoverer you are using. Search the Discoverer forum (http://forums.oracle.com/forums/search.jspa?objID=f56&q=SYSDATE+parameter) or check these links (Default parameter value to sysdate Default a parameter value to sysdate for possible solutions.
    Rod West

  • How to get the default date as current date in input filed in VC

    Hi
    In my VC application i have two date fields. we are allowing the end user to select the From Data and Todate though Data pickers, But the client asking to make the today's date as default date in Todate field , rather picking up from the data picker,
    Unless the  user wants change the todate from the current date. It should display today's date as default date.
    can any body tell me how to do it.
    Regards
    Vijay

    Hi All,
    I have an issue an implementing the "Exporting the Table data to Excel."
    My VC version is 7.0
    Portal version NW 2004s.
    By refering the following link, i have implemented Export To Excell functionality in VC.
    2) Another one that's in the Visual Composer WIKI:
    https://wiki.sdn.sap.com/wiki/display/VC/Exportingdatafrom+VC
    By refering to 7th page in the document. It is explained to add the data source object from the 'info' port and add the field called 'RAPTNAME'to the DATA source object.
    But the RFC object which i added to the story board, i havent find any 'info' port in my added RFC. But still i have added the data store object and added field. then
    copied the following given formula in the document in respective formula window ,Formula showin as valid. when i click on check button.
    copied formula :
    "pcd!3aportal_content!2fcom.sap.pct!2fplatform_a
    dd_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.b
    ex?QUERY=" & STORE@REPTNAME &
    "&BI_COMMAND_1-
    BI_COMMAND_TYPE=EXPORT&BI_COMMAND
    1-EXPORTFORMAT=XLS&BI_COMMAND_1-
    null="
    i am able to run the application. After i run the application . once i click on the button 'ExportToExcel' i am getting the following error.
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    Could not find portal application com.sap.ip.bi.service.generic.
    Exception id: 05:32_01/05/07_0001_18800950
    See the details for the exception ID in the log file
    Can u please tell me what is the problem
    Regards
    Vijay

  • Current date as default date in bind variable (jdev 10.1.3.3.0)

    Hi,
    I would like to initialize a bind variable with current date -7 days
    I saw the post regarding this request but it was for jdev11 and the solution doesn't work in jdev10.
    Have you any idea to do that in jdev10
    Thanks.

    A bind variable used in SQL statement
    It's the same problem discussed in this post : current date as default date
    The only difference is that i'm using Jdev 10 !
    Dan.

  • Default date (current date - 1) on prompt

    Hi Everybody,
    I have BI 11.1.1.6.1
    I have a Prompt in which there is a calender
    I need Defalut date to be set as (sysdate - 1).
    I tried
    Need default date (current date - 1) on prompt
    and
    How to create a prompt with default value as current_date?
    But it doesn't work in BI 11
    Thanks

    Hi,
    Refer the screen short
    http://imgur.com/Xopmt
    go to edit your dashboard prompt-->edit you date prompt column-->expand option -->set Default selection as SQL Results-->Enter a SQL statement to generate the list of values
    SELECT case when 1=0 then "tablename"."columname" else timestampadd(sql_tsi_day, -1, current_date) end FROM "subject area name"
    E.x:
    SELECT case when 1=0 then "Time"."Calendar Date" else timestampadd(sql_tsi_day, -1, current_date) end FROM "Sample Sales Lite"
    this will return current date - 1 date values.
    Thanks
    Deva

  • How do you set up a default Date To based on Date From for report parameter

    I'm working on a report. I have been asked to set up a default Date To based on Date From for the report parameters. I mean when running a report, if an end user selects a value for parameter Date From, system will automatically populate the Date To parameter based on the Date From + 6 days.
    I guess there's gotta be something to do with Value Set. Do any of you guys know how to go about this?
    Any suggestion is greatly appreciated.
    Dennis

    You should be able to retrieve the value of other valueset using :$FLEX$.<valuesetname> I'm not sure about the exact syntax, it's been a while since i worked with applications.

  • How to give specific default date with expression in SSRS

    Hi,
    I have to pass some specific kind of dates in "Default Values" section of parameter.
    1st is whenever SSRS report run for any year in default date I want to pass value 1/1/(Current Year), for this I tried many way like , = "1/1/" + DatePart("Y",Now())  also = "1/1/" + Year(Now()) but it
    is giving me error. When I tried both part individually "1/1/" and  DatePart("Y",Now()) , it is working but when I join them with + sign it is giving me error that "input string is not in correct format"
    2nd I want to set up like when package run in month of April, it takes default date as "(Previous Month, which is May)/1/(current Year)" so if I am running report on 4/5/2013 then it in default date it should take 3/1/2013.
    Please help me with the expression. Thanks in advance. 
    Vicky

    Hi Visakh,
    Thanks again.
    I have one more question, I also have start date and end date. In start date I can put your expression as you gave me as below,
    =DateAdd(DateInterval.Month,DateDiff(DateInterval.Month,CDate("01/01/1900"),Now())-1,CDate("01/01/1900"))
    But can you please help me with End date expression?
    In End date I want to put previous month's last date. For example, if active batch is running package on
    12/16/2013 then for End Date parameter it should value "11/30/2013" 
    For  1/16/2014 then for End Date parameter it should value "12/31/2013" 
    For  3/16/2013 then for End Date parameter it should value "2/28/2013" 
    Thanks for your help in advance.
    Vicky

  • Data S Default data transfer Options

    Hi
    What do the below mentioned terms mean in infopackage-Schedular--Data S Default data transfer
    1Max size of datapakcet in kbytes
    2Max no of dailogues process for sending data
    3No of data packet per info idoc
    Please help me with an example and what importance it has when we increase/ decrease the lengh of the above 3 mentioned do we have any interconnection in all three or they are all independent.
    Thanks
    Puneet

    Hello Puneet,
    These are some standard BW Settings done in transaction SPRO.
    SPRO ->SAP Customizing Implementation Guide->SAP NetWeaver->SAP Business Information Warehouse->Links to Other Systems->Maintain Control Parameters for the data transfer
    Maximum size of a data packet in kilo bytes.
    The individual records are sent in packages of varying sizes in the data transfer to the Business Information Warehouse. Using these parameters you determine the maximum size of such a package and therefore how much of the main memory may be used for the creation of the data package.
    SAP recommends a data package size between 10 and 50 MB.
    Frequency with which status Idocs are sent
    With this frequency you establish how many data IDocs should be sent in an Info IDoc.
    Maintain Control Parameters for the data transfer
    Standard settings
    For SAP source systems, you change the control parameter settings in the transaction SBIW (Customizing for Extractors), under Business Information Warehouse -> General Settings -> Control Parameters -> Maintain Control Parameters for Data Transfer .
    Activities
    1. Maximum size of data packages
    For data transfer into BW, the individual data records are sent in packages of variable size. You use these parameters to control how large such a data package typically is. If no entry is maintained, the data is transferred with a standard setting of 10,000 kbytes per data package. The memory requirement depends not only on the setting for data package size, but also on the width of the transfer structure, and the memory requirement of the  relevant extractor.
    2. Frequency
    With the specified frequency, you detemine after how many data IDocs an Info IDoc is sent, or how many data IDocs are described by an Info IDoc.
    The frequency is set to 1 by default. This means that an Info IDoc follows every data IDoc. Generally, choose a frequency of between 5 and 10, but not greater than 20.
    The larger the package size of a data IDoc, the lower you must set the frequency. In this way you ensure that, when loading data, you receive information on the current data load status at relatively short intervals.
    In the BW Monitor you can use each Info IDoc to see whether the loading process is running without errors. If this is the case for all the data IDocs in an Info IDoc, then the traffic light in the Monitor is green. One of the things the Info IDocs contain information on, is whether the current data IDocs have been loaded correctly.
    3. Size of a PSA partition
    Here, you can set the number of records at which a new partition is generated. This value is set to 1.000.000 records as standard.
    When you are integrating with Other SAP Components then
    SPRO ->SAP Customizing Implementation Guide->Integration with Other SAP Components->Data Transfer to the SAP Business Information Warehouse->General Settings->Maintain Control Parameters for the data transfer
    Maintain Control Parameters for Data Transfer
    Activities
    1. Source System
    Enter the logical system of your source client and assign the control parameters you selected to it.
    You can find further information on the source client in the source system by choosing the path Tools -> Administration -> Management -> Client Maintenance.
    2. Maximum Size of the Data Package
    When you transfer data into BW, the individual data records are sent in packages of variable size. You can use these parameters to control how large a typical data packet like this is.
    If no entry was maintained then the data is transferred with a default setting of 10,000 kBytes per data packet. The memory requirement not only depends on the settings of the data package, but also on the size of the transfer structure and the memory requirement of the relevant extractor.
    3. Maximum Number of Rows in a Data Package
    With large data packages, the memory requirement mainly depends on the number of data recrods that are transferred with this package. Using this parameter you control the maximum number of data records that the data package should contain.
    By default a maximum of 100,000 records are transferred per  data package.
    The maximum main memory requiremen per data package is approximately 2'Max. Rows'1000 Byte.
    4. Frequency
    The specified frequency determines the number of IDocs that an Info IDoc is to be sent to, or how many data IDocs an Info Idoc describes.
    Frequency 1 is set by default.. This means that an Info Idoc follows every data Idoc. In general, you should select a frequency between 5 and 10 but no higher than 20.
    The bigger the data IDoc packet, the lower the frequency setting should be. In this way, when you upload you can obtain information on the respective data loading in relatively short spans of time .
    With the help of every Info IDoc, you can check the BW monitor to see if there are any errors in the loading process. If there are none, then the traffic light in the monitor will be green. The Info IDocs contain information such as whether the respective data IDocs were uploaded correctly.
    5. Maximum number of parallel processes for the data transfer
    An entry in this field is only relevant from release 3.1I onwards.
    Enter a number larger than 0. The maximum number of parallel processes is set by default at 2. The ideal parameter selection depends on the configuration of the application server, which you use for transferring data.
    6. Background job target system
    Enter the name of the application server on which the extraction job is to be processed.
    To determine the name of the application server, choose Tools -> Administration -> Monitor -> System monitoring -> Server. The name of the application server is displayed in the column Computer.
    7. Maximum Number of Data Packages in a Delta Request
    With this parameter, you can restrict the number of data packages in a delta request or in the repetition of a delta request.
    Only use this restriction when you expect delta requests with a very high data volume, so that, despite sufficiently large data package sizes, more than 1000 data packages can result in a request.
    With an initial value or when the value is 0, there is no restriction. Only a value larger than 0 leads to a restriction in the number of data packages. For reasons of consistency, this number is not generally exactly adhered to. The actual restriction can, depending on how much the data is compressed in the qRFC queue , deviate from the given limit by up to 100.
    Thanks
    Chandran

  • How to change the default date in Person assignment tab?

    Hi experts,
    Does anyone know how to change the default date in person assignment tab in cj20n? Currently, the system always take the scheduled finish date to the date of the person assignment tab. Can I change it to the start date?
    Thanks and rgs,
    Michelle

    Hi Michelle,
    Goto SPRO->Project system->Dates->Scheduling->Specify Parameters for Network Scheduling, Here you can control the workforce planning dates.
    Hope this is useful...
    Regards
    Aatish

  • Error while saving default data type

    When I try to save system wide Default Data Format of any of the columns, an error pops out. Seems like an XML error:
    The current xml is invalid with the following errors:
    Bad xml instance!
    <?xml version="1.0"?> <sawsavedformat:metadata xmlns:sawsavedformat="com.siebel.analytics.web/savedformat/v1.1"><sawsavedformat:columnSavedFormats><sawsavedformat:columnSavedFormat xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawsavedformat:regularColumnSavedFormat" columnName="&quot;HT Catalog&quot;.&quot;Item As Was&quot;.&quot;Division Number&quot;"><saw:displayFormat><saw:formatSpec suppress="suppress" wrapText="true" visibility="visible" hAlign="right" vAlign="top"><saw:dataFormat xsi:type="saw:number" commas="false" negativeType="minus" minDigits="0" maxDigits="0"/></saw:formatSpec></saw:displayFormat><saw:tableHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:tableHeading><saw:columnHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:columnHeading></sawsavedformat:columnSavedFormat><sawsavedformat:columnSavedFormat xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawsavedformat:regularColumnSavedFormat" columnName="&quot;HT Catalog&quot;.&quot;Item As Was&quot;.&quot;Group Number&quot;"><saw:displayFormat><saw:formatSpec suppress="suppress" wrapText="true" visibility="visible" hAlign="right" vAlign="top"><saw:dataFormat xsi:type="saw:number" commas="false" negativeType="minus" minDigits="0" maxDigits="0"/></saw:formatSpec></saw:displayFormat><saw:tableHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:tableHeading><saw:columnHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:columnHeading></sawsavedformat:columnSavedFormat><sawsavedformat:columnSavedFormat xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawsavedformat:regularColumnSavedFormat" columnName="&quot;HT Catalog&quot;.&quot;Item As Was&quot;.&quot;Dept Number&quot;"><saw:displayFormat><saw:formatSpec suppress="suppress" wrapText="true" visibility="visible" hAlign="right" vAlign="top"><saw:dataFormat xsi:type="saw:number" commas="false" negativeType="minus" minDigits="0" maxDigits="0"/></saw:formatSpec></saw:displayFormat><saw:tableHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:tableHeading><saw:columnHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:columnHeading></sawsavedformat:columnSavedFormat><sawsavedformat:columnSavedFormat xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawsavedformat:regularColumnSavedFormat" columnName="&quot;HT Catalog&quot;.&quot;Item As Was&quot;.&quot;Class Number&quot;"><saw:displayFormat><saw:formatSpec suppress="suppress" wrapText="true" visibility="visible" hAlign="right" vAlign="top"><saw:dataFormat xsi:type="saw:number" commas="false" negativeType="minus" minDigits="0" maxDigits="0"/></saw:formatSpec></saw:displayFormat><saw:tableHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:tableHeading><saw:columnHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:columnHeading></sawsavedformat:columnSavedFormat><sawsavedformat:columnSavedFormat xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawsavedformat:regularColumnSavedFormat" columnName="&quot;HT Catalog&quot;.&quot;Item As Was&quot;.&quot;Subclass Number&quot;"><saw:displayFormat><saw:formatSpec suppress="suppress" wrapText="true" visibility="visible" hAlign="right" vAlign="top"><saw:dataFormat xsi:type="saw:number" commas="false" negativeType="minus" minDigits="0" maxDigits="0"/></saw:formatSpec></saw:displayFormat><saw:tableHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:tableHeading><saw:columnHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:columnHeading></sawsavedformat:columnSavedFormat><sawsavedformat:columnSavedFormat xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawsavedformat:regularColumnSavedFormat" columnName="&quot;HT Catalog&quot;.&quot;Organization As Was&quot;.&quot;Chain Number&quot;"><saw:displayFormat><saw:formatSpec suppress="suppress" wrapText="true" visibility="visible" hAlign="right" vAlign="top"><saw:dataFormat xsi:type="saw:number" commas="false" negativeType="minus" minDigits="0" maxDigits="0"/></saw:formatSpec></saw:displayFormat><saw:tableHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:tableHeading><saw:columnHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:columnHeading></sawsavedformat:columnSavedFormat><sawsavedformat:columnSavedFormat xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawsavedformat:regularColumnSavedFormat" columnName="&quot;HT Catalog&quot;.&quot;Organization As Was&quot;.&quot;Area Number&quot;"><saw:displayFormat><saw:formatSpec suppress="suppress" wrapText="true" visibility="visible" hAlign="right" vAlign="top"><saw:dataFormat xsi:type="saw:number" commas="false" negativeType="minus" minDigits="0" maxDigits="0"/></saw:formatSpec></saw:displayFormat><saw:tableHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:tableHeading><saw:columnHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:columnHeading></sawsavedformat:columnSavedFormat><sawsavedformat:columnSavedFormat xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawsavedformat:regularColumnSavedFormat" columnName="&quot;HT Catalog&quot;.&quot;Organization As Was&quot;.&quot;Region Number&quot;"><saw:displayFormat><saw:formatSpec suppress="suppress" wrapText="true" visibility="visible" hAlign="right" vAlign="top"><saw:dataFormat xsi:type="saw:number" commas="false" negativeType="minus" minDigits="0" maxDigits="0"/></saw:formatSpec></saw:displayFormat><saw:tableHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:tableHeading><saw:columnHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:columnHeading></sawsavedformat:columnSavedFormat><sawsavedformat:columnSavedFormat xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawsavedformat:regularColumnSavedFormat" columnName="&quot;HT Catalog&quot;.&quot;Organization As Was&quot;.&quot;District Number&quot;"><saw:displayFormat><saw:formatSpec suppress="suppress" wrapText="true" visibility="visible" hAlign="right" vAlign="top"><saw:dataFormat xsi:type="saw:number" commas="false" negativeType="minus" minDigits="0" maxDigits="0"/></saw:formatSpec></saw:displayFormat><saw:tableHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:tableHeading><saw:columnHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:columnHeading></sawsavedformat:columnSavedFormat><sawsavedformat:columnSavedFormat xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawsavedformat:regularColumnSavedFormat" columnName="&quot;HT Catalog&quot;.&quot;Organization As Was&quot;.&quot;Store Number&quot;"><saw:displayFormat><saw:formatSpec suppress="suppress" wrapText="true" visibility="visible" hAlign="right" vAlign="top"><saw:dataFormat xsi:type="saw:number" commas="false" negativeType="minus" minDigits="0" maxDigits="0"/></saw:formatSpec></saw:displayFormat><saw:tableHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:tableHeading><saw:columnHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:columnHeading></sawsavedformat:columnSavedFormat><sawsavedformat:columnSavedFormat xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawsavedformat:regularColumnSavedFormat" columnName="&quot;HT Catalog&quot;.&quot;Business Calendar&quot;.&quot;Fiscal Week&quot;"><saw:displayFormat><saw:formatSpec suppress="suppress" wrapText="true" visibility="visible" hAlign="left" vAlign="top"><saw:dataFormat xsi:type="saw:text" textFormat="plain"/></saw:formatSpec></saw:displayFormat><saw:tableHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:tableHeading><saw:columnHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:columnHeading></sawsavedformat:columnSavedFormat><sawsavedformat:columnSavedFormat xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawsavedformat:regularColumnSavedFormat" columnName="&quot;HT Catalog&quot;.&quot;Unit Inventory&quot;.&quot;U BOP&quot;"><saw:displayFormat><saw:formatSpec suppress="repeat" wrapText="true" visibility="visible" hAlign="right" vAlign="top" imagePlacement="right"><saw:dataFormat xsi:type="saw:number" whistlerFormat="#,##0" commas="true" negativeType="minus" minDigits="0" maxDigits="0"/></saw:formatSpec></saw:displayFormat><saw:tableHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:tableHeading><saw:columnHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat></saw:columnHeading></sawsavedformat:columnSavedFormat></sawsavedformat:columnSavedFormats></sawsavedformat:metadata>
    Line:2, Col:8982, Attribute 'whistlerFormat' is not declared for element 'dataFormat'
    Any suggestions?
    Thanks

    HI,
    Its known bug in obiee11.1.1.5. version try to apply obiee11.1.5.5.BP bug fixes version.
    fyi,
    bug 13370386 - 'THE CURRENT XML IS INVALID WITH THE FOLLOWING ERRORS: BAD XMLINSTANCE!' OCCURS
    bug 13249783 - OBIEE 11G THROWS BAD XML INSTANCE
    Thanks
    Deva

  • 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.

  • Default date should be displayed in Locale's date short format in Prompt

    Dear BI Gurus,
    I would like to take your attention to resolve one of date format issue which we are currently facing.
    We want to display Current_Date in locale's date short format ( For US: MM/DD/YYYY and for UK: DD/MM/YYYY) in a dashboard prompt. Also we need to pass the the prompt value to the report filter through presentation variable.
    For this we used logical sql to get the default value as select Times.time_id from sh when times.time_id= Current_Date. Once I click on the preview button it was showing in locale's date short format. But when we place the prmpt in dashboard, the default date was coming up in 'YYYY-MM-DD' format. But since calendar picker is giving value in locale's date short format (For US: MM/DD/YYYY and for UK: DD/MM/YYYY), there is an inconsistency in the display format. So could you please provide any workaround to make them consistent.
    Thnaks,
    Siva Naga Hari.
    Edited by: user6371352 on 27-Mar-2010 13:50

    Hi Vinay,
    Thanks for reply.
    We are looking for default date display format in dashboard prompt. i.e For US locale, default date and calendar picker should be displayed in MM/DD/YYYY and for UK locale, default and Calendar picker should be displayed in DD/MM/YYYY.
    We don't have any problem in report output for different locales. Also we don't need to create 2 seperate reports for different locales. If we set the data format to [FMT:dateShort], it will display as per the locale's date short format. Please provide workaround to display in dashboard prompt.
    Thanks,
    Siva Naga Hari.

  • Date Format in Zreport similar to the default date format set using su01.

    Dear All,
                I have a requirement as to change the date format in Zreport as the one which is set in default date format for the user in Su01 tcode.
    Ex.. If the user has set the default date format in SU01 as ' YYYY-MM-DD' , in report also, date should appear as '2009-12-24'.
    Is there any code  or  Function Module to change the date format in report as in the default Date format?
    Can u help me in this?
    Bye.....
    Cheers
    Christina.

    Try the following code.
    select the format of current user from usr01 table.
        SELECT SINGLE datfm FROM usr01
        INTO w_datfm
        WHERE bname = sy-uname.
    Format based upon the current user settings. put this total code inside one form for reusability.
        IF w_datfm = '1'.
          CONCATENATE w_date6(2) c_dot w_date4(2) c_dot w_date+0(4) INTO outtab-value.
          CONDENSE outtab-value NO-GAPS.
          CONCATENATE w_rundate6(4) w_rundate3(2) w_rundate+0(2) INTO w_date.
          CONDENSE w_date NO-GAPS.
        ELSEIF w_datfm = '2'.
          CONCATENATE w_date4(2) '/' w_date6(2) '/' w_date+0(4) INTO outtab-value.
          CONDENSE outtab-value NO-GAPS.
          CONCATENATE w_rundate6(4) w_rundate0(2) w_rundate+3(2) INTO w_date.
          CONDENSE w_date.
        ELSEIF w_datfm = '3'.
          CONCATENATE w_date4(2) '-' w_date6(2) '-' w_date+0(4) INTO outtab-value.
          CONDENSE outtab-value NO-GAPS.
          CONCATENATE w_rundate6(4) w_rundate0(2) w_rundate+3(2) INTO w_date.
          CONDENSE w_date.
        ELSEIF w_datfm = '4'.
          CONCATENATE w_date0(4) '-' w_date4(2) '-' w_date+6(2) INTO outtab-value.
          CONDENSE outtab-value NO-GAPS.
          CONCATENATE w_rundate0(4) w_rundate5(2) w_rundate+8(2) INTO w_date.
          CONDENSE w_date NO-GAPS.
        ELSEIF w_datfm = '5'.
          CONCATENATE w_date0(4) '/' w_date4(2) '/' w_date+6(2) INTO outtab-value.
          CONDENSE outtab-value NO-GAPS.
          CONCATENATE w_rundate0(4) w_rundate5(2) w_rundate+8(2) INTO w_date.
          CONDENSE w_date NO-GAPS.
        ENDIF.

  • Set Default Date Format in 4.2 jQuery Mobile Smartphone

    Hi guys,
    on "normal" Desktop interfaces you can set a default date format in the Globalization settings. Currently I'm working on a JQM app, and I noticed, that the same settings I have for date format in other apps, don't take affect.
    I now read in the 4.2 release notes, that somehow this issue was a bit buggy. Is this fixed? I would like to set a german date format like "DD.MM.YYYY"; (as it's working in desktop apps). How can I do it? In global settings this entry gets saved.
    But whenever I want to set an individual date-picker-item to that format, it changes back to "YYYY-MM-DD" after saving. And I don't really want to get into writing a conversion function in the dml-processing now.
    Thanks for any hints, best regards,
    tobi

    Hi Tobi,
    the "Date Picker (HTML5)" item type maps to the HTML5 input type="date", which requires that the internal format of the date value always has to be YYYY-MM-DD, but it's up to the browser to actually display the date in the format of the local operating system setting. The browser of iOS for example shows the date in the format of my local language/country setting.
    See also http://stackoverflow.com/questions/7372038/is-there-any-way-to-change-input-type-date-format
    To make a long story short, it's not possible to specify the display format for those date pickers, because it's not supported by the HTML5 spec.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to set a Default date format.

    I would like to know if it's possible to set a default date format (b.e. dd/mm/yyyy) for new date object and not for the current object?
    Thanks

    default date format (b.e. dd/mm/yyyy) for new date objectI would guess not, and that is regardless of how they format it.
    Consider the java.util.Date.toString() method. There is no way to change the behaviour of that unless you want to derive a class from Date.
    At least not in 1.3.0 it isn't. The java.util.Date class uses a private data member called simpleFormatter which it hard codes to
    formatter = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy", Locale.US)
    If however the time was formatted using the defaults from java.text.DateFormat then you could set the TimeZone. However, that doesn't impact formatting, it merely changes the offset (and daylight savings.)
    You could set the Locale in java.util.Locale. That looks like a real possibility. But the documentation doesn't really provide anything that suggests how you provide your own and impact the time stuff. For example, Date which uses static finals for the time stuff - which suggests Locale can't impact it. And of course changing the Locale would impact your entire application, so you would have to make sure all threads were blocked while it was changed.

Maybe you are looking for

  • '08MBP w/Nvdia 8600, could this be the screen itself, rather than card/logic board?

    Ok, so I got a new-to-me MB Pro4,1 (A1260) off eBay about two months ago.  Love it!!!  I've been a Mac user since they were just called Apples, but this is my first laptop.  It has Mountain Lion on it, but came with the original install CD, which I t

  • Creating Post Script File from Word Document

    Hi How to create a Ps File from Word document.. Is there any api to do this ? ~Arjun

  • WAAS CM Configuration Issue

    I have a WAE running 4.1.3 that registered successfully to the CM but is failing to pull the config from the CM (also at 4.1.3). It shows up as activated and online, but nothing shows up under the Services column within CM - where you typically see A

  • Lightroom and Leopard

    I recently upgraded to Mac OS X 10.5 (Leopard), and now when I go into Lightroom, the Print module is unavailable. I get the following message: "An error occurred when attempting to change modules" This only happens when I'm trying to go into the pri

  • Can't change my default mail account. Only shows one account in settings

    I have two email accounts on ipad2, but only one shows up as a selection option for default. Would like to change default account to the account not showing as current default account.