How to get/display  time with minutes in a test item

Dear experts,
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.4.2 (Production)I've the following requirements.
In my form, there are three text items and one save button.
Text items named as
No_of_days --> Number data type
(user will enter number of days)
hours_limit --> Char data type with format mask (HH:MI);
(user will enter hours with minutes)
Upto_date_time --> date data type;
this field calculated as (No_of_days+hours_limit+sysdate)
User will enter No_of_days or hours_limit:
Based on the values I've to calculate Upto_date_time
Here is the problem:
1) If user doesn't enter hours_limit I want to show default time as " 04:00 PM"
2) If user enter hours_limit field we should allow them to enter in the following format
"HH24:MI" format;
what whould be suitable data type for hours_limit field..
I tried with char and i've set the format mask as ,
set_item_property('BLOCK3.hours_limit',format_mask,'HH:MI');
But I'm geeting the error
"FRM-50027:Invalid format mask for given datatype"
Please help to solve this problem,
Regards,
Karthi

Hi vansul ,
set_item_property('BLOCK3.hours_limit',format_mask,'HH:MI');
Format mast is only allowed to date data type fields.If i set the hours_limit item's data type as date , I'm getting the error message "ORA-01843:Not a valid month"..
How could i make this field only getting or display time with minutes?
Regards,
Karthi

