Newbie question: how to show current time as default value in textfield?

hi.
i wanna have a textfield that shows the current systemtime in the format
DD-MON-YY
i tried to do it as a pl/sql statement in the default value but it tells me
ORA-06550: line 1, column 27: PLS-00103: Encountered the symbol "BEGIN" when expecting one of the following: ( - + case mod new not null avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date pipe
thanks for help! :)

Joshua,
Specify a default value of:
to_char(sysdate,'DD-MON-YY')
and a Default Value Type of PL/SQL Expression.
Joel

Similar Messages

  • Newbie question: how to know current namespace in dbx debugging environment

    Good afternoon,
    I have an application, running on a Solaris 5.8.
    This application gives errors because of namespace issues, therefore I would like to check the namespace I am working in while debugging with dbx, but I don't find the command for this.
    Does anybody know which command to launch within a dbx environment for displaying the current namespace?
    Thanks
    Dominique

    (dbx) help -k namespace
    scopes (command)
    (dbx) scopes
    Function PSeudoClass::plain_function()
    namespace PSeudoClass
    File "ambig.cc"
    Loadobject /export/home/test/c++/namespace/a.out

  • How to show current year and last year sales in a WEBI Report

    Hi Guys
    How can show current YEar Sales in one column and Last YEar Sales in the other column based on a user prompt for the Current YEar Column.
    For Example is user enter 2010 for Year how can i show a Column for Sales-2010 and Sales 2009.
    Thanks

    If you can modify your Universe add an object named New Object Last Year whose SQL is:( yourTableName.Year + 1)
    Then in WebI create two distinct queries in your query Pane. In the first one you could do this:
    Query 1:
    objects: Year, Sales ... etc.
    filters:   Year Equal to '1. Prompt Year'
    Query 2:
    objects: Year, Sales ... etc.
    filters:    New Object Last Year Equal to '1.Prompt Year'
    Then in your report you can drag each object on their respective columns.
    If you don't want to use two distinct queries, use one like this:
    Query 1:
    objects: Year, Sales ... etc.
    filters:        Year Equal to '1. Prompt Year'
                 Or
                      New Object Last Year Equal to '1.Prompt Year'
    Edited by: PadawanGirl on Jun 23, 2011 6:28 PM

  • 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 we can find out the default value of the initialization parameters

    Hi All,
    How we can find out the default value of the initilization parameters from oracle database.
    Thanks
    Shiju

    Hi,
    you can find currently used parameter values v$parameter and v$parameter2.
    if default values is different real values then you can see alert.log.
    because in alert.log you will see non default values, rests is default.
    Edited by: admin on May 8, 2010 3:41 AM

  • Current date as default value in scaffolding

    I added a datefield to scaffolding and I'd like to populate it with a default value set to current date.  How can I do that?

    Hello Ram,
    We can not put current date as default value in Crystal Reports 2008.
    If your prompt has calendar then current date will be highlighted once you click on calendar icon.
    HTH.
    Sumit

  • Newbie Question:  How much computer do I need?

    Newbie Question:
    I would like to use MainStage 3 in a live performance environment to play bars, parties, etc.  I'm not looping, using it to playback recordings, processing outboard equipment or vocal processing.  I want to stop carrying Rolands, Nords, Korgs, etc and get to a controller and a rack with a Mac Mini in it.
    I tested a download of Mainstage 3 on my home Mac Mini (late 2012, 3.5 Ghz i5, 4GB RAM, 500GB drive) and it seemed to run fairly well.  $30 well invested so I trekked forward... I purchased a Mac Mini (late 2009,  2.52GHz Core 2 Duo, 6GB RAM, 128GB SSD) for $200.  I started to do more elaborate keyboard setups to see how the CPU would hold up.  It typically runs from 30% to 50% of capacity (CPU and Memory)  It actually boots and runs better than the i5.  I hear the occasion gitch, but it actually seems to be getting better in time (or I'm rock and roll deaf.
    I got a rack, an Airport Express, a Radial USB interface and a Nektar Panorama P6.  It's starting to get expensive, but I'm emboldened by the actual quality for the sound and the flexibility of arranging for live performance.  What used to take me two and three keyboards to play, I can now fit on one performance patch.
    OK, now the question... am I at the limits of this little Core 2 Duo?  Should I upgrade the i5 with more RAM and a bigger SSD and use that?  Should I get a new(er) i7 and bite the $1,500 bullet for the additional RAM and SSD?
    I see that most of you are running pretty nice Macbook Pros with i7 and lots of everything.  My needs are modest; am I OK? 
    BTW, I want to run a Mac Mini in a box because I don't want to carry a laptop out in the open.  If I was doing bigger shows I wouldn't care but I play some rowdy bars and constantly have folks hanging off me while I'm playing.  It's fun, but hard on gear.  If you can't drop it or dip it in beer, it won't last long where I work.
    Matt Donnelly

    Rule of thumb: newer and faster is better. But, depending the complexity of your needs you may be OK with an older Mac. Some glitches that happen in a live performance are due to loss of communication with USB or Firewire inputs, so make sure they're secure. I recently upgraded from a 2010 Mac Mini 2.6 dual core with 16 GB RAM, which was used live for nearly four years, to the latest Mac Mini 3.0 i7 with 16 GB RAM and a 500 GB SSD. I was getting an occasional stuck note with the older one. The new one is rock solid. Some of my patches may have up to a dozen channel strips mapped to three keyboards. The Mini is mounted in a rack next to a MOTU Ultralite Hybrid. It is a good idea to map a panic button on your keyboard to controller # 123(all notes off). Also, you might want to invest in a battery backup power supply(APC, Cyberpower, etc.-$40-$60) to protect your Mac against power loss, which can damage you hard drive.

  • How to set current time ?

    Hi,
    I am in eastern time zone and my Apex sysdate shows EST. However the date picker shows four hours ahead (GMT) . The reason I found is the current_time stamp set to 00:00 instead of -04:00. (DBTIMEZONE) . Our DBA does not know much about APEX . When I made qurries about time zone and time stamp at SQL Commonds, the results are as follow:
    select SESSIONTIMEZONE from dual;
    SESSIONTIMEZONE
    +00:00
    select current_timestamp,systimestamp, localtimestamp from dual
    CURRENT_TIMESTAMP SYSTIMESTAMP LOCALTIMESTAMP
    10-AUG-07 01.07.40.740216 PM +00:00 10-AUG-07 09.07.40.740199 AM -04:00 10-AUG-07 01.07.40.740216 PM
    when I tried the following statement,
    alter session set time_zone= '-4:00';
    I got
    Statement processed.
    but no thing has been changed.
    The question is how to set the time so that in the date picker with time It will show me the correct default time. Right now it is showing four hours ahead.
    Thanks for the help.

    Hi Adnan,
    Convert is from date to string :
    String bldate=item.getBilling_Date();
                                                      String byy=bldate.substring(0,4);
                                                      String bmm=bldate.substring(4,6);
                                                      String bdd=bldate.substring(6,8);
                                                      String bdate=byy+"-"+bmm+"-"+bdd;                         
                                                      java.sql.Date bildate=java.sql.Date.valueOf(bdate);
    elem1.setBilling_Date(bildate);
    Regards
    Khushboo

  • Show current time on front panel?

    I would like to have the the current time and date displayed on the front panel. I have placed a timestamp indicator, but haven't figured out how to reset the timestamp each loop cycle. Any advice?
    I'm using LV7.
    Thanks!
    -aa

    aa.
    all you have to do if you want to show the user the time is put the getdatetime.vi in a while loop by itself in parallel with any other loops you may have. and if you have other while loops already just use a local variable of one of the other while loops for the stop condition.
    see attached vi for example of this
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    time_stamp.vi ‏18 KB

  • How to show a time field in a form portlet

    Hi,
    I am not familiar with PL/SQL and I was wondering how I could show a time field on a form portlet.
    I have a date column in my database that stores the time and date together, but I do not know how to separate them into date and time fields. I also do not know how to concatenate them when a user inserts a new record, or how to query on a date alone.
    At present, the user has to type the date and time following this format mask hh:mi am DD/Mon/RR
    I also have a problem with one of my hidden id fields. I have set the default to a sequence.nextval (#qtc_app.seq_visitor.nextval) and then hidden it since
    it is irrelevant to my users. However, I can no longer use the query function since the sequence is always generating a new value. How would I only generate
    a new sequence no. when a user inserts a record??
    Thank you!
    cheers, Kim

    Hi,
    Each colunm in the form has a format mask associated with it. For the date column make the format mask like this DD-MON-RR HH.MI. This will show the date along with the hours and minutes.
    Thanks,
    Sharmila

  • Possible to show current time during call (not length of call)?

    when i am on a call, the lock screen shows the phone number and the length of time i have been on the call.  is it possible to change this, so that the lock screen shows me the current time (like it does when i am not on the phone)?
    currently, the only way to bring up the current time is to (1) hit the home button (brings up phone controls), (2) slide to unlock, (3) hit home again (to get to enter passcode screen), and (4) enter passcode to see time in green bar at the top of the screen. it's a cumbersome process.

    If I receive a call when locked, after answering, I can see the time in the top status bar...

  • How to get current time

    Hi,
    I would like to know how to get the current time (07H25 for instance).
    Does someone know how to do it ?
    Thanks in advance, Fred.

    java.util.Date = new java.util.Date();
    The above code produces an object which contains a timestamp (date and time) for the instance in which it was created.
    To display it in any format you wish you would use the java.text.SimpleDateFormat class.

  • How to get current time in seconds

    Can someone please tell me how to get the current time in seconds. I am currently doing as follows but not sure if its correct or best way:
    Calendar cal = new GregorianCalendar();
    long currentTimeInSeconds = cal.getTimeInMillis()/1000;

    vik1491 wrote:
    How about this:
    Date date = new Date();
    Format formatter = new SimpleDateFormat("HH:mm:ss");
    String s = formatter.format(date);
    String patternStr = "\\:";
    String[] fields = s.split(patternStr);
    int secondsSinceMidnight= Integer.parseInt(fields[0]) * 3600 + Integer.parseInt(fields[1]) * 60 + Integer.parseInt(fields[2]);
    What about the day what you switch between standard time and daylight savings time?

  • Change icon to show current time

    Is it possible to change the Time app icon so that it shows the current time, like the Calender app icon shows the current date ?
    Also the Weather app icon, can it be changed to show the current temp?
    Or is this something requiring feedback to apple?
    Message was edited by: Denis247

    You currently can't change either. Personally, I don't want the weather updated automatically unless I can turn it off. Also, the time is always shown at the top... therefore adding more complexity to an icon is unnecessary.
    http://www.apple.com/feedback/iphone.html

  • How to show busy times from events in one caldendar in another calendar

    Hi all,
    I have the following scenario: I am managing two calendars in iCal, one with private events and one with work-related events. The private events are entered manually, the work events are synched with an MS Exchange server. How can I show the times of private events as busy in the work calendar? I want to avoid scheduling conflicts without showing the details of my private events to work contacts.
    Cheers,
    M

    Hi Brian,
    Its possible.
    Follow the procedure:
    Create a HTML page in KM, which will hold 2 links. Give names to these links and href as follows.
    Link1: http://<host>:<port>/irj/portal/iview1
    Link2: http://<host>:<port>/irj/portal/iview2
    Create KM Document iView (ABC) and provide path to document of this page.
    Now create another page in PCD (XYZ), and 2 iviews.
    Assign these 2 iViews on this page, but make them invisible on page.
    In iView properties change the property Quick Link as follows (as given above):
    for iView1: iview1
    for iView2: iview2
    Now open your role, create folder inside, and add KM Document iView (ABC). Open the properties of this iView in role and change the property, Initial state as Open, now it will open the KM document iView (ABC) in detail nav, and for opening page (XYZ) you must assign page to role, but make Invisible in Navigation areas to YES
    i guess this solves your issue.
    regards
    Kedar Kulkarni
    reward points for useful answers

Maybe you are looking for

  • LoV in Notification

    I want to create a Region that will appear as a Notification in Workflow. The problem is that I want to have one of the items updateable using an LoV. Is this possible?

  • Address Groups creation in 10.5 Server

    Hi, I use 192.168.2.x for the local network. I tried to create a network range in the Firewall's "Address Group" section but get an error message that this is an "Invalid IP address or range or group" but this is my enabled subnet in DHCP. I can on t

  • Purchased a gift album for a friend in another country

    I live in the US, and gifted an album for a friend. She wrote back saying she lives in Canada now, and therefore apparently can't redeem it. What can we do? In order of preference, I'd like to (1) have her get the music, (2) get a refund, or (3) some

  • .bin file corrupt on RedHat 7.3

    Hello, I have a SSH-root-account on a dedicated virtual server and tried to install the JDK. The file I downloaded is j2sdk-1_4_1_02-linux-i586-rpm.bin, the file size is correct: 40,769,931. After "chmod +a j2*.bin" and "./j2*.bin" and confirming the

  • The internal speakers are making are making a strange noise on my mac

    the internal speakers on my mac are making a strange noise they are working but its almost like there is some interfierence or something