Date picker - only allow to select sundays

Hi
In my application I have a date picker field called "Week End date". It should contain only Sundays (the last day of the week for us).
Currently the user can select any date, and in a computation I "round" it to the following Sunday. It works well but not very elegant and a bit confusing to the user.
I have considered generating a LOV only with Sundays, but how many? The last/next 50 Sundays? And if the user wanted to enter a week, say, 4 years ago? The ideal is to use a popup calendar I think.
Any suggestions on how to implement this?
Thanks,
Luis

Leo
Thanks for the reply -- do you mean a post calculation in the page itself (javascript) or in Apex? If you mean the latter, that is exactly what I am doing at the moment (see my original post).
If you mean javascript, not sure how I would do it (because of the date format mask, I would not like to hard code it), but would help... I will take a look at it.
Thanks,
Luis

Similar Messages

  • Date Picker - only allow future dates?

    Does anyone know of a way to control the date picker to only allow the selection of future dates? I would like to force my users to use the date picker, but will need to shade out or grey-out dates less than sysdate+3. This will be used for scheduling payments in the future and should not allow a user to pick a past date or a date within two future days of the current date.
    Thanks in advance for your help,
    Todd

    Vikas,
    I have followed the instructions on that page, but I'm a little unsure about one step. The instructions say, In the HTML Header of the Page Attributes enter "INCLUDE_DHTML_CALENDAR_SCRIPTS"
    My current HTML Header of the Page Attributes has this code:
    <script language="JavaScript" type="text/javascript">
    --(this is commented out) htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    </script>
    I'm not sure where to add the "INCLUDE_DHTML_CALENDAR_SCRIPTS" text. Do I need something before or after that quoted string?
    I'm getting the following error message when I run the page:
    ORA-06550: line 22, column 6: PLS-00103: Encountered the symbol ";" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe The symbol "exit" was substituted for ";" to continue.
    Error ERR-2904 Unable to set shortcut value.
    OK

  • Date Picker: Only select Month and Year

    Hallo,
    I try to configure the Date Picker. For the users it should only be possible to select Month and Year. The column should be automaticly completed with the first day of the select month and a static time (00:00:00).
    How can I do this?
    Sincerly

    You can't do that with a standard date picker. What you could do is to use it and after you change the value in it you modify the value using javascript and ajax similar to what I do in this example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:9
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Date Picker not allowing to capture time

    Hello Friends,
    I am trying to create a tabular form on a table[create SQL as below].
    CREATE TABLE  "JOB_RUN_DETAILS"
       (     "JOB_NAME" VARCHAR2(100),
         "SCH_RUN_DATE" DATE,
         "START_DATE" DATE,
         "END_DATE" DATE,
         "STATUS" VARCHAR2(100),
         "ID" NUMBER NOT NULL ENABLE
    /My idea of the tabular form is to allow entry of time both hours and minutes from the date picker along with date for <b>"START_DATE", "END_DATE" </b> items.
    But I dont see a possibility to do that for hours and minutes. But I remember having seen this in Apex 3.2, not sure if I missed some thing while page making or this feature of Date Picker is left intentionally in the new release.
    Please share any ideas you have.
    Thanks,
    Chaitu.

    My understanding is you are trying to create a Tabular form using the Table which you specified, you are expecting time part to be displayed in the Date Picker column ?.
    The Time part of hours and Minutes will be displayed based on the format mask used for the Application or the item. if the format mask is DD-MM-YYYY HH24:MI then you will see the hour and minute part with the Date Picker.

  • Stale Data Error only Resolved by selecting "Use Update Batching"

    Hello,
    I'm having an issue after creating an update page in OAF.  The page only works when I select update batching within my EO.  The problem with this is my page is using a column type of BLOB which greys out the option to use update batching.  I have tried everything I can think of as well as search on every possible topic over the internet to resolve this issue.  Can't seem to figure it out.  It has become very frustrating as to why I can only update the table by selecting update batching.  Does anyone know how to overcome this issue?
    Thanks,
    Jeff

    I resolved this issue.  The reason I was receiving the stale data error was due to a custom table I created getting corrupted when adding the primary key through SQL Developer instead of doing coding it.  After I recreated the table the stale data error stopped displaying.  Hope this helps people in the future.  Just remember to code the table creation instead of creating it through SQL Developer.

  • Rendering PDF with Windows.Data.Pdf and allowing text selection

    Hi there,
    I need to render a PDF and allow the user to select text on the PDF.
    As I see, Windows.Data.Pdf does not support more than returning an image.
    Even so, how can I achieve my goal? The Windows 8 app "Reader" has this capability but I don't understand how it works.
    BTW: I have tested other renderers but they have rendering issues with some complex PDF content (complex: RTL).
    Thanks,
    Lidan

    Hi Lidan,
    Unfortunately, the built-in PDF feature has not provided select text on the PDF. You can send your request on UserVoice to ask public that API.
    https://wpdev.uservoice.com/forums/110705-dev-platform.
    Looking for a work around, you can use your favor search engine to look some third party library.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Reset data picker page item by selection page item in Apex

    Hi,
    Need to create a report based on date ranges and for this created a interactive report and two page item datepicker fields P15_fromdate and p15_todate. Report works fine with this criteria.But user wants one more field quarter(P15_quarter), When they select the quarter the range values has to get reset and as to get applied to report.
    Issue here is unable to find a way to set the page range item values based on the quarter field selection
    Need help how to reset the page item fields.
    Thanks in advance.
    Thanks,
    Sandeep

    Ligon,
    You're right to think this is pretty laborious stuff. A co-worker wanted to do the same, to make sure users didn't lose a change when clicking Cancel. I suggested he look at calculating the query checksum before and after, which he tried. But it got very cumbersome very fast and he ended up dropping the idea. He's fairly new with Apex, but he's also a quick study, so it's not like he's a novice coder.
    I don't have his implementation details anymore to even share with you.
    Sorry I couldn't be more help.
    Good luck,
    Stew

  • Multiselect that only allows single selection

    Good afternoon,
    I have two multiselect lists on a page. I need to modify the second list so that <ctrl> and <shift> clicking is disabled, and only one item can be selected at a time. Can this be done?
    I understand it would function better as a select dropdown list, but my customer prefers the look of the multiselect.
    Thanks,
    Aaron

    Try this (this assumes your multi-select is called P21_MS)
    http://apex.oracle.com/pls/otn/f?p=20569:21
    HTML Header:
    <script type="text/javascript">
    function check(){
      var list=$x('P21_MS');
      var count = 0;
        for (i=0; i<list.options.length; i++) {
          if (list.options.selected) {
    count++;
    if (count > 1){
    //clear box
    for (i=0; i<list.options.length; i++) {
    list.options[i].selected = false;
    alert('You may only select 1 option');
    </script>
    HTML Form Element Options for P21_MS:
    onchange="check();"Keep in mind that Javascript can be disabled, so if there is a business rule attached to not selecting more than 1, include a regular Apex validation that does the same check.

  • Read only Text Field for a Date Picker?? (how to)

    Hi,
    We have BPM Object presentations where we need to accept date values and the presentation puts Date Picker by default. But the text box associated with the date picker is editable. Is there a way so that I can make it non-editable so that i can enforce the data entry via date picker only (a typical use case)?
    Thanks in advance,
    user8702013.

    Hi,
    In the BPM Object's Presentation editor for the presentation, click the date field. On the right, click the "Properties" tab. Change the field's "Editable" property for this presentation from the default ("Yes") to "No". This only effects this one presentation.
    Hope this helps,
    Dan

  • How can we restrict the date range in the date picker

    While selecting any date a pop up date picker appears. In this date picker the users can select any future dates which can be 30-40 yrs ahead. How can customize this date picker so that the users are not allowed to slected date beyond certain range. ...??

    Hi user570596,
    I think there is no method to actually restrict the date picker popup, but you can use the ApexLib Framework (http://apexlib.sourceforge.net/) to define a min/max value for your date field. This will prevent the user from submitting the page when the date value is outside the defined range.
    See http://inside-apex.blogspot.com/2007/03/min-max-value-validation-in-browser.html
    for details.
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

  • Flickr upload -- only allows "web" photo size

    When I click the flickr button in iPhoto 09, a dialogue box comes up with dropdown menu options for "photos viewable by" and "photo size." In "photo size" I am only allowed to select "web" -- the other two options are grayed out and unselectable. Is this normal? I want to be able to upload my original size photos.

    Thanks for this answer, I was looking all over to see why the other options were grayed out. Well I was I've been saying I am going to go Pro for a while now; this thread will make me do it right now.

  • Does the data selection on an infopackage only allow a range

    Will the data selection tab on an infopackage allow for multiple single values or just a range?  I have a routine that loads speciific plants.  I'm not getting an error but when I run the infopackage but it seems to be grappbing data for all plants

    It will allow multiple selections..
    You need to place the cursor on the required object  in the data selection field, and then click on + (Plus) icon at the bottom this bill bring one more entry for the same object.
    Like this you can make multiple times to maintain the multiple Selections..
    Hope this helps..

  • Only Select date from date picker

    Hi All,
    How can I disable typing date in field text (Choose Date Component)? On other words the user can just select from date picker .
    Thanks
    Message was edited by:
    user638709

    Thank you for replying.
    Actually, I tried to plug the java script in the JSP page but still I did not manage to disable user input. I followed these step:
    1. Add the script
    <script type="text/javascript">
    function filterInputComponent(){
    var component = document.getElementById("inputDate1");
    component.setAttribute("style","background-color:#ebe9e9");
    component.onfocus = function(evt){                  
    var _lovButton = component.nextSibling.nextSibling.nextSibling.nextSibling;
    _lovButton.focus();
    </script>
    2.Define Id for selectIputDate component as "inputDate1"
    3.Change onload - body property to be "filterInputComponent"
    What might be the problem? Did I miss some steps? Or?
    Thanks

  • 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

  • Can Date Picker be made to show only 00,15,30,45 minutes?

    Is there a way to let the minute selection dropdown in the date picker include only 00, 15, 30 and 45? Our customer doesn't like scrolling through a list of 60 values when all they really need i 4.
    Regards,
    Fredrik

    Hi Fredrik,
    I believe the date picker uses the WWV_FLOW_MINUTES view in the FLOWS_030xxx schema to display the minutes. So in theory you could amend the view but I would advise against it, as it may be used elsewhere.
    Regards
    Paul

Maybe you are looking for

  • Order to cash cycle

    can we have an indication of cash operating cycle taken into consideration the stock, debtors and creditors.. will we need to develop a special report for that? Rdgs krish Edited by: user11268969 krish on Jun 15, 2009 7:09 AM

  • Com.sapportals.wcm.control.util.AbstractPropertyRenderer deprecated.

    Hello, I see that the class "com.sapportals.wcm.control.util.AbstractPropertyRenderer" is deprecated in SAP Netweaver 7.3 but I have sources in my project from SAP Netweaver 7.0 and I want to run it under SAP Netweaver 7.3. How can I implement the fu

  • Error when trying SHOW=Y on dump file

    Hi All, Source: Oracle 10G on Windows 2003 Target: Oracle 11G r2 on Windows 2008 R2 I have a dump file created from the source as : exp 'sys/password@production as sysdba' file=F:\Export\mmsprd.dmp full=yes log=F:\Export\mmsprd.logAfter doing: imp 's

  • Workflow to approve Material Master creation

    Dear all, I would like to create workflow to approve Material Master creation as below: When Material is created -> Check & Approval (Yes) -> Material is active                        -> Check & Approval (No)   -> Material is inactive How can I do th

  • How to displaying MapViewer tile layers over ArcGIS World Imagery?

    How to displaying MapViewer tile layers over ArcGIS World Imagery? Here is the ArcGIS World Imagery URL:http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer Thanks.