Display Clock  and calendar

Hi,
Can any body have the sample code to capture the date by displaying a calendar and the time by diplaying a clock in the html page using html inside plsql.
Thanks.

The HTML page need to have a form with input fields. The form action needs to specify the web enabled PL/SQL procedure to receive the form data. The input field names need to match the procedure's parameter signature.
So, for example (using HTML5) the following form code is generated:
<form action="SCHEMA.PROCEDURE">
  Date: <input type="date" name="dayText">
  Time: <input type="time" name="timeText">
  <input type="submit">
</form>
The procedure will be called with a text string containing the date (e.g. '2013/01/01'), and a text string containing time (e.g. '22:30'). The procedure then needs to convert these 2 parameters into an Oracle date.
A simple example of such a web enabled procedure. When called without parameters (nulls), it returns an input HTML5 form. When called with 2 parameter values, it attempts to convert that to an Oracle date and returns the result. No exception handling - so date conversion errors are not catered for.
SQL> create or replace procedure FooWebTime( dayText varchar2 default null, timeText varchar2 default null ) is
  2          HTML5_FORM      constant varchar(32767) :=
  3  '<!DOCTYPE html>
  4  <html>
  5  <body>
  6  <form action="BILLY.FooWebTime">
  7    Date: <input type="date" name="dayText">
  8    Time: <input type="time" name="timeText">
  9    <input type="submit">
10  </form>
11  </body>
12  </html>';
13 
14          d       date;
15  begin
16          case
17                  when dayText is null and timeText is null then
18                          -- we generate a HTML5 input form
19                          htp.prn( HTML5_FORM );
20 
21                  when dayText is not null and timeText is not null then
22                          -- received web input - make it a date variable
23                          d := to_date( dayText||' '||timeText, 'yyyy/mm/dd hh24:mi');
24 
25                          -- return the info
26                          htp.prn(
27                                  'Data entered has been processed as Oracle date '||
28                                  to_char(d,'dd Mon yyyy, hh24:mi:ss')
29                          );
30 
31          else
32                  htp.prn( 'Invalid input received. Procedure expects both day and time.' );
33 
34          end case;
35  end;
36  /
Procedure created.
SQL> --// provide exec rights to mod_plsql schema used for authentication by DAD
SQL> grant execute on FooWebTime to public;
Grant succeeded.
SQL>
But as I've already stated in your first message about this "problem" you have - use Apex (http://apex.oracle.com). Configuring web access to Oracle is not trivial. Designing and writing robust and secure web enabled code in PL/SQL is not trivial.

