Set current system date in a field on load of a page

Hi APEX users,
I read about a similar thread on the subject but I am just as confused.
Simply I need assistance with the following:
I have a page that has many fields and one of those fields is DATE_RESOLVED. This is a DATE Picker field but I want this field to show the current system date every time the form loads/reloads BUT yet give the user the ability to change the date if they should choose to do so by way of the DATE Picker calendar.
How would I achieve this?
Any help will be greatly appreciated. My form is functioning just fine but I just need to achieve this one last date function.
Thanks in anticipation for your assistancel.
Rick

Hi Ric,
the follwing should cover your requirements.
a)
On you main page screen, if you click on your particuar date item, say P1_MY_DATE
set the follwing:
#1 under Source,
Source Used: only when current value in session state is null
Source Type: Plsql expression or function
Source value or expression: sysdate
#2 under default
default value: sysdate
default value type: plsql expression
b)
On your main page screen, create a new page computation by clicking on the '+' icon next to computation on the left hand side (page rendering)
location- item on this page (default) -> next ->
compute item: select your item (P1_MY-DATE) -> computation point: Before regions ->computation type: plsql expression -> next ->
computation: sysdate -> next
(leave blank, unless you want this to be conditional) -> create
done...

Similar Messages

  • How to set current/system date to af:inputDate type field

    Hi,
    I am using <af:inputDate component to take date input from user. It is not a VO atrribute field. Could you pls suggest how to set system date to it as it loads on page by default.
    Regards,
    jitu

    Could you please provide the .jsff code as well. What you have used as value="#{bindings.date.inputValue}" in below code?
    <af:inputDate value="#{bindings.date.inputValue}"
    label="Sales Date"
    required="#{bindings.date.hints.mandatory}"
    shortDesc="#{bindings.date.hints.tooltip}" id="id1"
    binding="#{bean.searchDate}">
    <f:validator binding="#{bindings.date.validator}"/>
    <af:convertDateTime pattern="#{bindings.date.format}"/>
    </af:inputDate>

  • XL - Reporter - To set current system date as the PARAMETER to run a report

    Hi
    Version : SAP 2007 B
    Patch : 10
    Using the XL -  Reporter we had designed a stock report as per the client rquested format. In that Report , we use parameter function to get the start date and End date ( 2 PARAMETERS) for which the report should be generated.
    Using the Report Organizer , JOB was created for the above report scheduling that the report should run daily night 9 Clock and save it in Local Computer.
    Now comes the problem , how to provide the parameter ( Start and End Date - which is nothing but the server date or computer date)
    Is there is any way to set the XL-Reporter Parameter - as current date or server date .
    Thanks

    Hi Balaji,
    Check the following thread its solves your problem
    Re: XL Reporter Date Function
    *Close the thread if issue solved.
    Regards
    Jambulingam.P

  • How to display current system Date in the Date Input field ?

    Hi,
    I am having a Date Input field( binded to Data type). On load, i would like to display the current system date filled in that input field.
    How do i achieve this ?
    Reg/Venkat

    Hi Venkatesan,
    In your view in your init() method add the following code:
    wdContext.currentContextElement().setOrderDate(new Date(System.currentTimeMillis()));
    this is if your Date-attribute is in the root of the context.
    else you have to set the date in the node where the date-attribute is present with:
    IYOURNODEElement node = wdContext.createYOURNODEElement();
    node.setOrderDate(new Date(System.currentTimeMillis()));
    regards,
    Björn

  • Creating a field or workflow that responds to the Current System Date.

    In our activities/tasks we have a field that is the Expected Completion Date or Required Completion Date. Based on that date, and the current date, I want a workflow to trigger when the required completion date is less than 30 days away, sending daily reminders to the owner/manager that they have a activity/task due.
    The way I see it I have two options.
    1. Customize a field to be the system date. Create a workflow that says every time that field changes, and the date is within 30 days of required completion date, send out an email.
    2. Create a workflow that somehow incorporates the current/system date, and do the same thing as above, substituting the field with the actual date.
    I don't know how to make either of those options happen. Does anyone either have other options or advice on how to make this work?
    Thank you in advance!

    Hello Cyril,
    Here is an idea that could be done:
    You could create a dynamic step by having a step that holds all the properties for both configurations (the superset of the necessary variables) and an extra one that indicates which 'mode' the step is in.  Then you create the main Edit substep in whichever language you desire.  That substep window will then have a box/dropdown/etc. at the top you can use to choose between modes A & B.  When the user changes the value, you would dynamically change the rest of the window to contain the appropriate properties for mode A or B.  You then copy the property values in that window to the Step properties, and copy the mode to your variable and you can run the step in that mode.  When the step then runs, it checks the mode variable, and depending on its value, it will run the step in mode A or B.
    Now we could add a dialog that allows us to choose when we put a step down but we should still allow the user to change later via the Edit substep we create.
    I don't think we can create something that inserts a completely different step, but we can have one step that has the ability to do both and we can pick which one we execute.  Also note we still don't have the ability to edit the Panels for a step, so we have to use a new window that we call from our Edit substep to complete the step.
    Hope this helps.
    Regards,
    Olivier L. | Certified LabVIEW Developer

  • Assign current system date to the existing variant of date field

    Hi Experts,
       I am working with BDC for data uploading. Here I have a different requirement that how to assign the current system date to the existing variant of the  date field .
    The date field is defined as:   select-options s_date type sy-datum.
    Anybody have an idea, pls let me know.
    please help me .
    appreciate your valuable suggestions.
    Thanks.
    Prasad.

    Hi,
    try like this...
    SELECT-OPTIONS: s_date FOR sy-datum DEFAULT sy-datum.
    Arunima

  • Current System date in report

    Hi,
    Iam working on BW reports. Currently iam with report which needs to get the current system date automatically in reports.
    Can anybody help me on how to get the current system date in report automatically.
    I tried in layout but it gives all info. But i need only current system date.
    I even tried variable of type sapexit under 0calday. but as it is an variable it filters values with reg to current system date.

    Hi Ucas,
    U have to write the code for the variable as follows:
    1) Go to transaction SMOD
    2) Enter 'RSR00001' in Enhancement field. Also select the 'Components' radio button. And press 'Display'.
    3) Double click on the function module 'EXIT_SAPLRRS0_001'
    4) Then, double click on code text 'INCLUDE ZXRSRU01'
    5) Now, u reach a screen, where u can write ur include program. U have to write, for example, 'INCLUDE my_code'. Then double click on this to include ur code inside.
    6) The code can be :
    CASE i_vnam.
        WHEN '<write ur variable name>'.
        CHECK i_step = 2.
        s_range-sign = 'I'.
        s_range-opt  = 'EQ'.
        s_range-low  = sy-datum.
        APPEND s_range TO e_t_range.
    ENDCASE.
    Assign points if u find the above info useful.
    Message was edited by: Vishesh Pahariya

  • How to access current system date???

    Hi Experts,
    I am working on a process wherein a user creates a proposal and a notification is sent to the manager for approval.
    Now i need to send the date of creation as a attribute to the manager.
    Can anyone guide me as to how to get the current system date???
    Thanks a lot.
    Cheers
    Gaurav Raghav

    Hi Wojciech Matulewicz,
    I have tried using this before and i faced this problem.
    When i click on create proposal, the screen just refreshes and the CO execution doesnt ends.
    Without ending this field, however things work fine.
    here is the code:
    Method technicalDescription()
    IGPAttributeInfo date = output.addAttribute("DATE", IGPAttributeInfo.BASE_DATE);
                date.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
    Method execute()
    Date currDate = new Date(System.currentTimeMillis());
              contextElement.setDate(currDate);
    Method complete()
    output.setAttributeValue("Date", wdContext.currentContextElement().getDate());
    If i comment out this code, the CO execution works out fine, but on addition of this code the screen refreshes and CO execution doesnt end.
    Am i doing something wrong???
    please help me out with this.
    Thanks.
    Cheers
    Gaurav Raghav

  • DateNavigator: current system date properties

    Hi All;
    I need to help in using the DateNvigatorMarking API
    I am using WDDateMarkingCategory to change the color of the date.
    It is working fine, but for the Current System Date the changes don't apply.
    I am wondering how to change the properties for the current system date in the DateNavigator?
    Thanks in advance!
    Message was edited by: raja yakkanti

    Get the current system date and set the date value through the setAttributeValue().
    Date date = new Date(System.currentTimeMillis());
    IWDNodeElement element = wdContext.nodeMarking().createElement();
    element.setAttributeValue("date", date);
    wdContext.nodeMarking().currentMarkingElement().setDate(date);
    wdContext.nodeMarking().addElement(element);

  • I need to get the Current System Date and time in the format

    I need to get the Current System Date and time in the format
    *6/24/2009 11:30:29 AM*
    How do i do it ?

    I seem to be saying this a lot lately.
    Google is your friend.
    I googled "java current date format" and SimpleDateFormat featured prominently in the results.

  • Want to shedule a report in background with current system date

    Dear All,
    I want to schedule a report which is having date parameters in the  selection screen.
    What i want is that , every time in the schedulling period the report should run in current system date only with a variant.
    Would it be possible.
    Thanks in Advance.
    With Regards
    Shantanu

    Yes possible by 2 ways.
    I) This way you can use the current date dynamically
    Go to your variants in change mode,
    1. Check the box 'Selection Variable' for date.
    2. Click on selection variables
    3. Choose 'D' for dynamic date calc
    4. Choose current date and save.
    II)Default it in code
    Default sy-datum for the selection variable.
    Hope this helps.

  • How to get current system date and store in db

    may i know how to get the current system date so that i can store it into the database

    java.util.Date is NOT deprecated, just most of its methods are.
    Use
    new java.sql.Date(System.currentTimeMillis());to get the current date. Note that the date in a client machine
    may differ from the clock of the server!
    BTW: java.sql.Date extends java.util.Date.
    Fritz

  • Current System Date is not an open or authorised accounting period

    Hi
    Has anyone come across this system error message when running a Manual Internal Recon for a Supplier from Business Partners Module:
    "Current System Date is not an open or authorised accounting period"
    I couldn't find a post on it in the forum.
    The scenario:
    December 2010 Posting Period is Unlocked
    November 2010 & January 2011 Posting Period are Locked
    Suppliers transactions to be reconciled average between August 2010 to December 2010, the Suppliers Currency is USD, the Recon Date is 25/01/2011 (todays date), the database LC = ZAR, SC = ZAR therefore making the USD = FC, Recon total = zero (after ticking relevant postings) > Reconcile > Gives above error message
    I tested x3 scenarios:
    - Change Recon Date to 31/12/2010 (as December 2010 period is Unlocked) = Recon reconciles
    - Open the January 2011 Posting Period = Recon Reconciles
    - Reconcile any Local supplier = LC (ZAR) Supplier with the same Recon Date (25/01/2011) = Recon Reconciles
    With the above mentioned it looks like something to do with Exchange Rates based off Recon Date trying to pull from January 2011 but can't because Jan 2011 Posting Period is Locked.
    Any ideas on the error message or why this may happen.
    Regards
    Kurt Walters

    Hi Rakesh
    Thanks very much for the reply, your answer has agreed to what I have said so I will consider this message closed now, thanks for the help much appreciated.
    Gordon - I am aware of this as per my post, just wanted to check as LC can post fine with the Period being closed but the FC will not based on the Recon Date, as per Rakesh agreement due to the FC looking at the Recon Date as well as Exchange Rate for that recon date and Period not open it will gives an error message.
    Thanks both for your replies, much appreciated.
    Regards
    Kurt Walters

  • Export Preset to Rename with Current system Date?

    Hi All,
    I'm trying to build some export presets with a naming convention to include the current system date, eg: YYYYMMM-Title-Custom Text. This convention is oftened required for photo club, local, national & international photo competitions. The only date function I can find is the 'capture date'. Is there a way to modify the Export Filename Template Editor to include 'current system date' ??
    Edit:
    Sorry forgot to add, LR5.3, Mas OS 10.9.1
    Regards
    Craig

    You need to click the 'Define' button and choose Date/Time Now (Custom Metadata):
    If you need more help, please contact me outside the forum - thanks.
    Rob

  • Text label to show current system date?

    I'm totally new to Flex Builder 2. To help me get off the
    runway, here's a simple question I'm almost embarrassed to ask:
    How can I get a text label to display the current system date
    please? <hides head in shame>

    http://livedocs.adobe.com/flex/2/langref/Date.html

