Defaulting sysdate on save - no time component

I have a date column (date_modified) in my table and i am displaying on form as date picker DD-MON-YYYY HH:MI. Users can not enter this but they can see it. When I save the record I have am setting the item like<br><br>P1_DATE_MODIFIED := sysdate;<br><br>and then the automatic update process puts it in. trouble is, it is going in without the time component. I have tried <br><br>P1_DATE_MODIFIED := to_date(to_char(sysdate,'dd-mon-yyyy hh24:mi'),'dd-mon-yyyy hh24:mi');<br><br>but no luck there either.<br><br> if i update the column in sqlplus using the sysdate or to_char to_date method then it does get the time component and it displays it in my form. I cant figure out why it loses it when inserting when the last thing i do before insert is convert it to the time format (i shouldn't even need to do that, sysdate should work fine)

Hi Victorp or any others,
I am also having a major problem of not able to store time component. I have a field called ":P61_WHEN_CREATED" in my form DISPLAY aS (Date Picker DD-MON-YYYY HH24:MI) and I have a process after submit - Before computations and validations) to set the field value to sysdate as :
:P61_WHEN_CREATED := to_char(sysdate,'DD-MON-YYYY HH24:MI');
and after submit after computations and validations I have another process to post the values into table as:
Insert into c_addendums (MECnum,WHEN_CREATED) values :P61_MECNUM, :P61_WHEN_CREATED;
But i am getting the error :
ORA-01830 date format picture ends before converting entire input string.
Can you please help me.
rgds,
Suma.