Similar Messages

  • IOS 7.02 iPhone 5 clock and Calendar Problems

    The date displayed in the Calendar is always one day ahead of its day shown in the iPhone settings date. Also the clock for the various cities around the World are being incorrectly reflected. Seoul, Korea is shown 2.5 hours earlier than Shanghai time and Seoul is East of Shanghai and I believe it is only 1 hour ahead not 2.5 earlier as shown in iPhone. Never had these problems before update to iOS 7.02. The World Clock and calendar cannot be trusted any more and I hope Apple will correct soon!!!!

    Hello there, Duke4u.
    The following Knowledge Base article provides some great troubleshooting steps for your issue:
    iOS: Troubleshooting issues with date and time
    http://support.apple.com/kb/ts3920
    If you've already reviewed the settings for Date  & Time, what seems pertinent to you is the following:
    If the incorrect date, time, or time zone is being set up automatically on the device, please notify your cellular provider. In the meantime, tap General > Date & Time and turn off Set Automatically. Then set the appropriate time and time zone manually.
    Note: The option to set automatically might not be available on all carriers in all countries.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Issues with Alarm Clock and Calendar Notifications

    I have noticed that when I am using the Alarm clock, it will not go off when the calendar is showing a meeting reminder....
    Is there any way to dis-activate this? My alarm clock will not work.. and there are too many appts in my calendar to go thru them to change...

    I also have the same issue. If the alarm is set and the calendar sends a notification just prior to the alarm time, the calendar notification prevents the alarm from going off. I understand it is a bug, but when will it be fixed? What is the bug ID? how do we track known bugs so we know they are being fixed? The problem is with the iPhone's included clock and calendar apps, so it is not a 3rd Party application issue, right? Thanks!

  • Alarm clock and calendar event failed when we entered 1 Jan 2011 today!

    This morning my alarm clock didn't work and the iphone just didn't recognise that an alarm was set. And the event alarm set for today in the calendar didn't work either. Obviously there are buds that paralyse these functions when we entered into 2011. Anybody knows how to fix it?

    There's no fix as it's a bug. The only work around is to either set repeating alarms only.
    Supposedly the problem will go away on it's own on the 3rd.
    http://www.9to5mac.com/45310/new-years-2011-breaks-non-recurring-iphone-alarm-cl ocks

  • How Can You Reset Your Clock And Calendar

    My iPod Ran Out Of Battery, So I Charged It And Then It Said It Was 7:07 And It Was Actually 6:09! And It Said It Was Wednesday, December 31 1970!!! Help!!!!!!!

    Go to Settins>Genweal>Date and Time. Make sure the time zone is correct.  Also go to Setting>General>International make sure the Gregorian calender is selected.

  • HT202297 I just bought an ipad3 and I was wondering if anyone knows how to have my reminders displayed in my calendar? If it not possible on the iPad , is it possible on the iphone4s? if not, than does anyone know of any apps that make it convenient to do

    I just bought an ipad3 and I was wondering if anyone knows how to have my reminders displayed in my calendar? If it not possible on the iPad , is it possible on the iphone4s? if not, than does anyone know of any apps that make it convenient to do so?

    That's only for the iPhone 5. On the 4 and 4S, they can repair the back glass in store for $30. They will not replace the display on a 4 or 4S. They must replace the entire phone. Replacing the display on them requires disassembling the entire phone, which they will not do in store.

  • Contacts and calendars not displaying

    I've copied over my contacts and calendar items [from Outlook 2003] to my iPod and they are not displaying at all [blank] when I browse to them in my device - are there any additional steps I need?
    Thx for the help!

    Hello fellow ipodders,
    I have an ipod photo 30Gb for about 3 months now.
    Running first with Itunes 5.01 and now Itunes 6.0.
    When I tried to sync between Ipod and Outlook 2003 SP1 at
    the end there is nothing displayed in the IPOD. No contacts or calendar items. The sync seems to go fine, even granting for access to Outlook 2003 is asked and I permit that for 10 mins. But at the end nothing in my ipod.
    Is this problem somehow resolved now. It has been posted for that long time now.
    BTW: I feel that Apple is only a sales company. Selling pretty expensive portable mediaplayers. But the word support isn't in their dictionary....
    Brgds,
    Bas.

  • Since loading mavericks my calendar posts events one hour late.  That is, if mtg invite is for 9am it posts at 10am.  my pc clock and time zone are correct.

    Since loading mavericks my calendar posts events one hour late.  That is, if mtg invite is for 9am it posts at 10am.  my pc clock and time zone are correct.

    Hey Armando Stettner,
    Thanks for the question, and what a great question it is!
    With time zone support on, you can edit an individual event and change the time zone for that event. This list will include options for your default time zones, UTC, and "floating" - the latter of which is what you are looking for. Floating changes the event to occur at the specified time, local time.
    For information on changing an event's time zone, see the following resource:
    Calendar: Change an event’s time zone
    http://support.apple.com/kb/PH11531
    I look forward to hearing how this works for you.
    Cheers!
    Matt M.

  • Outlook Calendar Email Display Name and Reply to Name

    I need help to change the display email address and reply-to-email address used when I create and send calendar invitations from Outlook.
    Here is my setup.
    I am using Outlook 2013 that is connected to an Exchange server.
    I have 2 email systems.
    My main email system is NOT using Outlook.  All of my emails flow through, as an example, [email protected]
    Outlook is used only for my contacts and calendar.  For this email let's call it [email protected]
    Right now when I send a calendar invite it comes from [email protected] and the reply-to-address is [email protected]
    I would like the "from name" and "reply-to" name for all calendar invites to be displayed at [email protected]
    My [email protected] will redirect all calendar invites to [email protected]
    How can I configure Outlook to do this?

    So to my understanding there are 2 different email systems: one handling the @email1.com, based on Postfix/sendmail/Exchange/<other mail server> and one handling the @email2.com based on Exchange.
    If you add an accepted domain in your Exchange organization - @email1.com - then you'll be able to add the [email protected] address to the list of email addresses stamped on your Exchange mailbox. Following this, the recently added address can be specified
    as reply-to address (Primary SMTP Address). On the other email system, you'll have to use @email1.com as an internal relay accepted domain (similar to the notion described
    here) and configure a connector to send email to the Exchange organization for @email2.com. As for the forwarding itself - if that system is also Exchange - the 'targetAddress' attribute could be used, which will instantly forward the email to the '[email protected]'
    value that should be stamped inside (see
    this link); if a different email system, then the equivalent feature of 'targetAddress' should be used. 
    Yet the whole setup is cumbersome to say at least. Could you give more details about what is it you're trying to achieve at a higher level ?

  • Time and Calendar issue

    On my BB Tour, I want to let the network set the local time while I am traveling but I do not want this choice to change all the times in my calendar.  In essence I do not want the calendar to change but I do want my device to reflect local time for the clock and alarm features.  This device is so wicked smart that I am sure this must be possible.  How do I do that?  Help!

    Me too with the same problem. If I move to a different time period (say from Week to Day) after changing the displayed time zone, it does refresh.

  • I can't set up contacts and calendar for iCloud on my PC

    I'm trying to set up iCloud so it'll sync my Mail, Contacts, and Calendar & Tasks between my Windo. However, the iCloud Control Panel won't let me set up the Contacts and Calendar & Tasks. When setting up, it asks me to shut down Outlook (which I do). Then it tells me that I need to restart Outlook with Mail enabled and that I need to add my iCloud account in order to add Contacts and Calendar & Tasks. I have no idea what the former means. I have added my iCloud account although what I REALLY want to sync is the Contacts and Calendar data from the e-mail I use Outlook for (which is also my Apple ID). I have Outlook 2010. Any idea why I'm getting this message and how I can set up iCloud?

    Hi there bakingcountrygirl2011!
    I have a couple of articles here that should help you get iCloud set up on your Windows machine. The first is about activating iCloud mail in Outlook, and can be found below:
    iCloud: Set up iCloud Mail on your devices and computers
    http://support.apple.com/kb/PH2621
    And here are the steps you need to follow:
    Set up iCloud Mail on Microsoft Outlook 2010 or Microsoft Outlook 2007
    Open the iCloud Control Panel, select (to turn on) the Mail, Contacts, Calendars, & Tasks checkbox, then click Apply.
    To open the iCloud Control Panel in Windows 8, move the pointer to the upper-right corner of the screen to show the Charms bar, click the Search charm, then click iCloud Control Panel on the left.
    To open the iCloud Control Panel in Windows 7 or Windows Vista, choose Start menu > All Programs > iCloud > iCloud.
    Your iCloud Mail account is displayed in the left column of Microsoft Outlook.
    To view your iCloud Mail account in Microsoft Outlook, click the disclosure triangle to the left of your iCloud email account.
    If you are still having issues with your contacts after following the instructions in that article, you will want to see this article, about troubleshooting sync issues with your iCloud contacts:
    iCloud: Troubleshooting iCloud Contacts
    http://support.apple.com/kb/TS3998
    You will also probably want to pay special attention to this particular part of that article:
    Ensure the iCloud Outlook Add-in is active within Outlook.
    For Outlook 2010, follow these steps to verify the iCloud Outlook Add-in is active:
    Open Outlook 2010.
    Click the File menu.
    Click Options in the left panel of the Outlook window.
    Click Add-Ins in the left panel of the Outlook Options window.
    Look at the list of add-ins beneath "Active Application Add-Ins," and verify that the "iCloud Outlook Add-in" is listed
    For Outlook 2007, follow these steps to verify the iCloud Outlook Add-in is active
    Open Outlook 2007
    From the Tools menu, choose Trust Center.
    Select Add-ins from the left column.
    Look at the list of add-ins beneath "Active Application Add-Ins," and verify that the "iCloud Outlook Add-in" is listed.
    For additional information about managing Add-ins with Microsoft Outlook, see this Microsoft support document.
    Hope that helps. Thanks for using the Apple Support Communities!
    Regards,
    Braden

  • Contacts and Calendar not sync'ing with Outlook 2010

    All was fine today until (maybe coincidental - maybe not) I had a Microsoft Exchange email account added to my Outlook 2010.  I have an iPhone 4, and I usually sync daily, especially when calendar or contact changes take place.  I am currently not using the icloud, so all contacts and calendar events would be way too outdated.
    I have checked my Outlook settings under "info" and cannot get my contacts and address to load.  I even see the "Contacts syncing"..."calendar sync'ing" when the overall iTunes sync takes place with my iPhone.
    Help!!

    Yes, it is. Do you have Desktop Manager v6?
    Download Desktop Manager from here:
    https://www.blackberry.com/Downloads/entry.do?code=A8BAA56554F96369AB93E4F3BB068C22
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Contacts and Calendar Generating Error Logs

    Although my contacts and calendar sync perfectly with my Gmail account, I get error messages in the Console when using my early 08 MacBook Pro but not on my mid 2011 Mac Mini. I have two way verfification enabled with my Google accounts. Below are the relevant error messages from the Console. I changed my username to "username" in the listings. Is there any way to stop these error messages? The error messages don't seem to be valid since everything syncs properly with my Android phone and my Gmail account regardless of if I add or delete from either Apple or Google. Also my Mac Mini doesn't display these error messages. I'm ending up with a bloated log file because of this. Both computers are using OS X 10.8.4
    8/30/13 3:08:32.237 PM Contacts[4384]: AOSKit ERROR: RAF: Invalid url -- https://username%[email protected]/carddav/v1/principals/username%40gmail.c om///username%[email protected]/carddav/v1/principals/username%40gmail.com/
    8/30/13 3:08:32.321 PM Contacts[4384]: AOSKit ERROR: RAF: Invalid url -- https://username%[email protected]/carddav/v1/principals/username%40gmail.c om///username%[email protected]/carddav/v1/principals/username%40gmail.com/
    8/30/13 3:08:32.456 PM Contacts[4384]: *** -[IADomainCache init]: IA domains cache is out of date.
    8/30/13 3:08:32.563 PM Contacts[4384]: AOSKit ERROR: RAF: Invalid url -- https://username%[email protected]/carddav/v1/principals/username%40gmail.c om///username%[email protected]/carddav/v1/principals/username%40gmail.com/
    8/30/13 3:08:32.692 PM Contacts[4384]: AOSKit ERROR: RAF: Invalid url -- https://username%[email protected]/carddav/v1/principals/username%40gmail.c om/lists///username%[email protected]/carddav/v1/principals/username%40gmail.com/lists/
    8/30/13 3:08:32.924 PM Contacts[4384]: AOSKit ERROR: RAF: Invalid url -- https://username%[email protected]/carddav/v1/principals/username%40gmail.c om/lists/default///username%[email protected]/carddav/v1/principals/username%40gmail.com/lists/default/
    8/30/13 3:08:37.584 PM SubmitDiagInfo[4389]: Launched to submit Diagnostics and Usage
    8/30/13 3:08:38.372 PM SubmitDiagInfo[4389]: Diagnostic Message store has been re-created since previous submission.
    8/30/13 3:08:40.790 PM SubmitDiagInfo[4389]: SubmitDiagInfo successfully uploaded 35 diagnostic messages.
    8/30/13 3:08:53.056 PM com.apple.ShareKitHelper[524]: --warning: [ShareKit-XPC] Received XPC_ERROR_CONNECTION_INVALID
    8/30/13 3:08:53.060 PM com.apple.ShareKitHelper[524]: --warning: [ShareKit-XPC] connectionWithClientInterrupted
    8/30/13 3:08:53.061 PM com.apple.ShareKitHelper[524]: --warning: [ShareKit] Cancel UI for running services with Client PID: 4384
    8/30/13 3:09:02.586 PM CalendarAgent[1480]: AOSKit ERROR: RAF: Invalid url -- https://username%[email protected]/calendar/dav/cln2stbjc4hmgrrcd5 i62ua0ctp6utbg5pr2sor1dhimsp31e8n6errfctm6abj3dtmg%40virtual///username%[email protected]/calendar/dav/cln2stbjc4hmgrrcd5i62ua0ctp6utbg5pr2sor1dhimsp31e8n6errfctm6abj3dt mg%40virtual/
    8/30/13 3:09:02.590 PM CalendarAgent[1480]: AOSKit ERROR: RAF: Invalid url -- https://username%[email protected]/calendar/dav/username%40gmail.c om///username%[email protected]/calendar/dav/username%40gmail.com/
    8/30/13 3:09:02.665 PM CalendarAgent[1480]: AOSKit ERROR: RAF: Invalid url -- https://username%[email protected]/calendar/dav/username%40gmail.c om///username%[email protected]/calendar/dav/username%40gmail.com/
    8/30/13 3:09:02.684 PM CalendarAgent[1480]: AOSKit ERROR: RAF: Invalid url -- https://username%[email protected]/calendar/dav/cln2stbjc4hmgrrcd5 i62ua0ctp6utbg5pr2sor1dhimsp31e8n6errfctm6abj3dtmg%40virtual///username%[email protected]/calendar/dav/cln2stbjc4hmgrrcd5i62ua0ctp6utbg5pr2sor1dhimsp31e8n6errfctm6abj3dt mg%40virtual/
    8/30/13 3:09:02.897 PM CalendarAgent[1480]: AOSKit ERROR: RAF: Invalid url -- https://username%[email protected]/calendar/dav/username%40gmail.c om///username%[email protected]/calendar/dav/username%40gmail.com/
    8/30/13 3:09:02.905 PM CalendarAgent[1480]: AOSKit ERROR: RAF: Invalid url -- https://username%[email protected]/calendar/dav/cln2stbjc4hmgrrcd5 i62ua0ctp6utbg5pr2sor1dhimsp31e8n6errfctm6abj3dtmg%40virtual///username%[email protected]/calendar/dav/cln2stbjc4hmgrrcd5i62ua0ctp6utbg5pr2sor1dhimsp31e8n6errfctm6abj3dt mg%40virtual/
    8/30/13 3:09:02.952 PM CalendarAgent[1480]: AOSKit ERROR: RAF: Invalid url -- https://username%[email protected]/calendar/dav/username%40gmail.c om///username%[email protected]/calendar/dav/username%40gmail.com/
    8/30/13 3:09:03.023 PM CalendarAgent[1480]: AOSKit ERROR: RAF: Invalid url -- https://username%[email protected]/calendar/dav/cln2stbjc4hmgrrcd5 i62ua0ctp6utbg5pr2sor1dhimsp31e8n6errfctm6abj3dtmg%40virtual///username%[email protected]/calendar/dav/cln2stbjc4hmgrrcd5i62ua0ctp6utbg5pr2sor1dhimsp31e8n6errfctm6abj3dt mg%40virtual/
    8/30/13 3:09:03.135 PM CalendarAgent[1480]: AOSKit ERROR: RAF: Invalid url -- https://username%[email protected]/calendar/dav/cln2stbjc4hmgrrcd5 i62ua0ctp6utbg5pr2sor1dhimsp31e8n6errfctm6abj3dtmg%40virtual/events///username%[email protected]/calendar/dav/cln2stbjc4hmgrrcd5i62ua0ctp6utbg5pr2sor1dhimsp31e8n6errfctm6abj3dt mg%40virtual/events/

    After upgrading to Mavericks the log messages did change for Google as well other items. I think all these "error" messages are of no real consequence in most cases. If you use the Console App you will definitely see more items just in booting up than anyone would care to see. I think the log only holds a couple of days worth of items or at least only displays that much. I get Air Play errors even though I don't use Air Play or just because I don't as an example of other error messages that don't really matter. I never had a problem with my Calendar working with Google's calendar other than the update sometimes took a while to reach the Android phone or the MacBook.
    So, the solution for me is to ignore the Console logs unless I have a problem with something. Maybe then, it might be of some use. I'm not going to worry about the small amount of disk space the log takes up.
    However, I wouldn't say anyone should have to update to Mavericks just to change the Console log messages. The latest update of Mavericks is finally working nicely with my Android phone and my Gmail but it was not so for my Gmail in the beginning with Apple Mail - but that it another story.

  • Yahoo Email and Calendar will sync to my iPhone, but Contacts will not.  Selection for "Default Account" doesn't even show in the Contacts section within Settings on the iPhone.

    I have always had my Yahoo Email, Calendar and Contacts synched to my iPhone.  However, I noticed some Contacts weren't synching from the Yahoo account to my iPhone, so I thought if I just deleted the Yahoo account and added it back, I'd be fine.  That worked fine for my Email and Calendar, but now I have NO Contacts from Yahoo on my iPhone.  When I go to Settings, under Contacts, it doesn't even have the option for 'Default Account.'  Help!

    Hello Marsha,
    Thanks for using Apple Support Communities.
    It's not clear exactly what you're trying to accomplish here.  If you're wanting to set up SMS forwarding introduced in iOS 8, then please follow the directions below.  Also, your Apple ID should be an email address.
    To use Continuity for SMS and MMS with your iPhone and your Mac, iPad or iPod touch
    Your iPhone, iPad, and iPod touch need to use iOS 8.1, and your Mac needs to use OS X Yosemite.
    Sign in to iMessage on your iPhone, your other iOS devices, and your Mac using the same Apple ID.
    On your iPhone:
    Go to Settings > Messages > Send & Receive > You Can Be Reached By, and add a check to both your phone number and email address.
    Go to Messages > Text Message Forwarding, and enable the device(s) you would like to forward messages to.
    Your Mac, iPad, or iPod touch will display a code. Enter this code on your iPhone to verify the SMS feature.
    Connect your iPhone, iPad, iPod touch, and Mac using Continuity - Apple Support
    Take care,
    Alex H.

  • The contacts and calendar data on my iPod touch will not sync with my Mac

    I have a 2nd generation ipod touch, and an iMac running iTunes 8.2.1.
    I have been away from my mac for a few months and have entered a lot of contact and calendar info into my ipod touch.
    Now, when I try to sync the contacts and calendar data on my ipod touch with my mac, the data will not sync to my mac.
    Similarly, for the last couple months, the contact and calendar data on my ipod touch has not been able to sync with my mobileme account.
    I cannot afford to lose the contact and calendar data on my ipod touch.
    Can anyone kindly inform me how to fix this syncing problem without losing such data?

    DGKSA wrote:
    I ended up entering the data onto my Mac, then nuking my iPod touch with a restore.
    So, there is no need to respond to my question.
    You can also mark your post as "solved" if you solved your problem on your own.
    Only the original topic poster has the option to mark replies as either Helpful or Solved or to not mark a reply at all. The originator can also end the discussion by marking the topic as "answered," which displays a green star at the top of the topic page to let everyone know that the topic contains valid helpful information.
    copied from "Terms of Use"

