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

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

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

  • 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

  • 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

  • Date Picker has to submit the default value after the page load???

    Hello All,
    I have 2 date pickers 'Start' and 'End' on a screen with report that has a where clause using above values. Start defaults to current date, End defaults to current month end date, I have another radio group with default to Monthly......
    Now when the page loads, I see the default values for 'Start' and 'End' date pickers but the report doesn't reflect those values. I added an on change dynamic action, and so when I change the value of 'End' date picker, it submits the page and now the values are reflected in the report........
    I tried creating another dynamic action > with event On Page Load.....and disable fire on page load, and to submit the page, this is causing an infinite loop of submitions........can you please tell me how to achieve this with out putting an exclusive submit button on the Screen.......
    Thanks for your time.
    DK

    user12296343 wrote:
    Hello All,
    I have 2 date pickers 'Start' and 'End' on a screen with report that has a where clause using above values. Start defaults to current date, End defaults to current month end date, I have another radio group with default to Monthly......
    Now when the page loads, I see the default values for 'Start' and 'End' date pickers but the report doesn't reflect those values. I added an on change dynamic action, and so when I change the value of 'End' date picker, it submits the page and now the values are reflected in the report........
    I tried creating another dynamic action > with event On Page Load.....and disable fire on page load, and to submit the page, this is causing an infinite loop of submitions........can you please tell me how to achieve this with out putting an exclusive submit button on the Screen.......
    Thanks for your time.
    You don't have to submit the page here.
    What version of apex?
    What report is it? i.e. Interactive report/Classic report
    Depending on your version of apex you can simply use the Page Items to Submit attribute to set the session state

  • Date Picker null after page submit

    Hi,
    I have created an application with two regions. On one region a select statement displays the list of employees with their employee id's. On other region there is a select statement which shows the leave detail of every employee using range of date on where clause of select statement. Two date picker items are created on region one. when a name of employee is clicked on region one the employee id of that employee uses select statement in second region and its information should display. It is working well without date range. when I use dates in where clause it shows no data because date pickers goes null after page submit. Page is branchig to same page.
    I am not able to resolve why date pickers goes null.
    Oracle Database 11G
    Apex Version 3.0
    Sajjad

    In region one select statement retreives employee id's and there is also search item on region one searching employee names and it retain the value. but date pickers having same setup that you mentioned dos'nt retain values. If they retain values my problem will solve.
    When cliked on employee id select statement should execute using employee id and date picker values on another region on same page.

  • 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

  • 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

Maybe you are looking for

  • JDK 5 for 64 bit for B1ic installation on windows server 2008 64 bit

    Hello to All, I want to download jdk 5 for X64 ,i have searched lot of time on gooogle and other place but not find for 64 bit. my one of the client working on windows server 2008 with 64 bit and i want to install integration component(SAP 8.81 PL 00

  • Need to understand when  redo log files content  is wrote to datafiles

    Hi all I have a question about the time when redo log files are wrote to the datafiles supposing that the database is in NOARCHIVELOG mode, and all redo log files are filled, the official oracle database documentation says that: *a filled redo log fi

  • Batch Load / Populate BPS User_defined Variables?

    Is it possible to load/populate a user-defined variable via an ABAP program or other method? I have a variable used in BPS which contains all of the customers for a specific user.  It is very tedious to load them in three at a time using the variable

  • 7520 not printing from photo tray

    Brand New 7520 is not printing from the photo tray.  I am printing from photoshop CS5 and I do not see where I can select the photo tray.  In this instance, I am selecting 4x6 paper, but then it tries to print from the main tray, which I have emptied

  • How do I migrate Lightroom 4 onto my new iMac from old laptop?

    I have just purchased a new iMac, and would like to use my version of Lightroom 4 which I have been using on my old laptop.  Can I just download it from adobe.com on the new machine and then use my previous serial number to activate it?  Is there an