Similar Messages

  • DATE type returned from function does not return the time component

    Hi,
    I'm dealing with a strange problem. I have a PL/SQL function (running on Oracle 8.1.4.7) which returns a DATE value. Like we all know the DATE datatype includes a date component and a time component.
    The function I used for testing is like this:
    FUNCTION ReturnDate return Date is
    dReturn Date;
    Begin
    select sysdate into dReturn from dual;
    return dReturn;
    end ReturnDate;
    When I call this function from .NET using ODP.NET the date value I get does not have the time component included only the day-month-year components.
    This is a code-snippet that calls the function :
    command.CommandText="Schema.ReturnDate";
    command.CommandType=CommandType.StoredProcedure;
    command.Parameters.Add("Return_Value",
    OracleDbType.Date,0,ParameterDirection.ReturnValue);
    command.ExecuteNonQuery();
    I use the OracleDbType.Date type which I think is the most logical choice, because the type in the Database is after all DATE.
    However this does not include the time componet. But if I change the OracleDbType.Date to OracleDbType.TimeStamp I get the time component. I'm not happy with this "hack" because I'm not sure what will happen when we upgrade our version of the Database to Oracle 9i which uses the new TimeStamp datatype.
    Is this a bug that the OracleDbType.Date does not include the time component??

    How do you examine the output Date value?
    If it is from the string, then the time components will
    not show because the NLS_DATE format in the client
    machine does not contain the time components.
    In American, the Date format is 'DD-MON-RR' by default whereas, the TimeStamp format is 'DD-MON-RR HH.MI.SSXFF AM' by default.
    Can you take a look at the time components from the OracleDate by accessing the time properties, eg. OracleDate.Hour, OracleDate.Minute..etc to see if the time values are there?
    Thanks
    Martha

  • How can I save to Time Capsule?

    I am a new Mac user, just got my first MacBook and TC. I want to start saving files to the time capsule, but it's not give me a path to do so. When I choose a file I want to save, then File >>> Save As >>> Time Capsule, the Save botton on the bottom right never is available to be chosen.
    Do it need to be formatted? Please assist, thank you.

    Load the airport utility for windows. Sadly the most recent one is old.
    http://support.apple.com/kb/dl1547
    Although it is for windows 7 it does work on 8 and 8.1 .. tell us if you have problems loading it. Some people find it won't work without using safe mode.
    The utility will not help a lot to setup the latest model TC.. it is fine for Gen4 and earlier. But it does load bonjour for windows and a disk access agent.
    The TC should run simple names.. Short.. keep them below 10 characters if you can. No spaces and pure alphanumeric.
    That includes the base station name and wireless name.
    Once all of that is correct, open windows explorer and type in the address bar.
    \\TCname or \\TCipaddress where you replace TCname with the new short name or TCipaddress with obviously its actual IP.
    You will then get a request for username and password. Username is whatever.. admin will do. Password type in your disk access password.. public by default.
    TC is not designed to allow partitions so you cannot partition the TC disk. Create a folder and simply copy and paste your files to the folder.
    NOTE:: The TC cannot back itself up. So make sure you do not move files to the TC without having another copy.
    NOTE:: The TC does not happily mix TM backups and data.
    See http://pondini.org/TM/Home.html For info about TM and the TC.
    This area in particular.
    Q3 http://pondini.org/TM/Time_Capsule.html
    On mixing data and backups.

  • Change default format in "save as" file format window

    I month ago I asked the following question...
    "How do I change the file format order that is listed in the "save as" file format window? Instead of having "Photoshop" listed as the default file, I'd like to have JPEG at the top, then TIFF, PSD, etc. I have to constantly scroll down the list to find JPEG."
    Recently while selecting JPEG in the "save as" format window, I accidently selected "Large Document Format" while holding down either "control", "option", "apple key", or "shift", or a combination of keys. Now the default format in the format window is "Large Document Format" (ext.PSB). I've changed the default from "Photoshop" which is still listed at the top, to "Large Document Format". I'd like to change the default to "JPEG" but I cannot replicate the correct key(s) to change the default format in the window.

    Hello TomGroup...
    I did not receive a satisfactory answer to the question. Yes, you can go
    into the Scripts but that is for experts and it is too much work.
    Aloha... Darrell
    From: TomGroupGA <[email protected]>
    Reply-To: <[email protected]>
    Date: Fri, 08 Apr 2011 12:31:07 -0600
    To: Darrell Wong <[email protected]>
    Subject: Change default format in "save as" file
    format window
    Any updates on this issue?
    I have a similar situation in that no matter what I'm working on, when I
    click "Save As' then the default format option is always .tiff    If I save
    as jpg and then go onto my next file, the default is still tiff again when I
    try to save  No matter what I try, tiff is also my default selection.  It's
    just one of those things that takes a mere 5 seconds to click the dropdown
    and select .jpg, but 5 seconds times a couple hundred files per day...it
    adds up.

  • How to set default preset for Save for Web

    Following the demise of my laptop, I have installed PSE8 (Windows) on my new one.
    On my old machine, the default preset for Save for Web was JPEG High
    On the new installation, the default is GIF and you have to manually scroll through the presets every time to apply the JPEG High preset.
    Is it possible to change the default preset.  If so, how.
    Thank you

    That faq from John R Ellis has not been updated, but may be useful:
    Photoshop Elements 6/7/8 Frequently Asked Questions (FAQ)

  • How does one define a default style for a custom Flex component?

    How does one define a default style for a custom Flex component?
    hello
    I created a new set of Flex component library slib.swc (Flex 4.5). Would also like to have a default style. defaults.css file, making it the default style of the component library.
    Like flex the builder install directory of sdks \ 4.5.0 \ frameworks out \ libs directory has a spark.swc file, open with Winrar will see defaults.css this file. Defaults.css file defines the default style of the flex spark components.
    How can it be achieved?
    As follows
    slib.swc contains a CLabelEx components, and a defaults.css file
    defaults.css source file as follows:
    @ namespace s "library :/ / ns.adobe.com / flex / spark";
    @ namespace mx "library :/ / ns.adobe.com / flex / mx";
    @ namespace cn "http://os.slib.cn";
    cn | CLabelEx
            styBackgroundAlpha: 1;
            styBackgroundColor: # 569CC0;
            styBorderAlpha: 1;
            styBorderColor: # 569CC0;
            styBorderWeight: 1;
            styCornerRadius: 3;
    In slib.swc the application MyLabel.mxml of the source file as follows:
    <? xml version = "1.0" encoding = "utf-8"?>
    <s: Application, the xmlns: fx = "http://ns.adobe.com/mxml/2009
                               xmlns: s = "library :/ / ns.adobe.com / flex / spark"
                               xmlns: mx = "library :/ / ns.adobe.com / flex / mx"
                               xmlns: cn = "http://os.slib.cn
                               the minWidth = "955" The minHeight = "600">
            <fxeclarations>
            </ fxeclarations>
            <cn:CLabelEx x="67" y="112"/>
    </ s: Application>
    I hope CLabelEx default use cn | CLabelEx, style to display its appearance.
    I refer to above approach, but failed to achieve. Can you please re-Detailed
    Thanks!

    dj is right. Any Folder can be a picture folder.
    Create a root level folder and add it to your Pictures Library in Windows.  It will show up with all the scattered pictures from other programs. It can even be a different dirve if you like.  You  can even specify one to be the default save location for pictures in this dialog.
    Navigate to Pictures in your Libraries in Windows Explorer Right Click and select Properties.
    Message was edited by: Rikk Flohr forgot the instructions...

  • Custom screen saver idle time

    Is there a way to set a custom screen saver idle time? Through terminal? I tried "defaults -currentHost write com.apple.screensaver idleTime 160" for 3 minutes but that makes it go to 20 when I view it in preferences... lol, wow. This is hilarious. It's too much to have a slider or let the user enter any number? Too much for Apple, I know. It's tough. 100 billion dollar company. Can't even adjust the mouse acceleration either. Apple is Christ reincarnate.

    i got it to work
    I was runing it as root and you have to run it as Current console user on target computer in order for it to work.
    just in case someone else ever needs it.
    ~X

  • Timestamp without time component

    Hallo,
    Please help.
    I use JDeveloper 10.1.3.2
    I have a table with date column.
    EO on basis of this table with Timestamp attribute
    with the following code in Entity Object Class in order to put the default system date in my field:
    public Timestamp getDatum() {
    if ( getAttributeInternal(DATUM) == null) {
    setDatum(new oracle.jbo.domain.Timestamp(new java.sql.Timestamp( System.currentTimeMillis() )));
    return (Timestamp) getAttributeInternal(DATUM);
    Application definition with DateTimeField (as display type) item.
    When entering the new record I see my field with system date including time component.
    But after commit the transaction I see in database the date value of my field withoud time component.
    Thanks,
    Anna

    My own mistake. Trigger in database that truncated my date-field. Stupid me!

  • How to populate the time component of a cube?

    We have a question regarding how to populate the time component of a cube. Let me explain:
    We are using OWB 10gR2. We have created a cube with several dimensions. We are now building the mapping to load the cube. The cube operator has two columns for every dimension (e.g., "customer" and "customer_id" for the "customer" dimension).
    We understand that, in this case, "customer_id" stands for the dimension business key, so we create an arrow from the business key in the source table to the "customer_id" column in the cube operator.
    So far so good. The mapping works all right, and the cube is loaded correctly.
    Now we need to do the same for the time dimension. We have already created the time dimension and we have loaded it. We have also included it in the cube, so now we have two new columns in it: "time_day_code" and "time", both NUMBER data type.
    We have the "sale_date" column (DATE data type), in the source system and, of course, now we want to populate the date column in the cube. We suppose that, somehow, we have to translate the "sale_date" field into the numeric column of the surrogate key of the time dimension. How should do we do this? I suppose that OWB must do the translation for us, just as it does for the other dimensions, but how? We have been looking into the manuals, and we have found no explanation on how to go about this.
    Any help would be appreciated.
    Best regards
    Juan Algaba

    Hi Juan
    You are right this should have been in the manuals, checked and there is only a brief mention (Using a Time Dimension in a Cube Mapping section)
    The identifier format should have been documented for each level and will involve creating the formatted attribute for input to the cube operator's time dimension reference attribute.
    The time dimension business keys are stored as follows;
    Day Level - YYYYMMDD
    Month Level - YYYYMM
    Week Level - YYYYWW
    Quarter - YYYYQ
    Year - YYYY
    If you have a source that has a SQL date datatype for example and want to construct the key for a cube's time dimension at the day level something like the following expression can be used to construct the time reference from a SQL date...
    to_number(to_char( time_key, 'YYYYMMDD'))
    The result of this expression can be used as input to the cube's time dimension attribute.
    Cheers
    David

  • How to save in time machine for multiple user on one iMac

    I have 3-users on my iMAC.
    How can I save to Time machine?
    Does it save all of files/changes when I save as Administrator?
    Please advise.

    No worries...Time Machine backs up all user profiles with few exceptions (see link below):
    http://pondini.org/TM/26.html

  • How to configure oracle 6i report server run time component with application server

    we got oracle 6i report server for developing the web based reports for our undergoing product. we r succesed in developing the web based reports using oracle 6i report server.But we r facing problems while deploying the product with oracle reports at clients place,why because the client does not have the oracle 6i report server. To solve this problem we have to configure the oracle 6i report server run time component with application server at client side , but we are unable to configure this component(that is CGI handler).

    You can run multiple instances of Reports Server in 6i.
    In tnsnames.ora, for each server, have a different name and each listening to different port.
    For example,
    server1.world = (ADDRESS = (PROTOCOL = TCP)(Host = myhost.mydomain.com)(Port = 1949))
    server2.world = (ADDRESS = (PROTOCOL = TCP)(Host = myhost.mydomain.com)(Port = 1950))
    Also, if you want to know about Reports Server Clustering, you may refer to "Publishing Reports" document on OTN:
    http://otn.oracle.com/docs/products/reports/pdf/A73173_01.pdf

  • How can i control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?

    Sup buddies,
    How can I control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?
    As the project grows in size the load time increases. How does one control not loading all images ,divs,elements etc. until they're
    needed on the timeline? For example some sections are off and only become visible when recalled. My projects slowly grow in size so loading
    all images , is counter productive . My other option would be to create separate htmls but that breaks the seamless user experience .
    TY...Over N Out... 

    hello, kiwi
    quote: "Is there an easy way to burn a completed project to DVD, but keep only the (lo res, lo size) previews on my hard drive?"
    yes.
    maybe,...
    1. you might think of making DVD backups first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    or,
    2. bring in the photographs to hard drive first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    the low rez Previews will stay in Aperture but the high quality Versions will be exported onto DVDs and gone from the hard drive (if you delete the originals).
    another way would be to export small about 50-70 pixel wide high quality jpegs to a folder on your Desktop and import & keep these in Aperture Library as a reference. make metadata to show where the original Project DVDs are stored and DVD filing system used.
    victor

  • Can I set a default folder for "save as"?

    Hello,
    I opened a pdf file attachment to an email by double-clicking it. When I wanted to save the file using File/Save As... , the folder/directory shown was the location where MS Outlook placed the attachment.
    I am using Acrobat Reader XI (latest version) on a Windows 7 64bit PC. I could not find any method to change this default behavior of Save As.
    Is it possible to change the behavior of the Save As function to use one or more of the following:
    a fixed user-defined folder/directory
    the last folder/directory used for the Save As dialog (which should be displayed with the full path) !
    the same location where the currently open file was opened (this is the current & only behavior)
    It would be most useful if the default  behavior could be selected among these options in the Edit/Preferences... dialog. Additionally, in the Save As dialog these same options should be displayed with the default selected, thus giving the user the ability to change the behavior for a specific Save As operation.
    If there is no way to do this (e.g.. with an "undocumented" feature or command-line switch), would Adobe consider implementing this?
    Thank you!

    apparently Adobe doesn't give a sh!t about it's users. The possibility to change default behaviour has been removed with the introduction of version 10 and hasn't come back since. For over 3 years people are complaining about this on the forum and are being offered poor workarounds (create a shortcut in your temp folder pointing to your desktop? for fck sake!)
    Adobe employees will tell you 'default system behaviour' ******** and basicly tell u to go finger ur bu.thole.
    I use to buy their products (adobe creative suite) but the fact they don't give 2 sh!ts about their customers made me pick another vendor.
    Best solution i can offer u is just use ANY of the 10.000 other freeware utilities that do offer the basic functionality u'd expect.

  • I am looking for a map app that will allow me to place pins where my clients offices are on a map and keep them save every time I open the app. Does anyone out there know of an app that will do this?

    I am looking for a map app that will allow me to place pins where my clients offices are on a map and keep them save every time I open the app. Does anyone out there know of an app that will do this?

    "Motion 5" is your friend.
    Michael Wohl has a nice 15 video series (free) about Motion 5 at http://www.macprovideo.com/tutorial/motion5101-overview-and-workflow-guide (right side)
    This is a "teaser" series to sell his tutorials but it is really good. Just saw it yesterday for the first time.
    While all you want is just to place pins, realize that Motion has so much more. All kinds of effects and they can be really customized. Maybe put their street address, contact name, and phone number by the pin?
    Motion 5: cheap at $49.99 (just got my download two days ago)
    Motion 5: Support Community athttps://discussions.apple.com/community/professional_applications/motion_5
    If you're using the map for, say, deliveries, and use an iPad, what you could do is have a general map of the area imported into Motion, create the pins and whatever, then save (share?) it to the iPad.
    Disclaimer: I have virtually no relationship with anything connected with this tutorial product, developer, or anything.

  • How to default Sysdate in Advance table region on clicking Add Another Row

    Hi,
    Can any one please help me how to default Sysdate (MessageTextInput column) in Advance table region on clicking Add Another Row.
    Thanks,
    Mohan

    Got it... thanks mukesh..here it works.Reference to others!!!
    if (ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    OAViewObject vo3 = (OAViewObject)am.findViewObject("XxStageLineVO1");
    OARow row1 = (OARow)vo3.getCurrentRow();
    java.util.Date sysdate = pageContext.getCurrentUserDate();
    String convSysDate = pageContext.getOANLSServices().dateToString(sysdate);
    row1.setAttribute("StrtDt", convSysDate);
    }

Maybe you are looking for

  • PO with GR/IR

    Hi Gugus, Is there a way you can change/edit a PO with a follow-on document like GR or Invoice without canceling the the later documents? Any step by step config will be appreciated. thanks!

  • Caught ERfcExcept in Modulecall: NO_PLUGIN_ACTIVE

    I am getting error while installing SAP SCM IDES on WIN 2003 SBS. The error is Caught ERfcExcept in Modulecall: NO_PLUGIN_ACTIVE. Here is complete log file.. INFO 2007-11-25 12:25:15 Copied file 'C:/Program Files/sapinst_instdir/SCM/SYSTEM/ORA/CENTRA

  • Oracle 9.2 installation error message on window XP:

    Hi all; I am new to oracle and try to install oracle 9.2 on window XP professional. Everything went well except the error message: Tehre is no non empty value found for variable j_Servport in \oracle\ora92\Apache\Apache\ports.ini Here is the content

  • Suggest book on SAP HR Functional for beginners

    Dear All, Request you to suggest me a book for SAP HR Functional for beginners. Thanks in advance for the help. Regards, Taranjit

  • Upgradation issue related to ecc5.0 to 7nw

    hi experts These regarding what type questionears we need to put for upgard from ecc5.0 to 7nw ? the clent having all hcm module ie om,pa,tm,payroll india  and ess/mss, e-rec and interstated in upgrade I need to put some question bank regarding this.