Maybe you are looking for

  • Video playback issue in safari.

    I hope some knows the answer to this. I converted many videos on my website so they could play on the iPhone iPad and iPod a few months ago. I used winff. Everything worked great. Now I have the latest iPhone and none of my videos will work. Safari s

  • Mac Pro sleeps after being woken up by WOL

    Hi Folks In order to wake up my Mac Pro on demand, I have set up Wake Over LAN (WOL) over the network and enabled "wake for network access" at System Preferences > Energy Saver on the Mac Pro. Now I am able to wake up the machine from my local router

  • SharePoint 2013 - SQL Server BCS Model Incremental Crawl content doesnt show up in Search results

    SharePoint 2013 - SQL Server BCS Model Incremental Crawl content doesn't show up in Search results, Incremental crawl is working fine, i.e., its picking up newly added records in table to the Search, but the newly added content is not available in se

  • InContext Editing service interruption 11:59pm 11/6/08 - approx 30 minutes

    The Adobe InContext Editing service will undergo scheduled maintenance for approximately 30 minutes starting at 11:59PM PST on 11/06/2008. The service will be unavailable during this time. We appreciate your patience and apologize for any inconvenien

  • How can I crop again in photoshop?

    This is the error message I get on my macbookair. It previously worked and now all of a sudden it does not. I have creative cloud and running latest mountain lion. Anyone know how I can resolve this? I have uninstalled and reinstalled. I have 58.86GB