Date Picker Doesn't Like Retrieved or Typed In Date Values
I have more than one Region on a page, so I retrieve the column values for a region this way:
(On LOad, Before Header, Once per Page Visit)
BEGIN
EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_DATE_FORMAT='''||:pick_date_format_mask||'''';
FOR request_rec IN (SELECT dev_requested_ind,
dev_requested_dttm,
dev_analyst_seq,
dev_completed_ind,
dev_completed_dttm,
dev_dba_seq,
sit_requested_ind,
sit_requested_dttm,
sit_analyst_seq,
sit_completed_ind,
sit_completed_dttm,
sit_dba_seq,
uat_requested_ind,
uat_requested_dttm,
uat_analyst_seq,
uat_completed_ind,
uat_completed_dttm,
uat_dba_seq,
prd_requested_ind,
prd_requested_dttm,
prd_analyst_seq,
prd_completed_ind,
prd_completed_dttm
FROM request_tbl
WHERE request_seq = :p16_request_seq)
LOOP
:p16_dev_requested_ind := request_rec.dev_requested_ind;
:p16_dev_requested_dttm := request_rec.dev_requested_dttm;
:p16_dev_analyst_seq := request_rec.dev_analyst_seq;
:p16_dev_completed_ind := request_rec.dev_completed_ind;
:p16_dev_completed_dttm := request_rec.dev_completed_dttm;
:p16_dev_dba_seq := request_rec.dev_dba_seq;
:p16_sit_requested_ind := request_rec.sit_requested_ind;
:p16_sit_requested_dttm := request_rec.sit_requested_dttm;
:p16_sit_analyst_seq := request_rec.sit_analyst_seq;
:p16_sit_completed_ind := request_rec.sit_completed_ind;
:p16_sit_completed_dttm := request_rec.sit_completed_dttm;
:p16_sit_dba_seq := request_rec.sit_dba_seq;
:p16_uat_requested_ind := request_rec.uat_requested_ind;
:p16_uat_requested_dttm := request_rec.uat_requested_dttm;
:p16_uat_analyst_seq := request_rec.uat_analyst_seq;
:p16_uat_completed_ind := request_rec.uat_completed_ind;
:p16_uat_completed_dttm := request_rec.uat_completed_dttm;
:p16_uat_dba_seq := request_rec.uat_dba_seq;
:p16_prd_requested_ind := request_rec.prd_requested_ind;
:p16_prd_requested_dttm := request_rec.prd_requested_dttm;
:p16_prd_analyst_seq := request_rec.prd_analyst_seq;
:p16_prd_completed_ind := request_rec.prd_completed_ind;
:p16_prd_completed_dttm := request_rec.prd_completed_dttm;
END LOOP;
END;
p16_dev_requested_dttm is defined as a Date Picker (use application format mask)
The data source is a Date column called dev_requested_dttm. I haven't defined a format mask for it. (I have tried using &PICK_DATE_FORMAT_MASK..)
The Application Format Mask is defined as a Subsitution String called
PICK_DATE_FORMAT_MASK
with a value of
MM/DD/YYYY HH:MI AM
The retrieved column value for p16_dev_requested_dttm looks fine, but when I click the date picker pushbutton, I get this message:
Not Found
The requested URL /pls/htmldb/wwv_flow_utilities.show_as_popup_calendar was not found on this server.
Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server Server at edwdev.dhhs.state.nh.us Port 7779
I also get a line in my log file,
/vg02lvol1/app/oracle/product/htmldb/Apache/Apache/logs/error_log.1133956800:
[Wed Dec 7 16:23:43 2005] [error] [client 172.16.252.76] [ecid: 1133990623:172.17.96.35:1802:0:9870,0] mod_plsql: /pls/htmldb/wwv_flow_util
ities.show_as_popup_calendar HTTP-404 ORA-01849: hour must be between 1 and 12\nORA-06512: at "FLOWS_020000.WWV_FLOW_UTILITIES", line 1801\n
ORA-06512: at line 22\n
This happens with both FireFox and Internet Explorer.
Any ideas what's causing this?
-F
Message was edited by:
Fred C Willingham
Fred,
Unfortunately, the answer is no to both of your questions.
There is no way for you as a developer to control which date is highlighted in the popup calendar. It will always highlight the current day (if you're displaying a month that contains the current day). This is an interesting and prudent suggestion, and one which we'll consider for an upcoming release of HTML DB.
With regards to your second point, that also is something we should consider for an upcoming release of HTML DB. This isn't impossible for us to do, it was just designed to work in the current fashion. If you look at the generated HTML for the Date Picker item on the page (not the popup calendar itself, but the page on which the item is rendered), we break out each element of the date value into discrete components. When we instead rely upon the user entered value, garbage or date values not conforming to the date format mask are easily entered. And the question is - what to do then? Raise an error immediately, still popup the calendar and show the current month, etc. So we've tried to be fairly strict about the date values and format masks for the popup calendar, hence the implementation you see.
Thanks again for your comments.
Joel
Similar Messages
-
I got the new iPhone5 back in Dec, I hooked it up to my computer for the 1st time this wk. It deleted all new data added since Dec (notes,contacts,texts,pics, info added to apps) and reverted back to all my old data (literally uploaded all of my old texts and 1400 old pics and deleted anything new). How can I retrieve all the lost data?? Please help!!
SkyDaughter29 wrote:
My current situation: I have soooo many texts on my iphone and I haven't deleted many because I need the information contained in them for future reference and for legal purposes. I would really like to find a means and way to save them other than on the phone itself. I've done searches for various apps yet I'm not finding what I think I would need. It appears Apple does not sync the texts between the iphone and my MacBook Pro.
Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC):
http://www.ecamm.com/mac/phoneview/
http://www.wideanglesoftware.com/touchcopy/index.php
Best of luck. -
Date Picker Alingment is not proper when we open Date in new Tab
We are facing Date Picker Alignment issue with Safari 5 browser on MAC 10.7.3. Our application is developed in Seam framwork ( which includs JSF and EJB). The issue which we are observing as follows-
There are some links on our application JSF page which opens Date in new window. But when we enable option for opening in tab always and click on Date link, Alingment of new tab opened is not proper.
Please suggest the possible action or pointers to work on this issue.
Images
Date Opened in new Window:
Date Opened in new Tab, Alingment is not proper:
Thanks in advanceHere is more info to describe the issue.
These are the movies sent to the Apple Engineers to show how our
workflow has worked for 7 years until Safari 4 came out.
Again this has caused us to go back to 10.5.8 though we enjoyed some of Snow Leopards improvements.
Have your sound on when listening to safari4 so you can hear the overlaps.
http://jenniradio.com/movies/safari3.m4v
http://jenniradio.com/movies/safari4.m4v
Would really like this fixed.
Ian -
Date query doesn't show results for today's date
Hello everyone. I use Jdeveloper 11.1.1.3.0 with ADF and I have a view named query with just one field, Date. The operator it is using is equal to a value written in the field. The problem is that when I insert a row into the table (the date is automatically set to the current date on insertion) and I look for today's date it returns nothing. However if I leave the field empty it will find me the row. I tried doing this with the timestamp option but it's not very user friendly as the user would have to type in the time the row was inserted in order to find it, or use the between operator for two fields which is something I want to avoid if at all possible
The requirement is one field query that lets the user choose a date from a calendar and shows all rows inserted on that date (even if the date is today and the row was inserted a few minutes before).
Edited by: Dino2dy on Apr 6, 2011 2:50 AMDino2dy,
My guess is that the data being stored in the DB has a time component associated with it (as it would if you were using something like SYSDATE to populate it). When you are trying to look for data with today's date, you are checking just for the date - which in Oracle is the equivalent of midnight on the start of the date. The dates don't match because the time is different.
Either store the date with no time component (use TRUNC to remove the time), use a BETWEEN comparison, or TRUNC the date when comparing.
John -
How can use a date picker to fill in dates in Numbers
I would like to know how can I have cells in date format which I would be able to fill with a date picker fro a calendar?
There is no date picker gui item in Numbers. Every idea I thought of in my head took longer then typing. If you describe your specific problem a little more people may be able to provide some other solutions
-
Move Date Picker Pop Up Location
Hello All,
What is the easiest way to move the location of the pop up window when using a Date Picker on a form page?
Currently using Sand Theme it pop ups at the top of the screen in IE and Firefox.
We would like it to popup right next to the item on the form?
We have several on a form and would like to get the users accustom to same location or middle of screen focus.
Regards,
RobertI don't think this is possible whether you can access the javascript or not. There are a few essential parameters which are, as far as I know, unavailable. These are:
o the position of the browser window on the screen
o the height of the 'chrome' (title bar, menus, icons, address bar, tabs, etc) above the page
o the width of the chrome on the left of the page, eg the bookmarks
Also, the width, in pixels, of the input item cannot be known. This would be necessary for my solution (below), where I position the window relative to the input item, as that's the nearest element with an ID.
The javascript generated by ApEx for the data picker doesn't declare the window object's reference with the VAR keyword (this terminology may be way off track!), so I was able to create a wrapper around this and create a variable with the same name, which will be in scope for the ApEx javascript. Now I can reference the popup window when ApEx has finished creating it. Then it's just a case of finding the input field's position on the page (using this: http://www.quirksmode.org/js/findpos.html) and adjusting for the page scroll and 'chrome' size before setting the date picker's position.
This assumes the browser window is at the top-left of your screen and that all the chrome (even the status bar) is at the top or left of the window.
http://htmldb.oracle.com/pls/otn/f?p=25637:12
Works in Firefox but not IE6. Works in Opera but behaves slightly differently than in FF.
You can use the same technique to hack the javascript and position the window in the middle of the screen but I wouldn't bother. It should be possible, but it would need implementing on an item-by-item basis and might break in later versions of ApEx. Also, Firefox has an option to disable any javascript which moves windows, so some users would never notice your efforts. -
How to Resize the default date picker calendar
Hello Experts,
SAP CRM web UI shows a date picker as follows for populating fields of type date.
We noticed a strange issue that for months like January 2015 , the width of the date picker is lesser than what is shown for November 2014.
As you can see in the following snapshot , the dropdown icon of the second field is hidden when the month shown is November 2014.
This an issue because of the different sizes shown for different months , users would have to move mouse pointer when they to move to next months by clicking on the next arrow icon.
Any tricks to fix the width of the date picker will be really appreciated.Hi Praveen,
You can try following tricks -
1. Go to SE80, search for BSP Application = 'thtmlb_styles'
2. under Pages with Flow Logic - we have one CSS file called "thtmlb_core_stand.css"
3. In this file try changing width of method call ' #thtmlb-calendar-container ' to 150px like shown below.
#thtmlb-calendar-container {
display: none;
position: absolute;
width: 150px;
hope it helps.
Best Regards,
Sandeep Kumar B -
Date Format of Date Picker in Webdynpro to be Changed according to Country
Hi,
I want to change the Date Format of Date Picker in Webydnpro accoding to the portal users country.
As each and every country has its own date format, i can't create simple types of date formats in Data Dictionary and bind them dynamically.
Even the webdynpro date picker doesn't change according to the portal users country/locale, I tested with different countries for a portal user by changing in portal user profile.
Please help .
Regards,
Aditya MetukulJUST WE HAVE TO CHANGE THE LANGUAGE OF THE USER
-
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,
ToddVikas,
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 -
Hi,
I need help with understanding dynamic actions. I have two date pickers, I want the value of the first date picker to be the minimum date of the second date picker. To achieve this I have a hidden item whose value I want to reflect the selected date in the required format. In the dynamic action on the date picker I have no condition, and the true action is set to execute the following pl/sql code
:P200220000_Y_MIN_DT := TO_CHAR(TO_DATE(:P200220000_Y_STR, 'DD-MON-YYYY'), 'YYYYMMDDHH24MI');. The items to submit field contains both the first date picker and the hidden item.
The "P200220000_Y_MIN_DT" is now passed into the minimum date field of the second date picker. The problem is when the date is changed the hidden item does not get the value until the page is refreshed.
Am I doing something wrong or just have not mastered the use of dynamic action or are my colleagues right use AJX call backs not dynamic actions.
Thanks
AderemiHi Aderemi,
first of all as already explained, the min/max values are already used on the server side when the necessary code for the date picker is rendered. When you changed the referenced values in the browser, these values will not change the behavior of the client side date picker widget. But when you submit the page, the new min/max values will be used by the date picker validation check on the server.
To over the client side date picker display issue, you could directly call the date picker JavaScript code and pass in the new min/max values. Have a look at http://jqueryui.com/demos/datepicker/
So for example you could have a dynamic action of type "Execute JavaScript code" which executes the following Javascript code.
apex.jQuery('#P200220000_MY_DATE_PICKER').datepicker("option", "minDate", "-1m");I think that should work. Note: I haven't tested if that really works and it's also some kind of unsupported, because it uses the underlaying jQueryUI APIs the APEX date picker is using. This could change in the future and would invalidate your code.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins -
Is there a way to set a default date in the date picker, but not show this default date in the date item? I want the date item to be blank, but when the user clicks on the date picker it will default to a date that is entered in another part of the application.
Example, users are entering people that are on call. They are entering date for March. I can set the default date, but it shows up in the date item. I just want the date picker to have the default.
Thanks in advance.The APEX Date Picker's default is directly tied to the field. You can't set one without the other unless you wanted to create your own date picker item. There are a few custom date pickers you can do a quick search for. You might be able to find one you can modify to meet your needs.
-
Is there to restrict dates avaiable in a date picker field?
I want to use a date picker field, but want to restrict the selectable dates. I am aware that I can perform a validation on the field after the fact, but is there a way to restrict the date visible to the end user in the date picker calender?
Hi,
As I know there is no way do that for Apex standard datepicker.
You can check alternative solution e.g. using jQuery
Br, Jari -
Date Picker - show specific month of perticaular year
Hi Experts,
I am using sam.m.DatePicker control. By default date picker show current month-year when user open date picker. I want to show specific month of specific year when date picker is open.
for eg: In my app, if student appearing for next year exam(say 2016) then when he click on date picker it should show April of 2016 instead of april of 2015. I don't want to set date by default. Student should select that date manually.
Is it possible to show specific month and year for date picker when it open.
Thanks in advanced.Hi,
you can also give a default date of the first date of that month.
Why you are not using that?
var datePicker = new sap.m.DatePicker({
valueFormat: "yyyy-MM-dd",
displayFormat: "long",
value: "2014-03-26"
Regards
Dhananjay -
When the date picker in calendar format is displayed and a date is chosen nothing happens. The calendar display is closed and the date must be entered manually. How can the date be selected from the date picker?
I discovered that I needed to double click on the date. It works now.
-
Access denied for Date Picker Control in sitepage
We have an issue with Date Picker controls in a web page.
Two date Picker controls were added to one site page to allow users to enter start date and end date to search. The controls are placed in the ContentPlaceHolder web part. The controls allow user to pick a date at Dev, SIT, and Prod environment but not working
in UAT.
At UAT, an Access Denied error message appears when the Date Picker control is clicked.
Feng WanHello,
What permission is user having on page? Have your tried with different account with higher permission?
You can also look at this blog if this is the case:
http://sharepointwings.blogspot.sg/2013/08/sharepointdatetimecontrol-access-denied.html
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help
Maybe you are looking for
-
IPad 3rd generation not working with wireless keyboard.
Hi, I have recently bought the 3rd generation iPad. I have an apple wireless keyboard as well, but for some reason I can't get the keyboard to pair with the ipad. I have disconnected the keyboard from previous devices so they have now all 'forgotten'
-
IDOC inbound ....Status record !
IDOC_STATUS-MSGID = 'YM'. What is the above variable means ? Where from i will be able to know what is the MSGID of my IDOC which i have created ...using we31 ,we30 ,we81, we82.
-
.mov file will not open in FCP X?! codec unavailable? help!
I am trying to edit a short .mov file in FCP X. It was sent to me via YouSendIt. Once it has completed downloading, a message reads: " The document "S-T3RRA Video Heads by FLOOD(1)-2.mov" could not be opened. A required codec isn't available. To see
-
My playlist does not appear after syncing ipod
My playlist is not syncing to my ipod...what should i do?
-
View documents using uiwebview from server.
I am uploading Documents(.png/.doc/.pdf/.xls ETC) on server from website. i have iPad App from where i need to view them. from DB i will get path like D:/Doc/Upload/test.pdf for every document. these is path of server where document is uploaded. is i