Preselecting a default date on date picker

Hi
oracle 10g xe apex 2.1.x on windows xp
By default date picker always defaults to current date. I want it to default to a date value that has already been selected by the user in the current page. For eg. it will be a variable of the type :P1_report_date.
Is this possible?
Thanx
SR

I do something like:
Default Value: to_char(add_months(sysdate,-3),'DD-MON-RR')
Default Value Type: PL/SQL Expression
This gives me a date three months back from today in the date picker format. Of course you can modify to use the date picker format you are using.

Similar Messages

  • Unable to set default date for Date Picker item using Auto Row Processing

    Okay, I have searched through the forum for an answer, and have not found a thing to account for my problem.
    First, does anyone know if using Auto Row Processing has problems updating an item/field in a record where the Source is defined as Database Column if the 'Display As' is defined as 'Date Picker (MM/DD/YYYY)'?
    I ask this only because I found out the hard way that Auto Row Processing does NOT fetch the value for an item where the field is defined as TIMESTAMP in the database.
    My problem is as follows: I have a form that will CREATE a new record, allowing the user to select dates from Date Pickers, text from Select Lists, and entering in text into a Textarea item. The information is saved using a standard (created through the Auto Row Processing wizared) CREATE page level button. After the record is created the user is able to go into it and update the information. At that time, or later, they will click on one of two buttons, 'ACCEPT' or 'DECLINE'. These are Item level buttons, which set the REQUEST value to 'APPLY' (Accept) and 'UPDATE' (Decline). The Accept button executes a Process that changes the Status Code from 'Initiated' to 'Accepted', and sets the Declined_Accepted_Date to SYSDATE, then another Process SAVEs the record. The Declined button runs a Process that changes the Status Code from 'Initiated' to 'Declined', and sets the Declined_Accepted_Date to SYSDATE, then another Process SAVEs the record.
    However, even though the Status Code field is updated in the database record in both Accepted and Declined processing, the Declined_Accepted_Date field remains NULL in the database record (by looking at the records via SQL Developer). WHY??? I looked at the Session State values for both the Status Code and the Declined_Accepted_Date fields and saw that the fields (items) had the expected values after the process that SAVEs the record.
    The following is the code from the Accept button Page Process Source/Process:
    BEGIN
    :P205_STATUS_CD := 'A';
    :P205_REF_DECLINE_ACCEPT_DT := SYSDATE;
    END;
    As can be seen, the Status Code and Declined_Accepted_Date items are set one right after the other.
    As an aside, just what is the difference between Temporary Session State vs Permanent Session State? And what is the sequence of events to differentiate the two?

    Here's yet another thing that I just looked into, further information...
    One other difference between the date field I am having problems with (Accepted_Declined_Date), and other dates (with Date Pickers) in the record is that the Accepted_Declined_Date never gets displayed until after it is set with a default date when the Accept and Decline buttons are pressed.
    One of the other dates that works, the Received Date, is able to write a default date to the record that is never typed into the box or selected from the calendar. That date is placed into the box via a Post Calculation Computation in the Source, which I set up as: NVL(:P205_REF_RECEIVED_DT,TO_CHAR(SYSDATE,'MM/DD/YYYY'))
    However, I do remember actually trying this also with the Accepted_Declined_Date, and setting the Post Calculation Computation did not work for the Accept_Decline_Date. Could this be because the Accept_Decline_Date is never rendered until the Status Code is set to Declined (in other words, there is no need to display the date and allow the user to change it until the record is actually declined)???
    The control of the displaying (rendering) of the date is set via the Conditions / Condition Type: Value of Item in Expression 1 = Expression 2
    Expression 1 = P205_STATUS_CD and Expression 2 = L
    Does this shed any light???

  • In the Date Picker, How can I default to select * dates if the user does ..

    In the Date Picker, How can I default to select * dates if the user does not select a date.
    Thanks,
    Doug

    Doug,
    Now lets say l want everythingCould you post some sample data and the output that you want to get..? It would be much easy to understand the requirements...
    When you mean everything, I am assuming you need all possible dates possible between date1 and date2.
    you can use... (from asktom.oracle.com).
      1  select to_date('12-jan-2009','DD-MON-YYYY') + rownum -1
      2    from ALL_OBJECTS
      3    where rownum <= (to_date('20-jan-2009','dd-mon-yyyy') -
      4*                     to_date('12-jan-2009','DD-MON-YYYY') +1 )
    sql> /
    TO_DATE('
    12-JAN-09
    13-JAN-09
    14-JAN-09
    15-JAN-09
    16-JAN-09
    17-JAN-09
    18-JAN-09
    19-JAN-09
    20-JAN-09
    9 rows selected.
    For your case, since you have date1 and date2...
    select to_date(:p12_date1,'DD-MON-YYYY') + rownum -1
      from ALL_OBJECTS
      where rownum <= (to_date(:p12_date2,'dd-mon-yyyy') -
                        to_date(:p12_date1,'DD-MON-YYYY') +1 )Should work.. in my opinion...Haven't tested the second one in Apex .
    Is this what you were looking for ..?? If not, please elaborate...
    Thanks,
    Rajesh.

  • Default Time in Data Picker Calendar

    Hi All
    I'm using one of the new Date/Time picker items in Apex 4.0.2. When the user clicks the Calendar image the Calendar is displayed with the current date and time. However I would like it to display by default the current date and a time of 1000hrs. Is there anyway to do this?
    Thanks
    Shunt

    This kind of works, but there must be a better way?
    $('#P58_DATE').datepicker("option", {
       beforeShow: function(pDateText, pInst) {
          if (!$(this).val()) {
            $(this).val('&P58_TODAY. 10:00');
    });http://apex.oracle.com/pls/apex/f?p=579:58

  • Foreign trade and customs data should be picked automatically in delivery

    Dear All,
    Foreign trade and customs data should be picked automatically in delivery note and in the invoice  once we enter it in the master data for L/C Local Sales for example country  Saudi arabia to Saudi Arabia in vi95 or any other transaction you have for this particular master data entry.please help

    Check the customizing settings under
    IMG - SD - Foreign Trade/Customs - Basic Data for Foreign Trade -  Define Business Transaction Types And Default Value
    And the data should be picked up from Material Master record in Foreign trade export view.
    They are checked as mandatory fields according to customizing under:
    IMG - SD - Foreign Trade/Customs - Control Foreign Trade Data in MM and SD Documents - Incompleteness Schemas for Foreign Trade Data
    Also, refer following link:
    [Customizing Foreign Trade Master Data |http://wiki.sdn.sap.com/wiki/pages/viewpage.action?spaceKey=ERPLO&title=CustomizingForeignTradeMasterData&decorator=printable]
    Thanks & Regards
    JP

  • Default key date, Document date and posting date needs to be changed automa

    Hi Experts,
    The user wants to create a variant for Foreign currency valuation, wherein the default key date, Doc date and Posting date needs to be changed every month automatically. Is it possible?
    Please let me know your thoughts.
    Warm regards,
    Murukan Arunachalam

    Hi
    Please follow this process.
    Only specify fields that should be changed
    Select these fields by entering an X in the checkboxes
    Enter a U in the UPDATEFLAG field
    Always specify key fields when changing the data, including in the checkboxes
    The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
    Maintain quantities and dates in the schedule line data.
    1. Minimum entry:
    You must enter the order number in the SALESDOCUMENT structure.
    You must always enter key fields for changes.
    You must always specify the update indicator in the ORDER_HEADER_INX.
    2. Commit control:
    The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

  • Microsoft Date and Time Picker Control 6.0 (SP6) errors

    One of our functioning VBA projects in Outlook 2010, running under Windows 7 Professional (64-bit), unexpectedly stopped functioning a few months ago. When running the VBA macro we started receiving the compile error message:
    "Object library invalid or contains references to object definitions that could not be found"
    PROBLEM FORM CONTROL:  The message was extremely frustrating because it gave no detailed indication of the source of the problem.  With a little research, however, we found that the
    Microsoft Date and Time Picker Control 6.0 (SP6), on a userform accessed by the macro, was generating the error.  A number of older articles, such as the one included below, indicated that we needed
    to re-register the MSCOMCT2.OCX form control, which we did successfully (as did the original author in his question link below).  Unfortunately, as the original author found, simply re-registering the form control did not resolve the problem.
    UNRESOLVED QUESTIONS:
    1. Does anyone know why this functioning control would unexpectedly cease to function?
    2. Can anyone help us restore the functionality of the 'Microsoft Date and Time Picker Control 6.0 (SP6)'?
    3. How come the form control is listed in the object library, is available in the 'Additional Controls' dialog, and can be inserted into a form, without any indication that it is broken?
    SUPPORT ENGINEER RUN-AROUND:  Another frustration is that a responding support engineer, in the prior article, keeps referring the author back to this forum, yet the question is apparently never answered back here in
    the TechNet forum (which ironically refers us back to the original article in the other forum - a game of musical chairs!).
    We suspect that the solution to this problem may be similar to resolving this issue for other similar form controls in other Office 2010 application, not just Outlook.  After several years, and a myriad questions on the internet regarding
    this exact subject, is there someone who can definitively resolve this issue with this control?
    Thank you for any help.
    LINK TO THE ORIGINAL UNANSWERED QUESTION (i.e., regarding the MSCOMCT2.OCX control and reference back to this forum):
    http://answers.microsoft.com/en-us/office/forum/office_2013_release-excel/ms-date-and-time-picker-contol-60-sp-6-w-excel/9b0cc596-5e13-48bc-b03e-13dbfd1c7f9d

    Hi,
    Would you like to tell me your Excel version number (Go to Account>About Excel). I tested in my version :15.0.4569.1504 and the Date and Time Picker Control 6.0 still could be used.
    Then,>> My PC is 64 bit.  I believe my version of Office is also 64 bit.<<  Office 2013 32 bit also could be installed in 64bit operation system. We could check it with Account>About Excel.
    Next, as you said >>After I exited 'Design Mode,' it started working again.  I tested it, along with my 'Clear Form' button multiple times.  It seemed to be working fine.  I closed the document and reopened it.  Enabled Macros. 
    When I tried to use it after reopen, it doesn't work again.<< 
    I recommend we recreate a new blank Excel file and insert the Date and Time Picker Control 6.0 to test.
    If it still does not work well, please try to reinstall and re-registry it. Follow the link:
    https://social.msdn.microsoft.com/Forums/office/en-US/36f83f24-cd76-4f8e-aa7b-5f166666e7d3/excel-2013-popup-calendar
    https://social.msdn.microsoft.com/Forums/en-US/91cf3127-70fe-4726-8a27-31b8964430c5/registering-mscomct2ocx-in-64-bit-windows-7?forum=sbappdev
    If it works well, I suppose this issue is related to macros. I recommend you post the question to MSDN forum to debug them:
    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=exceldev
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Issue with Date and Time Picker on Windows 8.1 and Office 2013

    We are having a issue with the Developer tool in Excel called the Date and Time Picker which puts a calendar field into the spreadsheet where you can select a date from the calendar popup
    If we change this date field and then save and close and reopen it reverts back to the previous date before the change was made
    If we do the same process on a Windows 7 machine with Office 2013 it saves the changes we made to the Date and Time picker field

    Hi jdono2,
    I'm using Windows 8 and Office 2013,and I can't reproduce this issue.
    Please make sure you have already upgraded to the latest version of excel, try to reregister the MSCOMCT2.OCX.
    Also you can try to use another date picker add-in to test this issue.
    http://social.msdn.microsoft.com/Forums/office/en-US/36f83f24-cd76-4f8e-aa7b-5f166666e7d3/excel-2013-popup-calendar?forum=exceldev
    Wind Zhang
    TechNet Community Support

  • Default for baseline date  in Payment terms

    Hi All,
    Can anyone please explain me the options in OBB8 default for base line date 1. No Default 2. Posting Date 3. Document date 4. Entry Date while creating payment terms with examples.
    It's very very very Urgent!!!!!!!!!!!!
    Thanks in advance.
    Boppana

    Hi,
    The following are the examples:
    1. No default:  Self explanatory, hence system does not consider any default value to start for calculation of due date. The baseline date has to be entered manually at the time of Invoice creation.
    2. Posting Date: The date of entry in the system 31-Jul-11 (after two days).
    3. Document Date: The date on the physical Invoice which we key in at the time of Invoice entry. Say for example 25-Jul-11.
    4. Entry Date: This is the system date i.e. todayu2019s date 29-Jul-11. This date is internal in the system and not controllable or editable.
    To summarize, for 2, 3 & 4 the system defaults the baseline date (changeable) at the time of Invoice entry but, for 1 system does not default any baseline date.
    Regards,
    Kiron Kumar T.

  • GRN Date (Migo Date) as Default date in MIRO

    Dear All,
    The client requirement is like this,
    The default Base Line date for MIRO Document should be the GRN Date (MIGO Date). But in Payment Term configuration only Document Date, Posting Date, No default, Entry Date are there. We can change the base line date at the time of MIRO.
    But Client requirement is it should come by default at the time of doing MIRO,
    Is there any user exit or enhancement for this.
    Sree

    Hi
    Base Line Date
    Vijay

  • Asset Value Date & Posting Date as defaulte date

    Dear All,
    In CJ88,the posting date & value date is 31.10.2009 by default. The asset value date provided by us is 28.10.2009. The posting date & value date should be the actual date of entry (28.10.2009 in this case) by default.
    How can we do this.
    Do revert
    Regards,

    Regrettably to inform you that in R/3 standard, posting date is always 
    the last day of the period to settle as settlement is a period end     
    operation. The document date is the day when the operation is performed.
    Considering AuC is involved in this case, please check transaction CJ88,
    where you will find the field 'asset value date', where you can manually enter the asset value date you want to have.
    Blaz

  • Microsoft Date and Time Picker Control 6.0 - Need help!

    I am working on a form in Office 365 Excel 2013 that uses the Microsoft Date and Time Picker Control 6.0.  When I set the form up last week, this Active X control was working perfectly.  The weekend goes by...and now it's not working at all? 
    My PC is 64 bit.  I believe my version of Office is also 64 bit.  When I researched this issue online, I found lots of people who indicated that this control was missing in their development kit.  It was and has always been available in mine
    (i.e. I didn't have to load an MSCOMCT2 file).  Further, this control WAS WORKING when I created it last week.  Now it is not, even though no changes have been made to it.  I can place the control on the sheet and even set properties for it. 
    But once I click out of Design Mode, it is not functioning.  It doesn't open or respond to any clicks on it. 
    Can anyone help me identify a reason why it may have suddenly stopped working?  I don't think it is macro-related because I have a 'Clear Form' button on the same page and it works just fine.
    UPDATE:  I've noticed something else peculiar but relevant.  My office 365 just did some updates.  When updates were completed, it auto-reopened my file.  I noticed that the Date/Time Picker button looked funny (really pixelated). 
    So I hit 'Design Mode' and resized it.  After I exited 'Design Mode,' it started working again.  I tested it, along with my 'Clear Form' button multiple times.  It seemed to be working fine.  I closed the document and reopened it. 
    Enabled Macros.  When I tried to use it after reopen, it doesn't work again.  Won't respond to ANY attempts to click on it. I can click on 'Design Mode' and it sees the control, edits properties, etc.  But when you click out of 'Design Mode,'
    it's a dead button again.  I also went to someone else's desk to test this form.  Same problem.  Date/Time picker button doesn't work, even after enabling macros.  The Clear Form Button has no problems though.
    Thanks!

    Hi,
    Would you like to tell me your Excel version number (Go to Account>About Excel). I tested in my version :15.0.4569.1504 and the Date and Time Picker Control 6.0 still could be used.
    Then,>> My PC is 64 bit.  I believe my version of Office is also 64 bit.<<  Office 2013 32 bit also could be installed in 64bit operation system. We could check it with Account>About Excel.
    Next, as you said >>After I exited 'Design Mode,' it started working again.  I tested it, along with my 'Clear Form' button multiple times.  It seemed to be working fine.  I closed the document and reopened it.  Enabled Macros. 
    When I tried to use it after reopen, it doesn't work again.<< 
    I recommend we recreate a new blank Excel file and insert the Date and Time Picker Control 6.0 to test.
    If it still does not work well, please try to reinstall and re-registry it. Follow the link:
    https://social.msdn.microsoft.com/Forums/office/en-US/36f83f24-cd76-4f8e-aa7b-5f166666e7d3/excel-2013-popup-calendar
    https://social.msdn.microsoft.com/Forums/en-US/91cf3127-70fe-4726-8a27-31b8964430c5/registering-mscomct2ocx-in-64-bit-windows-7?forum=sbappdev
    If it works well, I suppose this issue is related to macros. I recommend you post the question to MSDN forum to debug them:
    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=exceldev
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • DATE AND TIME PICKER ACTIVEX NOT WORKING

    The microsoft date and time picker (6.0) is not working in systems which doesnt have MS office. What is the solution to use this in systmes which doesnt have office.

    I'm not sure what the date and time picker does, but if you use an ActiveX object which does not exist on another system, the only way for it to work is to install MS Office on the target machine. The ActiveX component has to be registered on the systems.
    Probably not what you wanted to hear.
    Is there any way you can get what you want without using ActiveX?
    Mark

  • Unable to create table with column default value with date interval

    Please help to create table with calculated date defaullt value:
    CREATE TABLE emp (
      birth_date  DATE  DEFAULT sysdate + interval '3' day NOT NULL
    or
    CREATE TABLE emp (
      some_date DATE,
      birth_date  DATE  DEFAULT some_date NOT NULL
    or
    CREATE TABLE emp (
      some_date DATE,
      birth_date  DATE  DEFAULT some_date + interval '3' day NOT NULL
    below syntax error:
    TT1001: Syntax error in SQL statement before or at: "+"

    I'm afraid this is not possible; as per the SQL Reference, TimesTen only supports 'constant expressions' for the DEFAULT clause and none of these are constant expressions.
    Chris

  • Data is not picking in Purchase Order

    Hi All,
    I have loaded the data into the interface table .Now i have to transfer it to the base table through concurrent program.But data is not picking .Please Help me out.
    The name of the concurrent program is
    import standard po & one message is displayed is
    o/p file generated with 0 bytes.

    Hi Saplearner's
    Is there any body who will focus on this issue
    I have maintained all this accordingly, but the problem lies over here
    Pb00-- 100 
    ra01---  2   discount
    net--  98
    jexc(16%)--15.68 ( MANUAL EXCISE)
    net amount including tax-- 113.68
    freight(2%)-- 1.96
    Actual-- 115.68.
    BASB-- 115.68  ( It should be 100)
    In short i have given summary above, now let me explain
    when i am giving 100 as gross price,discount-2 and if i dont give JEXC, then BASB is coming 100 that is correct.
    when i am giving 100 as gross price, discount 2 and if i give JEXC  , then BASB is  picking as 115.68.
    Problem is here when we give  JEXC  manual excise.
    Rgds
    Kamat.
    Edited by: shrikant kamat on Feb 16, 2009 2:09 AM
    Edited by: shrikant kamat on Feb 16, 2009 2:09 AM
    Edited by: shrikant kamat on Feb 16, 2009 2:10 AM
    Edited by: shrikant kamat on Feb 16, 2009 11:57 PM

Maybe you are looking for