Display current DB time

Hi
I'm developing web application using jd 11.1.2
I have a Trade Time field in a Vo and in my web page I want to default it to the current time of the database
(select sysdate from dual)
How do I display current time in that field when I load the page
Thanks
Padma

user,
in vo. ther is a history column flag. in that u may use that create on or updated on. if ur are luking for history filed . it will also show current date.
but u may give a try. jabr .answer. itz right appraoch.
choose the corrosponing date field in ur ui . go to property palent. paste the code as jabr said.
r else give the intial value of the field in vo of the particualr field.
Edited by: Erp on Sep 29, 2011 3:34 AM

Similar Messages

  • HOW TO DISPLAY CURRENT DATE TIME IN MASTHEAD IN BRANDING IMAGE AREA

    Hi experts,
    I need to display current date time in masthead also and also i should change the welcome area to my own text there how it is possible.....
    and plz tell detail coding also as i dont have idea to change the coding plz help in this............
    where to chan ge and how to change.............
    waiting for u r responses......................
    Regards,
    Shilpa.

    Shilpa,
    go to system administratioon-system configuration-support-support desk-browse deployment-check for com.sap.porta.navigation.masthead.par and download it to nwds.
    when you import it to NWDS jar file will be missing so you need to manually add that to PORTAL-INF/private/lib.
    once you do this go to HeaderiView.jsp in PORTAL-INF/jsp folder.
    write
    <%= new java.util.Date()%> after <hbj:form id="HeaderForm">.for that matter u can write this at any line after this statement
    once you do that select qucik par upload from the tool bar and deploy it.
    go to system administration-system configuration-support-support desk-administration console and upload the par file
    before following these steps take a backup of par file
    reward points if helpful

  • Display current date and time in a Input text field.

    Hi,
    I am new in ADF trying to convert the Oracle Forms to ADF. I have questions how can I display the current date & time in the input text filed when ever the page opens .
    Thanks in advance.

    Hi,
    Check followings will useful
    current date setting
    Current Date

  • Displaying Current Date and Time in JSP

    Hi,
    I need to insert the current date time in Ms SQL Server Database using jsp page. The format of the code willbe
    insert into table(update_date) values ('2007-01-01 10:02:21');
    But i am not getting how to display the current date and time ie. 2007-01-01 10:02:21 using jsp.
    I have tried using
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    GregorianCalendar cal = new GregorianCalendar();
    String dd = sdf.format(cal.getTime());
    insert into table(update_date) values (dd);
    But it didnot get inserted data.
    Can anybody figure out with simple ideas.
    Thank You

    Why then are you trying to insert the current date on a table?
    To show the current date on the JSP you might try
    <%=new Date()%>Or the way you had it on your first post with the date formatter and then use the <%=%> tags. Anyway, it seems to me I'm not really understanding what you actually want to do :-p
    P.S. NOW() is a MySQL function too, not only MSSQL server (didn't even know it had it too ;-))
    mysql> insert into a(up) values (now());
    Query OK, 1 row affected (0.00 sec)
    mysql> select * from a;
    +------------+
    | up         |
    +------------+
    | 2007-04-09 |
    +------------+Message was edited by:
    benubach
    Message was edited by:
    benubach

  • Display current time and date

    How to display current date and time together in pl sql block
    i have written code below but it gives me error
    SET SERVEROUTPUT ON
    DECLARE
    TODAY DATE;
    BEGIN
    SELECT CURRENT_DATE || TO_CHAR(CURRENT_DATE, 'FM HH:MI:SS AM') INTO TODAY
    FROM DUAL;
    DBMS_OUTPUT.PUT_LINE('TODAY');
    END;
    ERROR at line 3:
    ORA-01830: date format picture ends before converting entire input string
    ORA-06512: at line 4

    Here's how you do it:
    DECLARE
    TODAY varchar2(100);
    BEGIN
    SELECT TO_CHAR(CURRENT_DATE, 'MM-DD-YYYY HH:MI:SS AM') INTO TODAY
    FROM DUAL;
    DBMS_OUTPUT.PUT_LINE(TODAY);
    END;
    Notes:
    1. You select to_char(...) into today, so today should be declared as char, not date.
    2. dbms_output.put_line('today') will print "today", you want to print the variable not the string, so no quotes.
    3. date variables contain both date and time, no need to concatenate

  • Time field also displaying current date

    Hi there
    I have two databound fields (to a Sybase back-end) - one is a date field, the other a time field!
    The date field works fine, but the time field is displaying the current date as well as the data retrieved time!
    The field is set to:-
    Data pattern: HH:MM::SS
    Data Format: Time
    Type: Date/Time Field
    Validation Pattern: HH:MM:SS
    The field is defined as 'time' in Sybase, and displays just the time in other objects (.NET fields...).
    Anyone any ideas?

    not the cleanest code, but i had this laying around in an old
    project...
    date = new Date()
    month = date.getMonth() + 1
    today = date.getDate()
    fyear = date.getFullYear()
    hours = date.getHours()
    minutes = date.getMinutes()
    seconds = date.getSeconds()
    if(month <10){
    month = "0"+month
    if(today<10){
    today = "0"+today
    if(hours <10){
    hours = "0"+hours
    if(minutes <10){
    minutes = "0"+minutes
    if(seconds <10){
    seconds = "0"+seconds
    CurrentTime.text = month+"/"+today+"/"+fyear+"
    "+hours+":"+minutes+":"+seconds

  • How can I display the elapsed time of the course using Advanced Actions in Captivate?

    I have a Captivate course which is approximately 35 minutes in length. On each slide I would like to display to the user, the current elapsed time.
    EXAMPLE:
    25/35 minutes complete
    The 35 would remain static, so I have been working with the elapsed time system variable in CP: elapsed:$$cpInfoElapsedTimeMS$$
    I can't seem to get the variable to properly display the elapsed time in minutes, rather than miliseconds. Attached is a screen shot of my advanced action.
    Can anyone provide guidence regarding how I should structure this differntly?

    I talked about that Timer widget in that blog post and pointed to another one:
    http://blog.lilybiri.com/timer-widget-to-stress-your-learners
    If you are on CP7, you'll have this widget also as an interaction, which means it is compatible with HTML5 output. Amd there is also an hourglass interaction, with similar functionality but... did not blog about that one
    PS: Check Gallery\Widgets to find all widgets. Default path is set to Interactions

  • Slider for Display and Control Time of Video

    Hey Community,
    I run a Video with the IMAQ/ AVI components. Therefor i want to have a timeband as there is one in a normal video player. The Time runs and if I click on the band the video should jump to this moment of the video. Is there a possibility to manage that or do i have to seperate the display of the time and an extra Control to jump to the point of interest?
    In the file there is a little example what i mean. (LabView 2010)
    Thanks Philipp
    Solved!
    Go to Solution.
    Attachments:
    Slider.vi ‏23 KB

    Hi Philipp,
    you could do that by modifying the "Read AVI File Example.vi" (see Screenshot). I also attached the VI saved with "For previous version", I hope that works for you too.
    This example uses the "IMAQ AVI2 Read Frame VI" function where you can specify the desired frame. So you only have a control that can modifies the current frame, which is normally incremented every loop iteration.
    Best regards,
    Christoph
    Attachments:
    screencapture0.png ‏84 KB
    Read AVI File2.zip ‏27 KB

  • How to get Client(browser) current date/time in BIP report

    Hi,
    I need to display report generated date in BIP report and this should be client(browser) current date/time. I tried the following things.
    1. have used MS Word Native Date/time using Insert->Date/Time. And we have chosen the M/d/yyyy h:mm:ss am/pm format. but it is printing BIp server date/time, not client date/time.
    2. <?xdofx:sysdate?>, <?xdoxslt:sysdate_as_xsdformat()?> and <?format-date:xdoxslt:sysdate_as_xsdformat();'SHORT_TIME'?> are giving GMT Date/Time, but we need client Date/Time.
    3.<?xdoxslt:sysdate('DD-MON-YYYY HH12:mi:ss')?> is giving the system date/time of the machine where BIP server is installed.
    Could you provide some help in this??
    Thanks
    Hari

    Hello, Hari,
    what would return something like this:
    Execution date:
    <?xdoxslt:current_date('ja-JP', 'Asia/Tokyo')?>
    <?xdoxslt:current_time('ja-JP', 'Asia/Tokyo')?>
    @Vetsrini,
    for my opinion,
    in the countries where time is switching (winter/summer) using the hard coded time zones in the format-date() cause a problem:
    for example:
    if we enter the date in date prompt in summer it will return PM_DT = 2010-07-20T00:00:00.000+04:00
    in winter 2010-07-20T00:00:00.000+03:00, so,
    using <?format-date:PM_DT;'DD.MM.YYYY';'GMT+3'?> return 2010-07-20 in winter and 2010-07-19 in summer.
    regards,
    Eldar A.

  • How to display current date in query header?

    Hi,
    How to display current date in query header?
    I use Query Designer for development.
    Thanks,
    Arun KK

    Hi Arun,
    You can define fixed header lines and footer lines so that when you generate the query list, they can receive current values of certain fields. When you define a header line or a footer line, you must specify a character string of the type &field, where field is the short name of a field.
    This function allows you (for example) to place a sort criterion in the header line.
    You can include the following fields as variables in the headers directly:
    %NAME
    Name of the user processing the query
    %DATE
    Current date
    %TIME
    Current time
    %PAGE
    Current page number (6 characters)
    %P
    Current page number (3 characters)
    These fields can be used in the short forms N,D,T and P. If you want to use these letters as short names for query fields, the field values from the query are used.
    You can also see the link
    [http://help.sap.com/saphelp_nw70/helpdata/EN/6e/dd68721faf11d6b1d500508b6b8b11/frameset.htm]
    Regards,
    NR

  • Please provide an example of how to display the system time in CNiNumEdit.

    I need to display elapsed time in a numeric edit control. The value must be a double. Using MFC, please show me an example that displays the system time in a CNiNumEdit control.

    The trick is to set the FormatString of the num edit control to a format that displays dates/times and to use the COleDateTime class to handle converting the date/time to a double. COleDateTime encapsulates time stored as a DATE, which is a typedef for double. COleDateTime uses the same conversion factor for date/time as what the num edit expects, and since it supports a conversion operator to a DATE, which is really a double, and the num edit Value property is a double, displaying the current time in a num edit can be as simple as this:
    // Assuming you have a member variable called m_numEdit for a CNiNumEdit
    m_numEdit.FormatString = _T("hh:nn:ss");
    m_numEdit.Value = COleDateTime::GetCurrentTime();
    Hope this helps.
    - Elton

  • How to filter list items by current system time in search result wp or result source SharePoint 2013

    I want to display Items with PressDate less than or equal
    to current time in my search result webpart in SharePoint 2013.
    It is working fine for current date but not considering current time.
    {searchTerms} ContentType="ABC" PressDateTime<{Today+1}
    Above query not supporting for Now(), due to that it
    is showing items which are less than or equal to current (today's) date.
    How can I compare time with current system Time?..Thanks in advance.
    Regards, --NP

    You can achieve the same by using a Current Date Offset in a CAML Query to Filter List Items.
    Have below links for your reference.
    Sharepoint Tips And Tricks
    CAML Query to Date prior to 30 days from today
    Thanks.

  • Trouble with current playback time on progress bar

    First, some terminology.
    As Adobe Flash Player is preparing to play a video, it displays a spinning icon in the center of the video window.  I have seen web pages which refer to this as the spinning beach ball.  I will refer to this simply as the "spinning icon".
    While Adobe Flash Player is playing a video, when one hovers the cursor over the video window (or moves the cursor while playing the video in full screen mode), one sees a progress bar at the bottom of the window.  To the left of the progress bar is a pause button.
    The progress bar has a pointer representing the current playback time within the video.  The progress bar also has a display of the current playback time and length of the video (eg, 40:37 / 01:12:35, meaning that play back is at 40 minutes and 37 seconds within a video which is 72 minutes and 35 seconds long).
    On my Windows XP system, when Flash Player V10.0.32.18 is playing a streaming video, the video pauses when bandwidth is momentarily insufficient to deliver the video bit stream.  The spinning icon appears in the center of the video window.  The current playback time on the progress bar also pauses, as it should.  But when the video resumes, the current playback time does not begin incrementing again.  It remains stalled at the time the pause occurred, which is irritating because it is no longer possible to tell how much time remains in the video.
    It took me a very long time to discover that once the current playback time has stalled, pressing the pause button will cause the current playback time to refresh to the correct playback time and begin incrementing again.  Yaaayyyyyy!
    Now, perhaps someone can help me with a challenge I have been unable to solve.
    On occasion, I want to back up a few seconds within a video.  But if I use my mouse to grab the pointer within the progress bar and move it backward, moving the pointer only a few seconds is a huge challenge.  Even a slight movement of my mouse moves the pointer back a minute or two.
    Is there a way to move the pointer using a key (eg, an arrow key) so that each key press moves the pointer back only a second or two?
    And how about being able to key in a time and press enter, thereby causing the pointer to move to the specified time? Any way to do that?

    Hi OSW, Thanks, now if the NPSWF (FF) files listed are 10.0.32.18 which I'm sure they are, then your FF Flash files are correct. You can right click on each of those and click Properties to confirm the version numbers. Then you have the SWF that is correct. So you have FF Flash files and the SWF, so you are ok on FF.
    IE is a different story. That FIDbg10c.ocx should not be there, it should be Flash10c.ocx to match the FlashUtil10c.ocx.
    Now as far as doing what you suggested, in a word NO. First of all the plug-in is normally used as referring to FF or other browsers than IE. ActiveX is used for IE. If you ran the uninstall_plug-in.exe, you would be removing your FF add on, so don't do that since all of your related Flash files for FF are intact. (Do not disturb:-)
    Now the proper way to Uninstall is to use the Adobe Uninstaller that is downloaded to your Desktop. Then the IE Flash Player Installer is likewise downloaded to the Desktop. Then the FF Installer is downloaded to your Desktop. That way it seems to work better. Also the following must be taken into consideration. Any Anti-Virus/Spyware/Firewall can block
    the install of the ActiveX Control for IE. You must run in the Administrative mode or be the Administrator to install the
    ActiveX and write to the Windows Registry, which Flash Player does on the Install.
    Keep in mind that an Uninstall will remove Flash Player files and the SWF and the SWO for ALL browsers. Then the IE Installer is used to Install FP and the SWO for IE. Then the FF Installer is used to Install the FP & SWF for FF.
    Trying to update or download the Flash Player latest version does not remove the old versions as some software installs do. The old versions must be removed by the Adobe FP Uninstaller prior to any download of the new version.
    I have to be offline for a time. Will check back in later. Just wanted to give you some info on this. There are a couple of things that can be done, and will explain later. If you are satisfied with FF & IE with how Flash Player is working, you don't have to do anything. Again, the update may not accomplish the progress bar issue either. So it is something to think about.
    Thanks,
    eidnolb

  • How can I display current iPhone GPS coordinates using compass app

    How can I display current iPhone GPS coordinates, when traveling overseas with no access of data or wifi
    using "iphone compass app"(Both the latitude and longitude) ??
    if iphone compass app require any sort of data
    what alternative would there be? (to document the coordinates)?

    Hi
    Iphone 5s 16 gb 8.1
    My fone freeze whenever i charge my fone its appear white screen with apple logo.. and as soon as i try to press hold home and power button
    it shows battery drained sign>> i m facing this problem from last one week
    and itunes also not  getting cconnected
    can any1 please help me out
    sorry for poor english

  • How to display Current Year and Month in Drop Down list

    Hi Dear friends,
    I am devloping a report. It has got 2 pages--input and output(Report) page.
    IN input page, user will select Month and Year from drop down list as one of the input parameters. (seperate drop down list 4 month and year)
    Now, my problem is:
    HOw to display current month and year by default in the dropdown list...........
    I hope my question is clear.
    Please help.
    Regards,
    ASh

    NO da,
    it is not working.
    First i tired with for-loop. I initialized variable "i" to -2 (i=-2) I would get the year drop down list from 2003 but, by default 2003 would come.
    So, i posted the question.
    I tried your code. It is giving following error.
    A Servlet Exception Has Occurred
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occured between lines: 122 and 127 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:182: Invalid type expression.
    first.set(Calendar.YEAR, 2003)
    ^
    An error occured between lines: 127 and 131 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:186: Invalid declaration.
    out.write("\r\n \r\nYear : \r\n \r\n"); ^ An error occured between lines: 198 and 203 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:282: Invalid type expression. first1.set(Calendar.YEAR, 2003) ^ An error occured between lines: 203 and 207 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:286: Invalid declaration. out.write("\r\n \r\nYear :\r\n \r\n");
    ^
    4 errors
    Pls. Help.
    Regards,
    Ashu

Maybe you are looking for

  • Will not boot in Lion

    Help! Final Cut Pro 7.0.3 will not open now that I've upgraded to Lion. Any ideas? Delete preference files?

  • Osx 10.1 installs, won't boot-blank screen

    I recently picked up a G3 from the local University salvage store for $15, bad floppy & no harddrive. So I dragged it home and set it up, added an old 14gig drive, put in an os 9.2.2 cd and off it went. Thinking that I might like to try getting os 10

  • Apple tv static noise interference

    Any advice on how solve a consatnt noise interference when we start play on a purchased film. We had no problem with the preview and this is the 2nd time it has happened.How would we also get a refund for the wasted films. thx

  • Certificate Enrollment Problem

     I have a Windows Server 2008 Enterprise Root CA with a different Windows 2008 Server running the Cert Enrollment website (ussing SSL).  Any certificate that I attempt to request (Vista or XP) results in: ============================================

  • TRANSACTION TO COPY A COST ELEMENT GROUP TO ACCT. GROUP (CONTR. OF KE61)

    HI , is there a transaction which copies a cost element goup to an account group? I know there is a transaction which makes the opposite , the KE61. Thanks and regards,Rino