CR 2008: Setting currrentdate as default begin date in a date range paramet

I have a Crystal Report with a date range parameter.
How do I set the Begin Date to be todays date ?
I am using a Universe as the data source.
Thanks,

Hi Rajesh,
1) Is the prompt a constant value?
    If yes then type "1900/01/01" in the from value as default value. And in the report selection formula should look similar to this :
DateVar DateParamValue:-
If   = Date(1900,1,1)  Then
    DateParamValue := CurrentDate
Else
    DateParamValue := {?DateParam};
    {Table.DateField} = DateParamValue;

Similar Messages

  • HOW TO SET A ITEM DEFAULT VALUE  to today

    I have a item using select list and I like to set this item default value as
    today's date , such as "select to_char(sysdate,'YYYY-MM-DD') from dual"
    HTMLDB failed recongnize the default value, or throw error Error ERR-9132 Error in PLSQL expression for item default code, ...". I have tried each of 3 avaialable Default Value Types
    Per http://forums.oracle.com/forums/thread.jspa?messageID=443287, it is used to be doable, but the default value type (sql) is no longer avaialble in HTMLDB 2.0
    I would appreaciate it very much if anyone has successfully done this before, either set to today or current month

    Ching - Did you try a PL/SQL Expression using to_char(sysdate,'YYYY-MM-DD')?
    There have been no changes to the item default types available in HTML DB. The thread you referenced is for Oracle Portal, a separate and unrelated product.
    Scott

  • How to set a default start and/or end date for New Events based on trigger date.

    I'm using the CalendarActivityListener to get current row when clicking on an existing event. As per previous posts this listener gives you access to event detail including Start Date, End Date, etc.
    However, what I want to do is to default the start (and end) dates for New Events based on the trigger date.
    I've tried the CalendarListener and can grab the Trigger Date from it - however, I can't see a way to pass this directly to the popup/dialog I'm using to create the new event.
    At present I'm putting the TriggerDate into the ADFContext session scope e.g. ADFContext.getCurrent().getSessionScope().put("TriggerDate",calendarEvent.getTriggerDate());
    Then, I've tried multiple approaches to try and "get" the TriggerDate from session scope to drop it into my new Calendar Event basically, I'm trying to default the InputField(s) associated with the Start Date using the value from the session - I've tried
    1. setting the default value for the InputField in the jspx using a binding expression i.e. value="#{sessionScope.TriggerDate}" - this actually sets the value appropriately when the jspx is rendered but, when I go to create I get a NPE and I can't debug. I assumed that it might be a Date type issue - it would appear that CalendarListener provides a date of type java.util.Date and that the StartDate attribute of my VO/EO/table is a DATE and therefore requires oracle.jbo.domain.Date so I tried casting it - to no effect
    2. Using a Groovy expression *(StartDate==null?adf.context.sessionScope.TriggerDate:StartDate)* in my calendar's EventVO to default the Start Date to the same result
    Any thoughts or ideas?

    John,
    Thanks for that suggestion - could not get it to work. However, I did manage a different approach. I finally determined the sequence of events in terms of how the various events and listeners fire (I think).
    Basically, the CalendarActivityListener fires, followed by the listener associated with the Calendar object's Create facet, followed finally by the CalendarEventListener - the final is where the TriggerEvent is available and then finally, control is passed to the popup/dialog in the Create facet. So, my approach of trying to set/get the TriggerDate in the user's HTTP session was doomed to failure because it was being get before it had been set :(
    Anyway, I ended up adding a bit of code to the CalendarEvent listener - it grabs the current BindingContext, navigates through the DCBindingContainer to derive an Iterator for the ViewObject which drives the calendar and then grabs the currently active row. I then do a few tests to make sure we're working with a "new" row because I don't want to alter start & end dates associated with an existing calendar entry and then I define the Start and End dates to be the Trigger Date.
    Works just fine. Snippet from the listener follows
    BindingContext bindingContext = BindingContext.getCurrent();+
    *if ( bindingContext != null )    {*+
    DCBindingContainer dcBindings = (DCBindingContainer) bindingContext.getCurrentBindingsEntry();+
    DCIteratorBinding iterator = dcBindings.findIteratorBinding("EventsView1Iterator");+
    Row currentRow = iterator.getCurrentRow();+
    if ( currentRow.getAttribute("StartDate") == null)+
    currentRow.setAttribute("StartDate", calendarEvent.getTriggerDate());+
    if (currentRow.getAttribute("EndDate")==null)+
    currentRow.setAttribute("EndDate", calendarEvent.getTriggerDate());+
    *}*

  • Dump in user exist CC01 to set default value to valid from date

    Dear friends,
    Task is to set default value to valid from date field in Transaction "CC01".
    In INCLUDE ZXCCAU01 of Function 'EXIT_SAPMC29C_001' in Enhancement 'PCCD0001' I written the code like this
    DATA var LIKE sy-datum.
    var = var + 1.
    which is not related to program by creating project and activated the project.
    When I run cc01 it is giving dump.
    Error is :
    Program "SAPLXCCA" tried to use screen 1000.
    The screen does not exist.
    Can some one guide me What is the problem and How to resolve this.
    If not, Is there any other method this can be done.
    Regards,
    Venkat

    Hi venkat,
    DATA var LIKE sy-datum.
    var = var + 1.
    the code u written i guess not ok.The code used by kishan is correct. i.e
    DATA var LIKE sy-datum.
    sy-datum = sy-datum + 1.
    var =  sy-datum.
    write var.
    use the above code.
    SAPLXCCA is a functionpool not a program.please check the same.
    regards,
    Nagaraj

  • Is there any way we can set default value for a Date Attribute to current date in Master Data Services

    Is there any way we can set default value for a Date Attribute to current date in Master Data Services.
    I as well wants to know that is there any posibility to show Calendar control while input data into respective date attributes.
    Thanks.

    Hi Anagha,
    So far i havent found any way to set todays date by default from MMI, but i guess this flow should work as workaroud
    1. Add buisness rule which can set a default value when Date = NULL/Blank
    2.get the entity table ,use -select EntityTable from mdm.tblEntity where Name = '<enter entity name>'
    3.Go to that table and add a after update trigger like
    if uda_<entityid>_<attributeid(Date attribute)> = default value
    update uda_<entityid>_<attributeid(Date attribute)> =getdate() where id = <LastUpdatedRow>
    I will check on this too from my side.
    By the way AFAIK i dont think so calendar control integration is possible .

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

  • Default posting date as 'Today Date' while executing CAT5 to transfer hours

    Hi Experts,
    I want to schedule a job in background to execute CAT5 automatically but system should consider posting date as 'as on date'/ 'Current date' for transferring the all hours into project otherwise it throws an error 'Posting period is not open'.
    So please let me know, how can I configure the system so that it should consider posting date as 'Today Date' by default while executing CAT5 in both cases whether manually or automatically.
    Thanks in advance.
    With regards,
    Sandy
    Edited by: Sandyk on Nov 5, 2009 3:31 PM
    Edited by: Sandyk on Nov 5, 2009 3:33 PM

    Hi,
    Try to take a look the setting of the following transaction,
    IMG> FA> AR & AP> Business Transactions> Incoming Payments> Manual Incoming Payments> Define Tolerances
    See what has been set for payment term for Residual Items.
    Regards,

  • TS3579 I found this useful because I did not know about the effect of typing in data and that you could only drag to rearrange the data.  I had typed in data before and this had caused problems but restoring defaults did not cause correct dates to show up

    I found this  (TS3579: If the wrong date or time is displayed in some apps on your Mac Learn about If the wrong date or time is displayed in some apps on your Mac) useful because I did not know about the effect of typing in data and that you could only drag to rearrange the data.  I had typed in data before and this had caused problems but restoring defaults did not cause correct dates to show up in Finder. 

    It sounds like there are a couple things going on here.  First check if you have a successful install of SQL Server, then we'll figure out the connection issues.
    Can you launch SQL Server Configuration Manager and check for SQL Server (MSSQLSERVER) if default instance or SQL Server (other name) if you've configured your instance as a named instance.  Once you find this, make sure the service is started. 
    If not started, try to start it and see if it throws an error.  If you get an error, post the error message your hitting.  If the service starts, you can then launch SSMS and try to connect.  If you have a default instance, you can use the machine
    name in the connection dialog.  Ex:  "COWBOYS" where Cowboys is the machine name.  However, if you named the SQL Server instance during install, you'll need to connect using the machine\instance format.  Ex:  COWBOYS\Romo (where Romo
    is the instance name you set during install).
    You can also look at the summary.txt file in the SQL Server setup error logs to see what happened on the most recent install.  Past install history is archived in the log folder if you need to dig those up to help troubleshoot, but the most
    recent one may help get to the bottom of it if there is an issue with setup detecting a prior instance that needs to be repaired.
    Thanks,
    Sam Lester (MSFT)
    http://blogs.msdn.com/b/samlester
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and
    "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • How to set todays date in message date input field in uix

    Hello everybody,
    Im using jdeveloper 9015+adf+uix
    I am having an input form and in that i want to set the date input field with the current date(default value).
    Does anybody of you know how I should do this.
    Any help is appreciated,
    Thanks in advance

    Hi,
    Did you figure out on how to default system date in a date input field??
    I have a similar requirement in OA framework. Please let me know if you have any ideas.
    Thanks,
    vinay.

  • Set Null as Default  for input parameter to a stored procedure

    hi ,
    How can we set default values as NULL to an input parameter in a stored Procedure.
    create or replace procedure emp_proc ( p_test_input in varchar2
                                                        p_emp_id in number,
                                                        p_emp_name in varchar2,
                                                       p_manager_id in number )
    as
      begin
       if ( upper ( p_test_input ) = 'I' )
       then
          insert into emp
          values      ( p_emp_id  ,p_emp_name ,p_Manager_id,sysdate );
       elsif ( upper ( p_test_input ) = 'D' )
       then
          delete from emp
          where       emp_id  = p_emp_id;
       else
          dbms_output.put_line
             ( 'Please input ''A'' for ADD or ''D'' Delete  EMPLOYEE'
       end if;
    end;As Shown above if i want to do only delete operation
    i want to call this procedure like without passing extra parameters .
    EXECUTE  emp_proc('D',1010);Edited by: Rede on May 28, 2010 12:21 PM
    Edited by: Rede on May 28, 2010 12:22 PM

    create or replace procedure emp_proc ( p_test_input in varchar2,
                                                        p_emp_id in number,
                                                        p_emp_name in varchar2 default null,
                                                       p_manager_id in number default null )

  • MIRO: How to set GR date as baseline date ?

    dear friends,
    can we set the GR date as the baseline date in MIRO (either GR doc posting date or Document date )?

    Hi,
    Baseline date is configured based on Payment Terms, that can be possible using customizing, there is no relation with GR date and other dates.
    Still if you want set the Baseline date with some other default date or PO date, or GR date, -
    IT IS POSSIBLE
    by enhancements
    directly applying enhancements will not work for you, you just have to work smartly by applying 2 enhancements to get the desired results
    I will tell you how to do that, just let me know the version of SAP you are working on..
    I tried it on ECC 6, and it is working very fine

  • Safari (Versjon 6.0.5 (8536.30.1)) does not remember my toolbar arrangement or other setting like the default search engine, homepage, etc. in OS X 10.8.4.  Private Browsing is OFF. Can someone help?

    Safari (Versjon 6.0.5 (8536.30.1)) does not remember my toolbar arrangement or other setting like the default search engine, homepage, etc. in OS X 10.8.4.  Private Browsing is OFF. Can someone help?

    Triple-click the line below on this page to select it:
    ~/Library/Preferences/com.apple.Safari.plist
    Right-click or control-click the highlighted line and select
    Services ▹ Show Info
    from the contextual menu.* An Info dialog should open.
    Does the dialog show "You can read and write" in the Sharing & Permissions section?
    In the General section, is the box labeled Locked checked?
    What is the Modified date?
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above.

  • How can I stop getting demand to update Adobe Reader when Foxit is set as my default reader?

    Windows XP, Firefox 18.
    Foxit is set as my default reader, but you (Firefox) keep demanding I update Adobe reader while blocking Foxit from opening. I do not want the current Adobe reader on my machine. Why won't Firefox respect my choice of default reader?

    Hello again, madperson. I spent a lot of time this afternoon trying to get back to you but just couldn't find the right place in Firefox...very frustrating. Have just now found an e-mail w/ link back here.
    I am just beginning to get the idea that updated Foxit software is not the same as am updated Foxit plugin for Firefox. Firefox is telling me that I have a Foxit plugin installed, v. 2.2.3.111, but I am not sure how current that is.
    I took the link you suggested here (thank you!), which does offer some
    Foxit plugins for Firefox. However, the latest seems to be for Foxit 5.3, and the new Foxit software I downloaded today is 5.4. So where does that leave me?
    Thank you so much for your help!

  • [svn:fx-trunk] 12057: Label (and RichText) will show text as tooltip if truncated and new showTruncationTip flag is set to true  ( defaults to false because Label is often used in skin that have their own tooltip logic ).

    Revision: 12057
    Revision: 12057
    Author:   [email protected]
    Date:     2009-11-20 11:22:05 -0800 (Fri, 20 Nov 2009)
    Log Message:
    Label (and RichText) will show text as tooltip if truncated and new showTruncationTip flag is set to true (defaults to false because Label is often used in skin that have their own tooltip logic).
    QE Notes: New API (showTruncationTip)
    Doc Notes: New API (showTruncationTip)
    Bugs: SDK-23639
    Reviewer: Gordon
    API Change: Yes
    Is noteworthy for integration: Yes
    tests: checkintests mustella/gumbo/components/Button mustella/gumbo/components/Label
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23639
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as

    Hi blabla12345,
    (untested and without warranty)
    replace this line:
    const sSaveCUBE = "CUBE";
    with this:
    const sSaveCUBE = "cube";
    Have fun

  • Stop button sets everything to default

    Hi everybody,
    I have a vi with too many switches (ON/OFF) and I would like for them to be set to the default value (OFF in my case) each time the vi stops by pressing the STOP button.
    I tried to use local variables in a case structure after the stop button but I have only one while loop running and it seems that the vi does not have any time to write to the local variables before it stops running. Although the local variable or property node solution would require too many of the variables to be in this case structure.
    Is there a way to reinitilize everything to default when the vi stops running?
    Thanks in advance...

    Yes, with an "invoke node", see this recent thread.
    In your case, you would placen it inside the stop event, or outside the main loop. Ensure that it executes as last step, (either with data dependency or a sequence frame or similar).
    If you use events, you can make it even happen if the user closes the VI by clicking on the big X.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • SSRS expression issue

    Hello All, I'm having an issue with adding parameters to the report with the below statement. When I add @Start as a parameter in report and set the default value to =DATEADD( "M", -1, DATEADD("QQ", DATEDIFF("QQ", 0, Today()),0)), I get an error sayi

  • Satellite M100-126 - Win 7 32bit indicates "only" 3GB of usable memory

    Hi, Here's the situation: I have a Toshiba satellite M100-126 (PSMA1E - 0PV021FR) running Windows 7 32bit. It originally had 2gigs of Ram, but after my brother's laptop broke down (motherboard failure) I took his 2x2gig ram and installed them in my l

  • Not able to get the Check and send buttons.

    Hi I am working on HCM Process n Form, It has integration of Webdynpro, Adobe and Process Forms. We can Create and Modify the position in this applications, There is also option for Saving it as Draft and then Opening it and sending it. But now when

  • App Store Germnay - when will we get usefull apps here?

    Thanks to Apple I can only use the german App Store. So I wonder who at Apple checks the Apps we get here... I have no need for Hongkong Weather, Dallas Radar Cameras, Apps in Japanese. On the other hand not only I would love to have usefull Apps lik

  • X201 Ultrabase Keyboard / Mouse Issues

    Hello, I have recently deployed 3 identical X201 systems with the Ultrabase to some of my users, they are imaged systems and should all work virtually the same but one is having an odd quirk.  If he turns the system on while it is docked, the externa