Similar Messages

  • How to get command history with timestamp ?

    how to get command history with timestamp ?

    If you are using bash:
    HISTTIMEFORMAT If this variable is set and not null, its value is used as a format string for strftime(3) to print the time stamp associated with each history entry displayed by the history builtin. If this variable is set, time stamps are written to the history file so they may be preserved across shell sessions.
    [SunOS 5.10/bash] [email protected]:/etc/ftpd
    # HISTTIMEFORMAT="%h/%m - %H:%M:%S ";export HISTTIMEFORMAT;history
        1  Aug/08 - 19:07:52 chmod a+rwx /root
        2  Aug/08 - 19:07:52 ll /
        3  Aug/08 - 19:07:52 tail -f /root/mylog.log
        4  Aug/08 - 19:07:52 vi /usr/dt/bin/Xsession
        5  Aug/08 - 19:07:52 cat /root/mylog.log
        6  Aug/08 - 19:07:52 ls /export/home/p661210/.dt
        7  Aug/08 - 19:07:52 ls -la  /export/home/p661210/.dt
        8  Aug/08 - 19:07:52 cat  /export/home/p661210/.dt/errorlog
        9  Aug/08 - 19:07:52 vi /usr/dt/config/C/sys.dtwmrc
       10  Aug/08 - 19:07:52 ls
       11  Aug/08 - 19:07:52 cat Xresources.jds
       12  Aug/08 - 19:07:52 vi /usr/dt
    [SunOS 5.10/bash] [email protected]:/etc/ftpd
    [SunOS 5.8/bash] root@wgls03:/root
    # HISTTIMEFORMAT="%h/%m - %H:%M:%S ";export HISTTIMEFORMAT;history
        1  Jul/07 - 09:02:21 vi /etc/vfstab
        2  Jul/07 - 09:02:21 mount /store
        3  Jul/07 - 09:02:21 cd /store/bnz
        4  Jul/07 - 09:02:21 ls
        5  Jul/07 - 09:02:21 ./BNZ_installBaseSoftware
        6  Jul/07 - 09:02:21 find /usr -name gunzipCheers,
    Andreas

  • How to get the itunes with those 3 colored buttons on top left corner ????ner ???

    Please help [humble request] ----
    I have 3 problems can u please help me out --
    1) How to get the itunes with the 3 colored buttons (i'm new to apple ,just 8 days so i dont know much stuff) on top left corner ,i've downloaded thrice from apple's site directly i everytime got the same sort of itunes with 'File' ,'Edit' ,'View' ,'Controls' ,'Store' ,'Adanced' ,'Help' on the top ,and also whenever i open the itunes store (in this itunes) only the app store opens ,now music albums ,movies ,tv shows nothing !!
    2) I dont know how to import video files from the computer to itunes
    3)i bought an app [fifa 11] ,n downloaded another 1 [contract killer] {ive deleted them and downloaded them thrice ,and they dont sync to my itouch it shows error (0xE800004C)
    Please please please help me im getting worried and frustrated
    please help me out with this

    but illaass
    i asked 2 of my frnds both of them have windows n not mac ,both of them are sayin dat they have the coloured buttons one , and i asked them dat how to access the itunes music store they said that when they kliked d itunes store option in the left side a screen appears where 6 -7 categories are there which are music store ,app store ,podcasts ,movies ,tv shows etc . bt when i open it it only shows d app store ,and on the bar only 4 options are ther the home icon , app store , podcasts and itunes u ,and when i klik movies ,tv shows on the left side ,there is an option "browse for movies in the itunes store" i klik it and only the app store opens and nothing else .
    and thanks now i know how to import videos
    and sigma 1337 ,
    ive downloaded the apps 4 -5 times now , still d same error mssg it comes like dis :-
    " Some of the apps in your iTunes library were not installed on the ipod "Shomik's ipod" because one or more errors occurred "
    please help me  im gettin frustrated

  • How can I count time with labview7?

    Hi
    How can I count time with labview 7 and NI-DAQmx like I did with labview 6.1 and "count time-easy.vi" (count event or Time.vi).
    I have a 6025E and labview 7.0
    Thanks

    I am not sure what you want to do or why..
    ... but here goes (some suggestions)
    If you want to count the time between two events, you have a choice, you may use the Tick Count. Inisitalize it first by getting a timestamp and then do a difference within a loop. The difference will give you the time elapsed in ms.
    You can also use the Get Date/Time String or Get Date / Time in seconds and once again take a snapshot when a first even occurs and another snapshot at the next even (at a point where you want to measure elasped time). This method is particularly useful if you want to timestamp an event.
    If I didn't answer your question, can you elaborate what you mean by "How can I count time".
    Best of luck..
    JLV

  • How to get current time and date??

    How to get current time and date from my PC time and date to the java application??
    i use java.util.* package but got error, that is:
    - java.util.* and java.sql.* class are match
    - abstract class cannot be instantiated
    so what can i do, pls guide...thanks...

    There is a method in the System class that will return the current system time. You could also instantiate a Date, Time, Timestamp, or Calendar object, all of which get created with the system time by default.
    Don't import *. Import the specific classes you need.
    Next time, post the actual text of the exceptions/compile errors. If you make people guess, most just won't bother.

  • How to get in touch with customer service?

    How to get in touch with customer service? Twice I had a chat and I would get an answer in a few days. Never heard a thing! I need an invoice for my book-keeping but I can't download it. It says: get in touch with the customer service. But I chatted for 2 times, tried to phone, They won't answer the phone. Where is the customer service!!!!!!!!!

    Hi Regine43b,
    Please refer to the following link for help with your monthly invoice: http://helpx.adobe.com/x-productkb/policy-pricing/print-creative-cloud-receipt.html
    If in case you still face issues, please contact support @ https://helpx.adobe.com/contact
    Regards,
    Sheena.

  • How to get spool along with e-mail or FAX

    Hi,
    I have a requirement where i have to produce a spool even i go for e-mail or FAX option when the script is triggered.
    I am using a standard program where it is coded to have either of the option. i.e. either we have to go for a printer or e-mail or FAX.
    Could any one suggest me how to get spool along with e-mail or FAX option.
    Thanks in advance.

    Hi,
    check this:-[http://help.sap.com/saphelp_nw04/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/frameset.htm]
    hope u'll get some idea.
    Regards,
    Sneha.

  • I have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending

    i have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending the mail.
    Also the mail is acting very funny by not getting the rules work in a proper method.  Is ther a software to repair mail.

    i did both of them, but still the while sending the mail the diolog box is not showing up and also the spelling and grammer does not do the spelling check. 
    This problem just started for about 3 to 4 days now.  earlier it was working normally.

  • How to get the table with no. of records after filter in webdynpro

    Dear Gurus,
    How to get the table with no. of records after filter in webdynpro?
    Thanks in advance.
    Sankar

    Hello Sankar,
    Please explain your requirement clearly so that we can help you easily.
    To get the table records from your context node use method get_static_attributes_table()
    data lo_nd_mynode       type ref to if_wd_context_node. 
    data lt_atrributes_table  type wd_this->elements_mynode. 
    lo_nd_mynode = wd_context->get_child_node( name = wd_this->wdctx_mynode ). 
    lo_nd_mynode->get_static_attributes_table( importing table = lt_atrributes_table ). 
    Note: You should have already defined your context node as a Dictionary Structure.
    BR,
    RAM

  • How to increase display time of Toast notifications in Windows 10?

    Hi,
    I want to know how to increase display time for Windows toast notification in Windows 10.

    On Thu, 2 Apr 2015 09:08:12 +0000, david hk129 wrote:
    Start > left side, Settings > Ease of Access > left side, Other options > at Show notification for, change the time .
    If the OP is asking about the notifications generated by the new
    Notifications Center feature then the above won't do any good. The above
    setting only impacts the old style notifications generated by applications
    that have icons in the system tray area of the task bar.
    Paul Adare - FIM CM MVP
    "The most amazing achievement of the computer software industry is its
    continuing cancellation of the steady and staggering gains made by the
    computer hardware industry." -- Henry Petroski

  • I am just starting out in graphic design and I wanted to know how to get more involved with either adobe and or graphic design? I am really very interested in working with adobe and graphic design more and becoming more involved with both!!

    I am just starting out in graphic design and I wanted to know how to get more involved with either adobe and or graphic design? I am really very interested in working with adobe and graphic design more and becoming more involved with both!!

    I have now recently downloaded 10.0.2 which is confusing in itself, as, as far as I can ascertain that is actually version 11, but I'm not even sure about that.
    Version 10.0.2 is the newest version and the successor to GarageBand '11 (version 6.0.5).
    The '11 is referring to the iLife '11 suit of multimedia application - the older GarageBand was a part of this bundle.
    Have a look at Edgar's graphical enhanced manuals, the explain very detailed how things work and why. You can buy them as iBooks from the iBook store or directly from the page:
    http://DingDingMusic.com/Manuals/

  • How to get  Unapplied Amount with SQL or API in AR/ORACLE RECEIVABLES

    Hi ,
    how to get Unapplied Amount with SQL or API in AR/ORACLE RECEIVABLES.
    who can help me ? Thank you very much !

    i get it from private API.
    SELECT SUM(decode(ra.status, 'UNAPP', nvl(ra.amount_applied, 0), 0)) unapplied_amount
    FROM ar_receivable_applications ra
    WHERE ra.cash_receipt_id = 1820
    AND ra.status IN ('UNAPP', 'ACTIVITY')

  • How to get server time in Oracle Internet Directory (OID)?

    Hi,
    How to get current time on OID server? As in case AD, RootDSE contains currentTime attribute, Is there any attribute in OID through which I can get current time on server.
    Thanks in advance for any help.
    Regards,
    Umesh

    Hi,
    wrong forum, use Identity Manager
    Frank

  • How to get a time from a NTP server in ActionScript 3 ?

    Dear All,
    I need your advice, how to get the time from NTP Server , I tried to do this, but I don't.
    Thanks
    Omar Mahmoud

    you must use a server-side language supported by your server.  php is a commonly supported language on most servers.
    php tutorials can be found via google or any other search engine.

  • How to get mpeg streamclip with mpeg 2 to work on Leopard and for fcp x?

    How to get mpeg streamclip with mpeg 2 to work on macbook with Leopard and VOB files?  Goal is to import into FCP X.
    mpeg used to download effectively and for free with fcp 7 but apparently not the case with fcp x.

    You need the MPEG-2 playback component. This is described in detail on the Squared5 web site.

Maybe you are looking for

  • IPhone cannot be synced.  The disk could not be read from or written to.

    New error that started showing when syncing my iPhone, iPad and AppleTV....

  • We are looking for Oracle Consultant for SCM, Shanghai, China

    We are looking for the Sr. Oracle ERP Consultant for our client, which is an US based Fortune 500 industrial company located @ SH, China. Please contact me if you have the interest: [email protected] Detailed job description as below: Position: Sen

  • How to see iCloud Photos on iPhone?

    Hello, So, two days ago I took the plunge and activated iCloud Photos, primarily for the backup, but also for consistency across devices. When I flipped the switch, my iPhone warned me that all photos would be remove (I'd read about this). I said "OK

  • Drawind API help

    I need some help locking rounded corners in drawRectangle function im making. when i call the function i want to be able to specify the width and height, and i want the rounded corners to keep the same amount of curve, but i need them to update their

  • DO you need Bonjour for printing on Windows?

    I'm just wondering if Windows PCs connected to the AIrport Extreme need to have Bonjour to print? On our Macs there is no problem. We see the printer as a Bonjour printer. The problem is that we have a lot of clients who come to our office who have P