Date Picker with seconds?

Hi everybody,
In my APEX application, for a particular form element, I need to setup a date picker with date + time with seconds.
Unfortunately, in the differents masks that can be used for date picker element, there is not support of seconds.
I have tried to set the default date format at "DD/MON/YYYY HH24:MI:SS" for my application, then to choose the date picker based on the application default date format, but still no support for seconds, only hour and minutes...
Does anyone have an idea about that issue, and a way to implement seconds in my date picker? The point is that I need to be able to select the exact second in a range.
Maybe something with jQuery or something else?
Any help much appreciated!
Thanks,
Romain.

Yes, this is one of the solutions, but of course it will require to create these additional elements...
Still looking for an "all-in-one" way. If nothing is possible on the date picker level, I will manage it with more elements.
Thanks,
Romain.

Similar Messages

  • Date Picker with Previous and Next Year Options

    Hi All,
    I am implementing a date picker in my application which is tied to an attribute of type PA0001-BEGDA. Date Picker as such works fine but navigating to previous year and Next year options are not available. User has to go month by month to different years if they have to navigate.
    Is this the normal behavior of the Date Picker or am I missing something else to get the previous and Next year icons in the Date Picker.
    Thanks,
    Nagarajan.

    hmm..I tried using the select options and it did give the same date picker with the previous and Next navigation icons...The only problem with the select options is that its a single field which has the range and can accept multiple values too...
    I tried to figure out how the date picker that we use in the custom application and the one in Select Options differ but no luck...Does this ring any bell?
    Thanks,
    Nagarajan.

  • Date Picker with submit

    Hi, I have 2 Date Pickers: The first date Picker contains date of the beginning (P203_BDATE), the second contains date of the end (P203_EDATE).
    I made item P203_EDATE with submit (I set HTML Form Element Attributes of P203_EDATE to onchange="doSubmit('P203_BDATE','P203_EDATE');" ), so submit works after choosing end date and I get rows between begin and end date. (I use tabular form)
    My problems:
    1.I don`t know how to clear items P203_BDATE,P203_EDATE to get all rows of the report (may be something like "no date" in calendar)
    2. I want to do P203_BDATE with submit only if P203_EDATE is not null (if user will want to change the beginning of the period after the first filtering of data)
    Does anybody know how to solve these?
    Thanks a lot

    Hi Suri.
    1. Respect to clear the values of begin and end dates, for see all table records, what you should to do is the opposite to clear, cause you're using between condition. Then you will want to assign a low value for begin as '01/01/1956' and a high value for end date as '12/31/2060'. You can add other controls as Select List with Submit to determine the date ranges, or what you consider better.
    2. To perform the submit only within your desired condition, you must add in the branch that fires the redirection to the same page, :P203_EDATE is not null as PL/SQL condition
    Regards

  • Date Picker with Dynamic Action

    Hi
    I have a situation where a DA is fired onchange of a date field using the apex 4 date picker item type.
    The DA does a number of calculations and database requests, so it can take a few seconds over our slow internet connection.
    While the DA is executing, the calendar remains displayed. The application demands that I display at least 1 or preferably 2 months as well as the current month to facilitate the user entry, which means much of the page is obscured. Not only would it be nice so see the various fields in multiple regions being updated progressively, it would also be reassuring for the user to see that the application has not "hung".
    Is this the expected behavior? Is there a technique to close the date picker before the DA actions are triggered?
    Thanks for your advice.
    CS

    Hi,
    Try this write a Zprogram for this.
    REPORT  Zget_date.
    TABLES : RP50D, PA0041, P0041, PA0019.
    PERFORM Z_date.                       "3CML Dynamic action for IT0000
    FORM Z_date.
      DATA: DATE1 LIKE SY-DATUM.
      DATA: DATE2 LIKE SY-DATUM.
      SELECT * FROM  PA0041
               WHERE  DAR01 EQ '11'
                AND PERNR  = P0041-PERNR
                AND BEGDA  = P0041-BEGDA.
        DATE1 =  PA0041-DAT01.
        DATE2 = DATE1 + 1.
        RP50D-DATE1 = DATE2.
        EXIT.
      ENDSELECT.
    ENDFORM.       
    and use this in your dynamic action.
    F Z_date(Zget_date)
    W P0041-DAT01=RP50D-DATE2
    Hope this will solve your problem.
    Regards,
    ARU

  • How to integrate a java script date picker with jsf?

    Hi I have a javascript data picker which I want to integrate with a text tield.. that is <jsf:inputtext tag...
    I know about onlclick .. but I am more interested in knowing .. how will the java script set date into that input text field.. i mean how will it recognize the field..

    Pass the input element as 'this' reference to the JS function?onclick="doSomething(this);"This has not much to do with JSF though.

  • Date picker with auto today's date

    Hey,
    I'm sure this has been asked and answered, but I couldn't find it in the search. I have a date/time field which is excellent for using the date picker to insert any date. But more often than not the form will use the current days date. Is it possible to have the Date/Time Field default to the date of the day the form was opened and STILL have the option of overwriting it with the picker?
    Thanks.

    Try placing the below line of code in either of the Initialize/ Form Ready/ Layout Ready events..
    $.rawValue = Num2Date(Date(),"MM/DD/YYYY");
    Language is FormCalc..
    Thanks
    Srini

  • Date picker with 1 week range

    Hi,
    i  would like to develop an application that shows a navigation possibility to move one week back or forward. Under this control is a kind of calendar that shows one week. A click on the day selects the date.
    If you take a look at the image http://scn.sap.com/servlet/JiveServlet/showImage/102-31625-11-218124/sapui5%40sapfiori.png you can see in the middle the controls that I mean . The onliest difference is that they have two weeks and I would like to have one week.
    What is the name of the control to navigate back and forward for the weeks?
    How to make a calendar that displays just one week?
    It would be great if someone could bring some light into the darkness.
    Thank you, Vanessa

    I've created a simple example, the important config is singleRow, weeksPerRow and SingleRow.
      monthsPerRow: 1,
      weeksPerRow: 1,
      singleRow: true
    http://jsbin.com/peyaw/1/edit
    Regards,
    Jason

  • Two questions: Event on a Date Picker and Read Only on a full page?

    Hello,
    I make use of this very informative board to develop an application but i have been unable to find info on these two topics. Sorry if it has been already discussed extensively.
    Using HTMLDB 2.2 for now.
    =>First question:
    I have a date picker item with an event
    onChange="resaStatusChange();"
    in the HTML Form Element Attribute field.
    The event is triggerring if i put a new data in the field but does not trigger if i use the picker.
    Is it a standart behaviour? Is there a way to trigger the event when new data is provided through the date picker?
    => Second question:
    One page in my application has to be used either to only display information or as a mixed displaying/entering data sheet.
    When the context is appropriate to use the page as a simple display (testing both global authorization and data to be displayed), is there a way to put a read only attribute on the full page instead of putting the read only conditions through each and every item of the page?
    Sorry if the questions are not clear and apologize for what should be newbie questions.
    Any link or info will be appreciated.
    Regards,
    Daniel Gureghian

    Hi Daniel,
    I'm not sure about your first question, but I can hopefully give you a helpfull answer for your second one.
    I'm handling it this way:
    var elInput = document.getElementsByTagName('input');
    var elTextArea = document.getElementsByTagName('textarea');
    var elSelect = document.getElementsByTagName('select');
    for (i = 0; i < elInput.length; i++)
      setReadOnly(elInput, true);
    for (i = 0; i < elTextArea.length; i++)
    setReadOnly(elTextArea[i], true);
    for (i = 0; i < elSelect.length; i++)
    setReadOnly(elSelect[i], true);
    function setReadOnly(pThis, pRead)
         if (pThis && pRead)
              pThis.disabled = pRead;
              pThis.style.emptyCells = "show";
              pThis.style.color = "black";
              pThis.style.backgroundColor = "#DDDDDD";
         else if (pThis && !pRead)
              pThis.disabled = pRead;
              pThis.style.emptyCells = "show";
              pThis.style.color = "black";
              pThis.style.backgroundColor = "#FFFFFF";
    I never used it on a whole page, only for regions. So maybe you have to make some changes.
    chrissy

  • Date Picker BUG on APEX 4.2.1

    Hi all could you please open a ticket for the following bug.
    Reproducing the bug very simple.
    Apex specification :
    version 4.2.1.00.08
    I'm not using HTML 5 template but the classic "Blue and Tan" one.
    1) Create a page with date picker with mask (DD-MON-YYY HH24.MI).
    2) set as default value the SYSDATE using the PLSQL expression (not specifying the mask to_char()).
    3) Try to use it and you will see that the year shown is not the correct one but is something like 1911.
    I fixed using to_char(SYSDATE,'DD-MON-YYY HH24.MI') in the PLSQL expression.

    Hi Zere,
    one very important thing to remember when dealing with session state (the value of a page item) is that everything is stored as string.
    If you specify SYSDATE as your default expression, then the Oracle database will evaluate that as date data type, but as soon as it's stored in session state, the database will do an implicit data type conversion using the default format mask specified for your database session.
    That's why it works when you do the TO_CHAR with the explicit format mask.
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf
    Edited by: Patrick Wolf on Apr 10, 2013 3:37 PM

  • Date Picker Translate Help

    Hi
    We've been using jQuery date pickers long before APEX used them as standard so have our own way of implementing them, that being said it shouldn't have any effect on what I'm trying to do.
    I have an application (APEX 4.2.1) that is used in a number of different languages. We don't use the APEX date picker and instead display dates as text fields, add a specific class to them and attributes as required. The class is picked up in javascript and the field is converted to a jQuery UI date picker with the attributes controlling certain behaviour (date restrictions etc.) This works fine and the date picker is translated to the different languages without a problem.
    Now I have a page in which fields defined by the user are displayed along side APEX fields. To do this I'm using apex_item and generating items on the page based on settings controlled by the user in another part of the application. The APEX items are displayed followed by custom items using apex_item. Again, this works fine and I've used it many times before.
    The problem I have is when a user creates a custom field which is a date picker and the date picker is translated.
    If the user is viewing the page in Norwegian then for an APEX field the date picker is shown in Norwegian and if they select May 1st then 1-Mai-2013 is returned to the field. The value of this field is 1-Mai-2013 when the page is submitted, but somehow the value is saved in the database correctly and when the database is queried the date is saved as 01-MAY-2013. For a custom field the value is saved in the database as 1-Mai-2013 and when this is then viewed by a user in English the page errors with not a valid month.
    My questions are:
    - How does APEX save a translated date field? How does 1-Mai-2013 become a proper date? If I try to save this in the database, unsurprisingly I get an invalid month error.
    - How can I use apex_item to have a date picker that is translated? apex_item.date_popup can't be used as this doesn't use the jQuery date picker. Perhaps this is a setting in jQuery UI to translate the date back? One solution is to use dd/mm/yyyy format, but I really don't want to do this.
    Many thanks for your help. If you need any more info let me know.
    Sara

    Hi Mike
    Thanks for the reply. When I said that it's saved as 01-MAY-2013, I was aware that it wasn't actually saved as this and is stored as a date. My point was that as a user I had entered the text 1-Mai-2013 on the screen and somehow it was changed to a date which when queried in the database was returned correctly as 01-MAY-2013. Showing that somehow it had been translated correctly from Norwegian. Even if I were to save my custom field value in a date column in the database, I would get an error as it would be trying to insert 1-Mai-2013 into a date column which isn't of the correct format. I think the problem can be resolved if I can convert the text in my custom field into a date.
    I've been able to find a possible solution, but I'm having problems implementing this.
    If I run
    select to_date('03-Okt-2013','DD-Mon-YYYY','nls_date_language=NORWEGIAN') from dual;
    this returns the correct date in the correct format (03-OCT-2013), which could be saved in my table and the problem would be resolved. I know what language is being used in my APEX session so I've used the following code to my procedure:
              CASE V('FSP_LANGUAGE_PREFERENCE')
              WHEN 'no' THEN v_value := to_date(v_value,'DD-Mon-YYYY','nls_date_language=NORWEGIAN');
              WHEN 'sv' THEN v_value := to_date(v_value,'DD-Mon-YYYY','nls_date_language=SWEDISH');
              WHEN 'pl' THEN v_value := to_date(v_value,'DD-Mon-YYYY','nls_date_language=POLISH');
              ELSE v_value := to_date(v_value,'DD-Mon-YYYY');
              END CASE;
    I've tested this through SQL*Plus and it works perfectly. The dates are always converted from Norwegian to English (the default for the database) DD-MON-YYYY.
    However, when I run the same code through APEX it doesn't work. The date is still stored as Norwegian. If I enter 10-Mai-2013 in the field that is exactly what is stored in the database. I've even added debug to make sure it's running the right bit of code and it is.
    Why would this code work in SQL but not through an APEX session? And is there anything I can do to resolve this?!
    Many thanks
    Sara

  • Windows like date picker

    I want to make a component that looks and works like the default windows date picker component. It looks like editable combobox and when the list drops down, it displays a calendar like component. I am using
    JCalendar (http://www.toedter.com/en/jcalendar/) for picking calendar date and want to combine it with JComboBox, using extended editor and render. I can not achieve the deisred effect, because the editor useble only when the list is not poped-up.
    Can anyone give advice or hint for the proper way, I can do this component.
    Thanks in advance.
    Regards Nenko Ivanov.

    Well, there is a free framework (+ code) that allows you to build Java GUI applications with drop-down effects/styles. The code can be found at sourceforge (http://sourceforge.net/projects/glacier) or from the site of company that provides it (http://www.obsidiandynamics.com/glacier/index.html).
    The same company ( Obsidian Dynamics - http://www.obsidiandynamics.com) also provides software that allows you to build customised Calendar GUI (or date picker) with drop down or pop up styles. But unfortunately, the software is commercial =(.

  • JSF/ Javascript Date Picker

    Has anyone incorporated a javascript date picker with JSF? if so how did you handle the fact that the inputText for jsf doesn't have a name and is in the form of <h:inputText>? Any help would be appreciated, Thanks.

    Did you look at the ADF Faces Date picker as an option?
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/chooseDate.html
    or
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/selectInputDate.html

  • Problem with Date Picker Item

    Hello,
    I'm using APEX 4.2.2.00.11 and I have a problem with the Date Picker. I can't select any day of the second week of the month (it happens for all months).
    Someone know if there are any reason (and how can I solve it) or is an APEX bug?
    Thank you!

    Hi Chimanzee,
    try for : source value
    to_char(sysdate-7,'DD/MM/RRRR')
    hope this helps.
    Leo

  • Date Picker display problems on same line with no new field

    With version 3.1.1 the attempted display of two date fields side by side appear stacked in the same column with the labels in between instead of side by side. This works fine with version 1.6.
    Create a page with 2 Date Picker items. Call the first one P1_DATE_FROM and the second one P1_DATE_TO. For P1_DATE_TO set the "Begin on new line" attribute to NO and the "Field" attribute to NO then display the page.
    The resulting display will be shown as:
    Line 1: Box for Date From value with date picker icon
    Line 2: Labels for both Date From and Date To with only a single space between
    Line 3: Box for Date To value with date picker icon
    The resulting display should be:
    Line 1: Label for Date From, Box for Date From with date picker icon, Label for Date To, Box for Date To with date picker icon.
    If you set the "Field" attribute to YES then the fields will appear on the same line in separate columns. I am trying to leave the second column available for and additional column of items in order to reduce the vertical scrolling on the page.
    If you repeat the above example with Text fields instead of Date Picker fields the desired result is achieved.

    You are correct that saying "Yes" to the field attribute will allow the items to format properly however this will push the second field into the second column on the page. I am purposely trying to keep these 2 items in the first column so that I can place a third item in the second column.
    I have tried using the "Start and Stop HTML table" feature to work around this but I can't control the alignment of the margins for the items above and below the start and stop item which make the display of the region even worse.
    Any other ideas or suggestions for work arounds would be appreciated.

  • Problem with Date Picker and wwv_flow_item.date_popup()

    I have a Report based on the HTMLDB How-To “Build Tabular Forms for Multi-Row Operations”
    This is my code:
    select
    X.RRIT_UID,
    X.DOS,
    X.CPT_CODE,
    X.MOD,
    X.DX_CODE,
    X.CHARGES,
    X.UNITS
    from
    (select
    htmldb_item.text(1,RRIT_UID) RRIT_UID,
    wwv_flow_item.date_popup(2,null,RRIT_DATE_OF_SERVICE) DOS,
    htmldb_item.text(4,RRIT_SUBMIT_SERVICE_CODE,6) CPT_CODE,
    htmldb_item.text(5,RRIT_SUBMIT_MODIFIER,3) MOD,
    htmldb_item.text(6,RRIT_ATT_DIAG_CODE,6) DX_CODE,
    htmldb_item.text(7,RRIT_BILLED_CHARGES,9) CHARGES,
    htmldb_item.text(8,RRIT_UNITS,3) UNITS
    from
    RRIT_REPRICE_ITEM
    where
    RRRR_UID = :P5_RRRR_UID
    union all
    select
    htmldb_item.text(1,null) RRIT_UID,
    wwv_flow_item.date_popup(2,null,null) DOS,
    htmldb_item.text(4,null,6) CPT_CODE,
    htmldb_item.text(5,null,3) MOD,
    htmldb_item.text(6,null,6) DX_CODE,
    htmldb_item.text(7,null,9) CHARGES,
    htmldb_item.text(8,null,3) UNITS
    from
    dual)
    X
    My problem is when I run the page and select a date from the Pop-Up calendar I get this error:
    Line 10
    Error: ‘opener.document.forms.0.f02.0’ is null or not an object
    I know it is something to do with data formats and the fact that I do not fully understand the use of wwv_flow_item.date_popup().

    Hi DK,
    It is a WD Java application, Backend is ABAP (MM module).
    The UI is input field, where the context attribute type is Date, So its been changed to Date Picker.
    The problem is when the user runs the WD application in Portal, The calendar format is being changed for some users. That is for few users the Week starts with Monday and for few users the week starts with Sunday.
    I need all the users to have Monday as the First day of the week.
    Please let me know, what will be solution for this.
    Since I haven't done anything in regard to date, it is a simple Date format.
    Thanks & Regards,
    Palani

Maybe you are looking for