Time saved as "00:00:00" for DATETIME item using OADateValidater

Hi All,
In OAF Page for MessageTextInput item DataType Property set as “DATETIME”. Then it is showing as “DD-Mon-YYY HH:mm:ss” Here requirement is, does not show seconds in that DATETIME item. Written below code
String userDateFormat = pageContext.getOANLSServices().getUserJavaDateFormat();
userDateFormat = userDateFormat + " HH:mm"; // Add Time component to format
OADateValidater formatter = new OADateValidater(userDateFormat, userDateFormat );
OAMessageDateFieldBean laborStartTimeInput = (OAMessageDateFieldBean) webBean.findChildRecursive("LStartTime");
laborStartTimeInput.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
Now, on UI it is showing as "15-Feb-2010 07:30" but once I click on Save button data saved to DB as "15-Feb-2010 00:00:00". What is the wrong in above code.
Please suggest.
Regards,
Srikanth

Using OADateValidater to show Start and End time without seconds like “YYYY-Mon-DD HH:mm” in UI and while submitting NOT getting any JavaScript validation error message. But while saving into Data base time is saving as 00:00:00.
Below code is using to show formatted DateTime on UI:-
++++++++++++++++++++++++++++++++
String userDateFormat = pageContext.getOANLSServices().getUserJavaDateFormat();
userDateFormat = userDateFormat + " HH:mm ";
OADateValidater formatter = new OADateValidater(userDateFormat, userDateFormat );
OAMessageDateFieldBean laborStartTimeInput = (OAMessageDateFieldBean) webBean.findChildRecursive("LStartTime");
if( laborStartTimeInput != null )
laborStartTimeInput.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
++++++++++++++++++++++++++++++++
Here thing is that from convertParameterToViewAttribute() method of OAWebBeanDataAttributeHelper class, calling "stringToDateTime()" method of OANLSServices class. In “stringToDateTime()” method converting given text into format like “new OADateValidater(getUserJavaDateFormat()+" HH:mm:ss", getUserJavaDateFormat());”
So, if I pass parameter text like "2010-Aug-10 10:10" it is parsing as "2010-Aug-10 00:00:00" and returning. Which is NOT correct. This is the reason, for given date and time saved in Data Base as “2010-Aug-10 00:00:00”.
How to handle this to get it save time into Database ?
Thanks.

