How to call sharepoint datetime control on date changed in javascript?

Hi,
Can any body help me to call sharepoint datetime control  date changed event in javascript.? Im trying to show the date on dateTimeControl2 based on dateTimeControl1 on dateChanged event (not submit ) ie, when mouse leaves from the first date control
, next date control will update 1 year from first date control.
<SharePoint:DateTimeControl ID="effectiveDate"
CssClassTextBox="form-control"
runat="server" DateOnly="true"
OnValueChangeClientScript="val_create_cca_onchange()"
DatePickerFrameUrl="<%$SPUrl:~sitecollection/_layouts/15/iframe.aspx %>" />
and my js function is..
function val_create_cca_onchange( ) {
var dt = new Date();
var val_effective_date = document.getElementById("<%= effectiveDate.ClientID %>");
var dt2 = dt.getDate(val_effective_date);
var month2 = dt.getMonth(val_effective_date) + 1;
var year2 = dt.getFullYear(val_effective_date) + 1;
var dateUpdate = dt2 + '/' + month2 + '/' + year2;
document.getElementById("<%= endDate.ClientID %>").innerText = dateUpdate;
Thanks in advance.

Your script is correct except id in the url. You need to pass the url like 
<a href="javascript:OpenPopUpPage(‘/sites/wm/Lists/WorkItems/EditForm.aspx?ID={@ID}’)">
Edit Item</a>
http://jimecox.wordpress.com/2011/08/02/url-stings-in-sharepoint-2010-to-launch-edit-forms/

Similar Messages

  • SharePoint DateTime Control "Hour, Minute, and Second parameters describe an un-representable DateTime"

    I am facing a strange behavior from SharePoint:DateTime control.
    I have a webpart containing couple of fields along with datetime control. If I leave this page inactive for a while and then click submit, an exception is thrown stating that "Hour, Minute, and Second parameters describe an un-representable DateTime". 

    Hi,
    According to your post, my understanding is that you got datetime control error.
    The problem may be lied in the Time component. You can disable the time component and go for a date only rendering of the control by setting
    DateTimeField.DateOnly = true.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/64c05363-fd7e-49bb-8239-c93ec78172b6/datetime-control-using-basefieldcontrol?forum=sharepointgeneralprevious
    what’s  more, you can the ULS log to see the details errors.
    For SharePoint 2013, by default, ULS log is at
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to get sharepoint online (office 365) data in cloud/windows azure (provider) hosted app using Javascript?

    How to get sharepoint online (office 365) data in cloud/windows azure (provider) hosted app using Javascript?
    I wish to retrieve sharepoint online data in html page (hosted in windows azure) using javascript and then need to play with AngularJS

    Hi,
    According to your description, you might want to get data from Office 365 SharePoint Online(also known as host web) and pass to the Provider Hosted App which is hosted
    in Windows Azure site.
    I would suggest you take a look at the links below about accessing data from the host web
     for a quick start:
    https://msdn.microsoft.com/en-us/library/office/fp179927(v=office.15).aspx#SP15Accessdatafromremoteapp_Codeexample
    http://dannyjessee.com/blog/index.php/2014/07/accessing-sharepoint-data-from-provider-hosted-apps-use-the-right-context/
    Aother sample solution for your reference:
    https://code.msdn.microsoft.com/SharePoint-2013-Get-the-0ec36bb6
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to determine Default Table Logging (log data changes )

    Does anyone know how to view exactly what tables and related data fields have change logging enabled by default? I know that some of the standard reports will produce "edit reports" show who changed what field, when ,old and new values, etc, but I don't know how to determine where the data is retrieved from.
    For example: If I look in the ABAP Dictionary at table LFA1, technical settings, it shows that log data changes is not "checked" or enabled. But if I run the standard AR Master Data Change Report, I get output showing valid field changes.
    I have seen other threads that refer to SCU3 but I can't determine the above this from report.
    Any assistance would be greatly appreciated.

    Hi Arthur,
    As far as I am aware, these are 2 different things. 
    There is table logging which is at the table level & if activated (i.e. it's listed in table DD0LV, PROTOKOLL=X and the table logging parameter is set in the system profile/s).
    The second one is programatical logging for change documents when data is maintained though a program that has been written to include a log.  I'm not sure how to identify a complete lit of these though unfortunately.
    Hope that is of some assistance.

  • Date Format Issue With Sharepoint DateTime Control

    I Have a Web part where in create child control I am creating my controls.
    Where I have SharePoint date time control and I want to change the format of the control on change in the browser languages settings.
    Currenlt I am doing it by setting localID of the control as  DateTime.LocalID=Thread.CurrentThread.CurrentCulture.LCID.
    But it is not working , It always take UK format.
    Please suggest ....!!!!
    Thanks.

    Check this
    http://www.matdesmarais.com/2011/12/changing-the-date-display-format-in-sharepoint-2010/

  • How to call Background CO in Due Date

    Hi All,
                We have a scenario, where we need escalate a workitem from one person's UWL to another person's UWL.. The Escalation has to happen only when the due date is reached.
                 Notification CO is working fine with respect to our scenario, but we want to call a webdynpro background CO there. when we try to call Webdynpro CO, no action is happening.
                  What is the reason behind this?. Is there any work around for this?
    Regards,
    Krishnaveni.

    Hi Krishnaveni,
    Only background callable object can be used for notifications and due date. You need to put the implementation of your callable object, which implement the IGPBackgroundCallableObject interface in a library like for any other background callable object.
    I'm not sure that a Web Dynpro background CO can exists because of the layering and class loading issues.
    To be sure that it works, you can test the background callable object in standalone mode in the Design Time.
    Hope this helps,
    Best regards.
    David

  • How to validate People Picket control at client side using javascript/Designer in New form.aspx

    Hi Folks,
    I have list library with 2 columns. where as 1 column is people picker control and it is not mandatory filed .
    When the user open newform.aspx and fill all the column values and submit it should show error message if user not enter any data in people picker control column though it is not a mandatory column.
    How to achieve this by using javascript or sharpoint designer.

    Hello,
    Here is script for that:
    http://social.msdn.microsoft.com/Forums/en-US/f1c2a651-a0fb-484d-af33-e7084439b6c8/validate-sharepoint-people-picker-using-javascript?forum=sharepointgeneralprevious
    http://ankursharepoint.blogspot.in/2012/10/javascript-validation-of-people-picker.html
    Edit your newform.aspx page and add content editor webpart on that page. Then add script on HTML source section.
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Control Panel Date Change

    Hi,
    Can anyone tell me why I cannot get the date field to display properly on my web pages. It works fine for my database forms but still shows in the mysql format of yyyy/mm/dd on my pages.
    I have changed it in the control panel and uploaded every includes file possible.
    What am I doing wrong?
    Jedi

    Hi,
    that´s fortunately rather easy:
    1. highlight the date in the document
    2. doubleclick the corresponding "dynamic date" entry in the "Server Behaviours" panel
    3. select the "Developer Toolbox - Format Date" option from the "Format" menu.
    That´s it :-)
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • How do i set up controls to not change value when patches change?

    Just bought mainstage and want to set up the following  - piano or rhodes with mutes/volume available all the time, both with editable controls, PLUS hammond and pads available all the time too with mutes/volumes but using mainstage patches to select different hammond/pad configurations so that i can 'one' touch a new hammond sound WITHOUT changing my piano sounds, that have been tweeked live.  I had hoped that 'keep' in the patch change preferences would preserve my piano changes, but no they reset with every patch change.  All my sounds are AU's (ivory for piano, vb3 for hammond, sampletank for pads, and mr ray for rhodes (but seems to crash too much so may have to use evb88:-(. Any help would be gratefully received.

    Hi
    Which version of Mainstage are you running?
    CCT

  • How to call Edge Animate's play function from external javascript

    I have a symbol on the stage called "cart".... inside the symbol is my graphic that has a motion path put on it to the timeline (it is called "car_v1").
    On my stage I have a code to hide the symbol cart with an external css class :
    sym.$("cart").addClass( "hidden" );  ( this is the css - .hidden { display: none; } )
    I have a function that calls an external javascript file.. from that external file I want to get the timeline animation to work:
    here is the function called:
    checkCar();
    and here is the function:
    function checkCar() {
    if (AdobeEdge.countCar == 5){
    AdobeEdge.getComposition("EDGE-172492634").getStage().$("cart").removeClass( "hidden" ); // this works!
    AdobeEdge.getComposition("EDGE-172492634").getStage().$("cart").play(); //doesn't work!        <------------this is the line I need help with!
    // sym.getSymbol("cart").play(); // this works inside of edge and the timeline animation runs!!!
    Can anyone help me get the play function to work from my external javascript file? Thanks!
    Kristen

    Hi,
    You can try:
    function checkCar() {
    if (AdobeEdge.countCar == 5){
    var iCall = AdobeEdge.getComposition("EDGE-172492634").getStage();
          iCall.$("cart").removeClass( "hidden" );
          iCall.getSymbol("cart").play();

  • How can I tell the time and date changed for my pr...

    Just had a problem with my bestfriend whom I believe hacked into my profile. Now I want to find out how I can have access to history of when I have posted a different display picture and the alike. thanks

    Sheryl Kingstone wrote:
    but does it show on the final burned project?..
    it does..
    .. but how does Mrs AppleMan handle all that kissing.. ?
    greetings to T & K..

  • How can use the active x excel to change the assigned data/number in my VI?

    I have an assigned data in my vi using build array and insert into array. i can change the data in excel,
    but i can't change the data in array, How can I connect/communicate/control the data in aray using active x excel.
    (i know this is complicated that's why i'm trying to get helped)
    (please lend me a simple example)
    Thank You very much.

    The one I pointed you to before was a bad example. Try the one here. The example returns the cell value as a string but that's easy enough to change. You can also modify it to return a range of cells to create a LabVIEW array. You can also search NI Dev Zone for other examples by going here and you can also search this forum for Excel examples.

  • How to call legacy system screen in web dynpro for java?

    Now I'm using Netweaver CE for building BPM (Business Process Management).
    In BPM system, I wana call legacy system screen(ERP, C/S , Web, etc..) in web dynpro.
    I'v already known how to call legacy system method and data.( using RMI, SOAP and RFC )
    But I don't konw how to call legacy system screen.
    If there is no way calling legacy system screen, I will have to build every screen using web dynpro.
    It's so terrible.
    So I think there is a way calling legacy system screen.
    It's just my opinion.
    If It can call legacy system screen in web dynpro, please let me know how to call it.
    Or, If there is no way calling legacy system, how solve I this problem?
    Thank you reading my question.

    I assume that with "legacy system screen" you mean ABAP Dynp sceens. Of cause it would be attractive to integrate into new BPM processes. However there is a conceptional issue: You could easily integrate them e.g. into a WebDypro using a URL to to the so-called WebGUI (the ITS that makes Dynp screens Web enabled).
    However the Dynp screen store all there state in the ABAP backend. This information is not available to to the process engine, e.g. to set the Task to completed or to use the data in Output Mapping.
    In fact you need a way to wrap the how UI transaction into a WebDynpro screen including data flow.

  • How to schedule the webi report based on data changes in the report data

    Hello,
    I want  to schedule a webi report based on data change in a column in the report.
    The scenario is something like below:
    1. If a data of a particular column changes from 2 to 3 than I would like to schedule this report and sent it to users mail box.
    I know how to apply alerts or schedule a report or data tracking for capturing changes in the report but I dont know how to schedule the report only for data changes.
    Anybody done this before.
    Thanks
    Gaurav

    Hi,
    May be these links can help you:
    http://devnet.magicsoftware.com/en/library?book=en/iBOLT/&page=SAP_R_3_Master_Data_Distribution_Defining_Change_Pointers.htm
    SEM-BCS: Load from data stream schedule
    Attribute Change Run

  • How to make users to select the date from calendar control my making the date field read only in date time control in external list in sharepoint 2010

    How to make users to select the date from calendar control only, by my making the date text field read only (don't want to let users type the date) in date time control in external list in sharepoint 2010. I am looking for a solution which can
    be done through sharepoint desginer / out of the box.
    thanks.

    Congratulate you got the solution by yourself. I am new to a
    WinForms calendar component, I feel so helpless on many problems even I'd read many tutorials. This question on the
    calendar date selection did me a great favor. Cheers.

Maybe you are looking for

  • Upgrading the database from Oracle 8.0.6 to Oracle 9.2.0

    Dear SDN, We are in the process of upgrading SAP 4.6b to 4.7 R/3 Enterprise. Source Release:Windows 2000/Oracle 8.0.6/SAP 4.6b Target Release:Windows 2000/Oracle 9.2.0/SAP R/3 4.7 Can anyone help us in explaining the procedure for upgrading the datab

  • Connectinit

    Hi all, I am trying to pass BoUSER  throgh connectinit for DB2 however not able to perform. the syntax is erroring out in reports. the syntax that  iam passing is Clientid=@variable('BOuser') Any help in creating the syntax Most welcome

  • External eSATA noise.

    I just got a seagate eSATA external hardrive (500gig.I bought a sonic tempo PCIe card and installed in the mac. So far I've just put BFD drum data on it...about 9gigs. The drive works ok but makes a high pitched spinning noise sometimes. kinda like a

  • Finder window auto opens at every startup

    I have a finder window open at every startup.... odd. I looked in my accounts and login items and it is blank.... I then looked in the login options and the auto log in as "me" is checked, display login windowas: list of users is checked, and show th

  • How can I insert the copyright symbol

    How can I insert the copyright symbol, I have tried the ALT + 0169 with no success. I want to include in a watermark brush