Maybe you are looking for

  • Mp3 links no longer stream in firefox 4.0 but it works in 3.6, how can i make 4.0 play a mp3 stream like before

    i dont think this is a problem with the quick time plugin as it works fine on 3.6. is it maybe more the way firefox 4.0 looks at the .mp3 links and only wants to save it? i like the fact you can stream links rather than have to save them first before

  • Upload Excel file to itab with more than 255 chars

    I want to upload an excel file to internal table with more than 255 characters in one of the field. However it restricts the upload to only 255 characters. Currently I am using the code   CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'   EXPORTING i_field_se

  • Adobe form processing issue in portal

    Hi, We have one issue on user processing of adobe form in portal When user clicked on approve or reject button of HR position form its not completing. Its keep on processing till 3o minutes,i mean processing wheel not completing. What is reason for t

  • MDB Suspend/Resume server startup

    Hello All, We have a requirement where we want to stop MDBs from starting even after server restart. We have tried the following In MDB control page in Admin Console there is a feature in WLS where we can Suspend/Resume MDBs from consuming messages.

  • Error writing to file during backup

    I have Photoshop Elements 12. I can backup a catalog to my Mac, but not to an external drive. I have tried two different externals. Both work with my PC, but not the Mac. I created a new 1 photo catalog as a test. It will back up to the Mac, but not