Similar Messages

  • Pricing at time of goods receipt not possible for this item

    We're receiving error Message no. 06634 Pricing at time of goods receipt not possible for this item when trying to change the PO Pricing Date Category from No Control to 5 GR Date.
    The error message is clear and reads:
    Pricing at time of goods receipt not possible for this item
    Message no. 06634
    Diagnosis
    For this purchasing document item, you wish to specify that a new price determination process is to be carried out at the time of goods receipt.
    System Response
    Pricing cannot be carried out for the item at the time of goods receipt because the price was either entered manually or copied from the last purchasing document.
    The scenario is that we have a contract reference on a PO and the contract condition records are to be maintained as a new price is valid each day.  The problem without this is that the new pricing will not be reflected in the GR.
    What is the solution to overcome this issue?
    NOTE:  the Info Record conditions are not being read during GR as the PO references a contract.

    For further clarification the PO is referencing a contract and as such not pulling the pricing information from the info record and instead pulling the price from the conditions on the contract. 
    I want to change the pricing date category from " No Control" to "5 GR Date" however I'm receiving the error message stated and unsure of how to make this change.
    The intent is not to create a new PO each day the condition record is created and instead we are utilizing one PO referencing one contract with multiple date delimited condition records containing the daily pricing.

  • Variable billing for service items using OKS

    I've a requirement as follows:
    My company wants to create service contracts with FIXED and VARIABLE billing for the same covered products/sites. We know how to setup fixed billing schedule for service items.
    How do we setup variable billing using service items (not through usage items)? What are the steps required for us to do that so that upon counter capture for the service item, variable billing is done.
    Please help.
    Thanks,
    Seth

    The release is R12.1.3
    -Seth

  • SMLets Beta 3: Unable to set DateTime for DateTime property using SetSCSMObject

    Hello,
    I need to set dateTime for my custom fields for Incidents. I wanted to use Set-SCSMObject for that. But it doesn't work. For other field types it is working fine.
    May be I'm doing something wrong, but I don't see it. It would be great if anybody is able to help.
    This is the command I'm trying to run: (I used CreatedDate for my tests)
    Get-SCSMObject -Class (Get-SCSMClass System.WorkItem.Incident$) -Filter "ID -eq IR495" | Set-SCSMObje
    ct -Property CreatedDate -Value [datetime]"06/08/2011 14:08"
    Set-SCSMObject : String was not recognized as a valid DateTime.
    At line:1 char:104
    + Get-SCSMObject -Class (Get-SCSMClass System.WorkItem.Incident$) -Filter "ID -eq IR495" | Set-SCSMObject <<<<  -Proper
    ty CreatedDate -Value [datetime]"06/08/2011 14:08"
        + CategoryInfo          : ObjectNotFound: ([datetime]06/08/2011 14:08:String) [Set-SCSMObject], FormatException
        + FullyQualifiedErrorId : Could not assign date ,SMLets.SetSMObjectCommand
    Thank you
    Oliver

    Hello,
    You must temporary change locale in your script.
    In begin of script you must change locale in "En-Us":
    $OldCulture = [System.Threading.Thread]::CurrentThread.CurrentCulture
    $OldUICulture = [System.Threading.Thread]::CurrentThread.CurrentUICulture
    $culture = New-Object System.Globalization.CultureInfo("en-US")
    [System.Threading.Thread]::CurrentThread.CurrentCulture = $culture
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $culture
    And return locale after script body:
    [System.Threading.Thread]::CurrentThread.CurrentCulture = $OldCulture
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $OldUICulture
    This has solved my issue.  You have no idea how much this has made my day.
    I'm in Australia trying to update/create/close incidents to a canadian server.  Nothing else has worked so far, except this.  The rest of the support/forums on this issue have been crap to say the least.
    It would be nice if MS mainlined the SMLets into SCSM and start actually making their product useful

  • Time-based access to WLAN/building for specific users using WCS/ACS

    Here's our situation:
    WCS: 7.0.172.0
    ACS: 4.2(1)
    MSE: 6.0.75.0
    For an hour or two each day during an event, we're trying to figure out how to prevent students from connecting to the wireless in a particular building.
    All students are in the same WLAN. Everybody on campus uses the same SSID. We dynamically assign users to WLANs based on who they are through ACS. In addition to 802.1x authentication, MAC address authentication is performed by way of ACS to our in-house NAC system, where all students have registered their computers with us. This currently uses the External ODBC Database option in ACS.
    Our contraints:
    - We want them to be able to access wireless at other campus areas during this time, just not in this one building.
    - Faculty/Staff needs to use the wireless in that building during that time. This prevents me from simply shutting down the radios temporarily.
    Has anybody attempted anything similar? Anybody have any thoughts or ideas?
    Ethan A. Cooper
    Network Administrator
    LeTourneau University

    Currently, IP and IPX extended access lists are the only functions that can use time ranges. The time range allows the network administrator to define when the permit or deny statements in the access list are in effect. Prior to this feature, access list statements were always in effect once they were applied. Both named or numbered access lists can reference a time range.
    For the further description following URL for the Time-Based Access Lists will help you.
    http://www.cisco.com/en/US/docs/ios/12_0t/12_0t1/feature/guide/timerang.html#wp10236
    I hope it may help you.

  • Saving Maps as JPG's for Book Module Use

    Does anyone know of a way to save a map with my data (locational) on it for import into the book module?

    Sure, but that's really a work around and may not give you the bit strength to make a clean map feature in either the book module or slide show.

  • Unable to Attach file for list item using SP.File CopyTo Method

    Requirement: I have a document library and list, the requirement is i need to take a document from document library and attach to list item in the list using CSOM only.
    Followed technique: to achieve this requirement i followed below methodology
    clientContext = SP.ClientContext.get_current();            
                    webSite = clientContext.get_web();
                    webSite.AllowUnsafeUpdates =true;
                    var list = webSite.get_lists().getByTitle('Documents');
                    item = list.getItemById(3);
                    file = item.get_file();
                    file.checkOut('Comments',1);
                    file.copyTo("xxxxxxx/Lists/Student/Attachments/4/mahesh.docx","1"); 
    file.checkIn('Comments',1);
                    clientContext.load(file );
                    clientContext.executeQueryAsync(Function.createDelegate(this, this.OnLoadSuccess), Function.createDelegate(this, this.OnLoadFailed));      
    Issue: This functionality is absolutely working fine when list item contains at least one attachment, if list item doesn't have any attachments the code is failing. i tried web.AllowUnsafeUpdates also but not working.
    Could anyone please help me on this.... :(
    Thanks in Advance!
    Regards,
    Mahesh Yamana
    Mahesh@SharepointSolutions

    Hi SK,
    Thank you for your reply!
    We are not allowed to use Visual Studio and the same thing we can use in JavaScript, but file stream takes path as one parameter which is physical location of your file system. When you use it some times users might not have access to the file system then
    our code fails.
    Regards,
    Mahesh Yamana
    Mahesh@SharepointSolutions

  • Querying Exchange 2013 Mail server for email items using c# and Exchange Web Services

    I am trying to upgrade an existing application that reads Exchange 2003 using WebDAV. The mail server is to be upgraded to Exchange 2013, so I am checking how I can use EWS.
    I have a problem in that although I know the inbox has unread items with attachments, the query I am running against the
    FindItems object is returning empty (results.totalCount=0)
    Here is my code snippet:
    private static void GetAttachments(ExchangeService service)
    // Return a single item.
    ItemView view = new ItemView(100);
    ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack;
    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);// .Exchange2007_SP1);
    service.UseDefaultCredentials = true;
    service.AutodiscoverUrl("[email protected]", RedirectionUrlValidationCallback);
    ItemView view = new ItemView(1);
    string querystring = "HasAttachments:true Subject:'ATTACHMENT TEST' Kind:email";
    // Find the first email message in the Inbox that has attachments.
    // This results in a FindItem operation call to EWS.
    FindItemsResults<Item> results = service.FindItems(WellKnownFolderName.Inbox, querystring, view);
    //FindItemsResults<Item> results = service.FindItems(WellKnownFolderName.Inbox, new ItemView(50));
    if (results.TotalCount > 0)
    // looping through all the emails
    for (Int16 iDx = 0; iDx < results.TotalCount-1; iDx++)
    EmailMessage email = results.Items[iDx] as EmailMessage;
    if (email.IsRead == false) {
    // Request all the attachments on the email message. This results in a GetItem operation call to EWS.
    email.Load(new PropertySet(EmailMessageSchema.Attachments));
    foreach (Attachment attachment in email.Attachments)
    if (attachment is FileAttachment)
    FileAttachment fileAttachment = attachment as FileAttachment;
    What I am supposed to be doing is reading all the unread emails in the target inbox (only one Exchange server) and taking the attachments on disk so I can then add them as attachments as new cases on SalesForce.
    Where am I going wrong?
    Also, this line:
    ItemView view = new ItemView(100);
    was:
    ItemView view = new ItemView(1);
    Surely that will only look for one email item, right?

    thanks, do you know why I would be getting an error message like 'The specified object was not found in the store'
    here is my code:
    ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack;
    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);// .Exchange2007_SP1);
    service.Url = new Uri("https://sgexc.bocuk.local/EWS/Exchange.asmx");
    //creates an object that will represent the desired mailbox
    Mailbox mb = new Mailbox(@"[email protected]");
    //creates a folder object that will point to inbox folder
    FolderId fid = new FolderId(WellKnownFolderName.Inbox, mb);
    //this will bind the mailbox you're looking for using your service instance
    Folder inbox = Folder.Bind(service, fid);
    FindItemsResults<Item> findResults = service.FindItems(new FolderId(WellKnownFolderName.Inbox, new Mailbox("[email protected]")),new ItemView(10));
    it's happening on this line:
    Folder inbox = Folder.Bind(service, fid);
    and if I try to use AutoDiscoverURL then I just see my own inbox.

  • BAPI for Reset deletion ind. for PO Item using ME22

    Hi Experts,
    I want to go to Tcode ME22 to Undelete PO Item,    ME22 -> Edit -> Reset deletion ind.
    I have used BDC, and tested successfully. But you know, BDC is not a very good method, and I want to find a BAPI  for it.
    Anyone could help me ?  Give me the BAPI name or how to use it  ?
    Thanks a lot.
    Sincerely ,
    Julie

    Hello
    Use BAPI BAPI_PO_CHANGE for this.
    How to use ? Check this: Re: Bapi_po_change Remove lock indicator of line items in

  • Get value from fields for list items using CSOM SP 2013 and C#

    Hi.
    I added a few columns (e.c. Column1, Column2 and ...) for the List in SP 2013. In the List there are a few records. How to get data entry and display them in a table. For example:
    ClientContext ctx = new ClientContext(ServerUrl);
    List lists = ctx.Web.Lists.GetByTitle(List_name);
    ListItemCollection items = lists.GetItems(CamlQuery.CreateAllItemsQuery());
    ctx.Load(lists);
    ctx.Load(items);
    ctx.ExecuteQuery();
    DataTable table = new DataTable();
    table.Columns.Add("ID");
    table.Columns.Add("FieldValue1");
    table.Columns.Add("FieldValue2");
    foreach (ListItem item in items)
    table.Rows.Add(item.ID, item["Column1"], item["Column2"]);
    Thanks!

    Hi,
    Thanks for your sharing. It will help others who stuck with the similiar issue.
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to create production order for multiple items having common raw materia

    Dear all,
    We are running a sheet metal fabrication company at Vadodara Gujrat.
    Please guide us how to create single production order for multiple items using single raw material??
    For example, We want to produce baby shirt(item code AAA001), shirt with full sleeve(item code AAA002), shirt with half sleeve(item code AAA003),shirt slim fit (item code AAA004),shirt loose fit(item code AAA005) from single raw material say(item code XXX001).
    Right now we have to create 5 production order to produce above 5 items of single sales order  in SAP B1 though it is made from single raw material which is foolishness and time consuming too. (Please also note that to produce any finfish good item, raw material required for that item may vary every time in our process.)
    Kindly guide us how to solve the problem.
    Thanks.
    RUPESH  +91-9227744273
    WEB : www.gorasia.co.in

    Hi Rupesh Gorashiya,
    This is possible through MRP for that you have to put Sales Order first and Run MRP Wizard
    MRP Wizard Put Multi Production Order as per Item Taking in Sales Order just click it on and execute.
    Thanks,
    Srujal Patel

  • Pop Up blocker exceptions are not saved in the browser for use, the next time the PC reboots. How do you save these exceptions for long term use?

    Pop Up blocker exceptions are not saved in the browser for use, the next time the PC reboots. How do you save these exceptions for long term use?

    In case you are using "Clear history when Firefox closes":
    *do not clear the Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/remove-browsing-search-and-download-history
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.
    If you have software like Advanced SystemCare (Surfing Protection feature) that might reset some files to older versions to protect these files against changes then check the settings or uninstall this software.

  • In version 3.x.x I used to be able to type search terms into the address bar and the page would load, similar to Google's "Feeling Lucky" button. Now it just brings up a Google search for the terms I typed in. How can I get this time saving feature back?

    In version 3.x.x I used to be able to type search terms into the address bar and the page would load, similar to Google's "Feeling Lucky" button. Now it just brings up a Google search for the terms I typed in. How can I get this time saving feature back?

    The change between Firefox 3.6.* and Firefox 4 is how location bar search works. In Firefox 3.6 it uses Google "Browse by name" search. With the browse by name search, it performs a Google search and if there is a clear match it will take you to the site, otherwise it shows the Google search result. With Firefox 4 it just performs a Google search if you type something which is not recognised as a URL.
    To get the Firefox 3.6 behaviour on Firefox 4 you need to change a hidden preference.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''keyword.URL''', double-click on it and change its value to the link shown below
    [http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q= http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=]
    If you prefer, you can also do this by installing the Browse by Name extension - https://addons.mozilla.org/firefox/addon/browse-by-name

  • Adjust for daylight time saving different for just one user

    I justed started a new job and I am introduced in a new Windows Terminal Server environment. We use Windows 2003 Server, Exchange 2003, a Sun Fire V210 server and SunRay 270 TC's. The SUN part is totally new for me, so forgive me ;-)
    We have one user that has an Outlook (2003) problem. She saw that after the 28th of March, when the summertime here in the Netherlands is active, her appointments are shifted for an hour. I checked as a Windows administrator the Windows TS she is working on and it has the correct TZ(GMT+1, Amsterdam) and the option for Adjust Daylight Time Saving is enabled.
    Then I checked with her in Outlook, whether this setting is reflected correctly. In Outlook I went to Tools, options, Calendar Options, Time Zone and the checkbox 'Adjust for Daylight Time Saving' is disabled! That is strange since this should be the setting of the server and as I already wrote, this is correct. Ofcourse therefor she can't enabled it here. I let her login with her id card on a different TC 270 client and the same problem there. Than I started on my laptop a remote desktop connection to the Windows TS and we checked again. The strange thing is, now the option is enabled and all her appointments are correct after the 28th of March.
    We have checked with all the other users and nobody else has this problem. We have deleted her Windows profile totally but this didn't solve it.
    Since it only happens when using TC's, I reckon the problem is with the Sun TC's or the SunRay Server.
    Does anybody has a clue what this could be? The Sun Fire doesn't save user specific information, does it?
    Thanks in advance
    Kind regards,
    Olaf

    Ok, now I am a bit confused. I saw the page http://wikis.sun.com/display/SRWC2dot2/Home and looking at that, it seems the SRWC software is Windows software, We have not installed any Windows software from SUN. So, also no SRWC software on Windows. I thought the SRWC was a software component on the SunRay server?
    Maybe I did not explain the problem correctly, but the we have several thin clients, SunRay 270's. They are connected to the Sunray Server, Sun Fire v210. This server redirects them to our Windows Terminal Server. We use Exchange Server 2003 on our Windows 2003 Servers.
    We have one user with the problem. She puts in her ID card in the TC, she is redirected to our WTS, she logs in in the Window login prompt. She starts Outlook and sees in there with Tools, Options, Calendar Options, Time Zone, that the Adjust Daylight Time Saving is disabled. Although this is on the WTS server enabled, system wide.
    When she doesn't use a TC but starts a remote desktop connection from a Windows machine to the WTS, it works fine.
    Again I apologise for my lack of knowledge on the SUN side of this.
    Olaf

  • Hi, it's my first time to add an item in my cart and saved it, but haven't checked it out yet. Does that mean I will already be charged for the item?

    Hi, it's my first time to add an item in my cart and saved it but haven't checked it out yet. Does that mean that I will already be charged for the item?

    No. Not until you check out.

Maybe you are looking for

  • Alpha Channel in .psd or png not printing correctly after latest update.

    Hi all, Just noticed this yesterday. I've been searching for an answer but to no avail. Let me first say that everything works as expected in CS4. But CS5 fails to print correctly. It looks fine on screen and in print previews. I've tried trashing th

  • Problem installing ActiveX viewer in Windows 7

    Hello, We downloaded the public beta of Windows 7 today and I am getting an error in our web application when it tries to install the Crystal Reports XI ActiveX report viewer (version 11.0.0.1424 of crviewer.dll).  IE8 will issue its normal prompt to

  • General Ledger report by vendor

    Hi All, Is there any report in SAP that shows what we spent for a vendor during the year(Specific time period). Thanks Venkat

  • Special stock indicator in Production Order Component overview

    Hi  Team, I have one finished product , for which i have created BOM . It has only one component in it . Now i am creating a Sales order , based on the definition and requirement set , system is creating a production order in background. When i go to

  • MIGRATION TO A NEW HDD

    I am thinking of buying a new larger Hard Disk to put into my Macbook 13". Can somebody tell me if I can migrate the whole present disk (as it is) complete with apps. If it can be done please tell me how. I had the thought of installing the operating