In SharePoint Calendar lists, fields [Start Time] and [End Time] do not exist at the Site Column level.

<header style="box-sizing:border-box;color:#777777;line-height:1;font-size:13px;padding-right:46px;margin-bottom:3px;font-family:'Helvetica Neue', arial, sans-serif;">
</header>
I'm doing SP app development and have the following problem.
I need to check Start time and End Time in SharePoint Calendar using CAML query and then add a new event to Calendar list using the Start time and End Time that user has entered in 2 datapickers
in the form.
function AddCalendarListItems() {
var SD = document.getElementById("datepicker1").value;
var SThh = document.getElementById("St1").value;
var STmm = document.getElementById("St2").value;
var ED = document.getElementById("datepicker2").value;
var EThh = document.getElementById("Et1").value;
var ETmm = document.getElementById("Et2").value;
var T = document.getElementById("Title").value;
var S1 = SThh;
SD = SD.slice(6, 10) + "-" + SD.slice(0, 2) + "-" + SD.slice(3, 5) + "T" + SThh + STmm + ":00Z";
ED = ED.slice(6, 10) + "-" + ED.slice(0, 2) + "-" + ED.slice(3, 5) + "T" + EThh + ETmm + ":00Z";
//alert("SD= " + SD + " , ED= " + ED);
var siteUrl = SiteCollurl + "/SharePointApp11";
var clientContext = new SP.ClientContext(siteUrl);
var oList = clientContext.get_web().get_lists().getByTitle('Calendar');
var ListItemCInfo = new SP.ListItemCreationInformation();
var newEvent = oList.addItem(ListItemCInfo);
newEvent.set_item("Title", T);
newEvent.set_item("EventDate", SD);
newEvent.set_item("EndDate", ED);
newEvent.update();
clientContext.executeQueryAsync(Function.createDelegate(this, this.onQueryAddCalendarSucceeded2), Function.createDelegate(this, this.onQueryAddCalendarFailed2));
function onQueryAddCalendarSucceeded2(sender, args) {
alert("Success");
function onQueryAddCalendarFailed2(sender, args) {
alert('Add new item to the calendar failed. ' + args.get_message() + '\n' + args.get_stackTrace());
But I receive the following error:
Add new item to the Calendar failed. Column 'Start time' does not exist. It may have been deleted by another user.
I've checked and 'Start time' does exist. So it seems in SharePoint Calendar lists, field [Start Time] and [End Time]  exist but do not exist at the Site Column level.
Please advise.

Hi Khojasteh,
Use “EventDate” for Start Time field, and “EndDate” for End Time field. They are the internal name of the two fields, you can check it in the column settings page url like “Field=EndDate”.
If it isn’t the issue, please debug the code, in which line the error occurs.
Thanks,
Qiao
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Qiao Wei
TechNet Community Support

Similar Messages

  • Hide the start time and end time in ESS portal

    Experts,
    We have a requirement to hide the Start time and End time on the header section of the travel request / expense sheet in the ESS portal.  I have searched through the configuration and found several place to hide the start time and end time of segment yet these have no impact on the porta start and end time fields.
    Please Advise.
    Best Regards,
    Martin Weakley

    Hi Martin,
    you can achieve this with administrative personalisation. In portal content navigate to the role where you deltalinked your iView, click "preview". When a new Window for the preview is opened, notice the URL contains "&sap-config-mode=true". Now right click on the fields you want to hide and choose "enter configuration" (or the like, wording is not exact) from the context menue. The WD-UI-Element tree opens where you can directly hide/customize properties of the WD. When clicking save+exist you can also transport the alterations you did.
    maybe this helps or gives you a helpful alternative to the already stated measures in this thread
    regards, Lukas

  • How to activate fields "Start Reason" and "End Reason" in "Contact" form?

    Hello all,
    We recently migrated HRMS from version 11.5.7 to *12.1.3*. In the previous version users filled the fields Start Reason and End Reason in the Contact form (PERWSDPC), section Contact Relationship.
    In our 12.1.3 version these fields are read-only and I can not figure out how to activate them.
    PS: I have populated the list of values that should be used in the above fields, using the form Life Event Reasons (Total Compensation: General Definitions: Additional Setup: Life Event Reasons) and setting the Type field value with Personal, but I don't know how activate the fields in Contact form.
    Any suggestions?
    Thanks
    Paolo Bertinetto
    Edited by: user3312880 on 7-gen-2013 2.11

    But in addition to entering values in *Life Event Reasons" form, there are other setup steps that have to be performed in order to use the two above fiields?                                                                                                                                                                                                                                                                                                                           

  • ESS Working Time - Start Time  and End Time in Weekly View

    Hello,
    I'm having a problem with the business package ESS - functionality Working Time (cat2).
    I need that information to Start Time and End Time appear in the Weekly View of the portal.
    In Daily View that information are already visible, but In Weekly View that information does not appear.
    Does anyone have any suggestions?
    Thank you very much your attention.
    Att,
    Jair de Oliveira Junior

    Hi Bala
    You can have clock in and clock out in a weekly view.
    you have to change the data entry profile settings.
    In general settings tab in data entry profile click the with clock times button and maintain the Period type to 02 in time settings tab.
    And you can view the weekly entry in clock in and clock out.
    Ravee
    +91.99206.33669

  • Enter start time and end time of inspection

    Dear all
    Plz tell me where we can enter start time and end time of inspection.
    Regards
    Nirmala

    Hi Nirmala,
    I think Inspection start time is not required for any analysis or else. Days taken for closing lots are important than time. Any how, the stock posted or Inspection completed time is already available in Stock posting log - transaction QA33.
    In transaction QA33,
    1. Input Material, Plant & Period etc
    2. Select a lot (UD made)
    3. Select Usage decision tab
    4. Select Stock posting tab
    5. Select Stock posting log in the tab(header) - here your inspection completed (UD) time is getting stored
    Further issue, pls reply.
    VRMP.

  • How to know the process chain start time and end time

    Hi Experts,
                   How to know the process chain start time  and end time .
    Thanks in advance
    Regards
    Gutti
    Edited by: guttireddy on Feb 23, 2012 11:30 PM

    Hi Reddy,
    You may find the run time of a PC using below steps.
    1. Call SE38 > /SSA/BWT > Execute  > Enter your PC , choose the date and time > Execute. Here Run-time of a PC is displayed. (or)
    2. Call RSPC1 > Enter your PC > Execute > Goto Log view > Right click on the start Variant > Displaying Messages > Note down the start time in Chain Tab. Now Right click on the last Process type of the PC > Displaying Messages > Note down the End time in Chain Tab. The Difference b/w start time and end time gives the Run-time of your PC.
    Hope this helps.
    Regards
    Sai

  • Reg:picking work schedule satrt time and end time

    Hi gurus,
             I am wrkng on overtime report in hr abap.in pa0007 we will have work schedule rule,
    for that they will assign timings.i nedd to pick up the start time and end time for that work schedule rule.
    can any one help me from which tables i can pick that.
    thanks & regards.

    I think best way is to have your 10.00 or 11.00 as Date objects in the database, and to use methods of Date or Calendar to compare them.

  • Field ZZBUDAT is delta-relevant, but does not exist in the field list

    Hi All,
    I have created a Generic DataSource on a View.Now there is a situation ,i need to add a Date field form some other table.
    So i have enhanced the datasource now that date is coming in my datasource.
    But when i tried to make delta on that date field its showing error-
    Field ZZBUDAT is delta-relevant, but does not exist in the field list
    Message no. R8279
    Diagnosis
    The DataSource uses field ZZBUDAT for specifying the delta. In the DataSource field list, however, the field does not occur
    Now how i can make this field dalta relevant?
    Thanks,
    Piyush

    Piyush,
    I think the message in SAP is quite clear....
    If the field ZZBUDAT does not exist in the view ... how do you expect the datasource to know which records have changed...?
    The delta relevant field SHOULD be in the view - else there is no way the extractor can identify the changed records ...
    Please remember that the Generic extractor is a simple select statement with a where clause on the delta relevant field and nothing else ... if you want the changed on field to come from another table - then you need to write a function module extractor to do this...
    The order of processing is that - the view fields are processed first - then the enhanced fields are processed followed by the user exits...

  • Function Module for Start time and End time

    Hi Experts,
    I need a function module for getting particular Work schedule rule start time and endtime and further details by passing personnel number and day.
    Thanks in advance.
    Sunil

    FYI - https://forums.sdn.sap.com/click.jspa?searchID=-1&messageID=5338428
    Thanks,
    SK

  • How to edit two starttime & end time into single start time and end time

    my application is to reserve a resource for particular period of time
    (min 1hr) so i store time into database as numerice value
    i need to edit the reserved time
    my problem is
    (for eg)
    a user reserve as 6.00 to 9.00
    the same user reserve as 15.00 to 18.00 on the same day
    if the user need to edit the time as 8.00 to 16.00 then i need to check the database and update it to 8.00 to 16.00 and those two reservation should not be present in the database
    i dont know how to solve this problem
    kindly help me in this regard
    thank u in advance

    How are you storing the two times?
    If u r storing as two different records u need to delete them and add a new one
    Other approach is to store the time as comma separated values like
    6.00-9.00, 15.00-18.00. when u want to change them just update it with the latest value.

  • Begin time and End time calculation from timestamp

    Dear all,
    I have a below input,
    Channel_number
    GPS_TIME
    5815
    2013-05-13 18:56:46.410000
    5815
    2013-05-13 18:56:47.410000
    5815
    2013-05-13 18:56:48.410000
    5815
    2013-05-13 18:56:49.410000
    5780
    2013-05-13 18:56:49.510000
    5780
    2013-05-13 18:56:50.410000
    5780
    2013-05-13 18:56:51.410000
    5815
    2013-05-13 18:56:51.510000
    5815
    2013-05-13 18:56:52.410000
    I am trying to get the output like below,
    CHANNEL_NUMBER
    BEGIN_TIME
    END_TIME
    5815
    2013-05-13 18:56:46.410000
    2013-05-13 18:56:49.410000
    5780
    2013-05-13 18:56:49.510000
    2013-05-13 18:56:51.410000
    5815
    2013-05-13 18:56:51.510000
    2013-05-13 18:56:52.410000
    Please help me out to get this.
    Thanks All

    with
    the_data as
    (select 5815 channel_number,to_timestamp('2013-05-13 18:56:46.410000','yyyy-mm-dd hh24:mi:ss.ff') gps_time from dual union all
    select 5815,to_timestamp('2013-05-13 18:56:47.410000','yyyy-mm-dd hh24:mi:ss.ff') from dual union all
    select 5815,to_timestamp('2013-05-13 18:56:48.410000','yyyy-mm-dd hh24:mi:ss.ff') from dual union all
    select 5815,to_timestamp('2013-05-13 18:56:49.410000','yyyy-mm-dd hh24:mi:ss.ff') from dual union all
    select 5780,to_timestamp('2013-05-13 18:56:49.510000','yyyy-mm-dd hh24:mi:ss.ff') from dual union all
    select 5780,to_timestamp('2013-05-13 18:56:50.410000','yyyy-mm-dd hh24:mi:ss.ff') from dual union all
    select 5780,to_timestamp('2013-05-13 18:56:51.410000','yyyy-mm-dd hh24:mi:ss.ff') from dual union all
    select 5815,to_timestamp('2013-05-13 18:56:51.510000','yyyy-mm-dd hh24:mi:ss.ff') from dual union all
    select 5815,to_timestamp('2013-05-13 18:56:52.410000','yyyy-mm-dd hh24:mi:ss.ff') from dual
    select channel_number,begin_time,end_time
      from (select gr,
                   channel_number,
                   first_value(gps_time) over (partition by gr order by gps_time) begin_time,
                   first_value(gps_time) over (partition by gr order by gps_time desc) end_time,
                   row_number() over (partition by gr order by gps_time) rn
              from (select channel_number,gps_time,
                           row_number() over (order by gps_time) - row_number() over (partition by channel_number order by gps_time) gr
                      from the_data
    where rn = 1
    order by begin_time
    CHANNEL_NUMBER
    BEGIN_TIME
    END_TIME
    5815
    13-MAY-13 06.56.46.410000000 PM
    13-MAY-13 06.56.49.410000000 PM
    5780
    13-MAY-13 06.56.49.510000000 PM
    13-MAY-13 06.56.51.410000000 PM
    5815
    13-MAY-13 06.56.51.510000000 PM
    13-MAY-13 06.56.52.410000000 PM
    Regards
    Etbin
    Message was edited by: Etbin me and/or Apex we messed something up in the original post

  • How to return start and end time in Unix epoch format

    Hi: I have a integer field (utime) in a table that stores the UNIX epoch time for a record. Every sunday around 2:00AM, I am running a query which should return records from last week. I want my condition to have the following in it's where
    WHERE utime between
    (convert sysdate-7 12:00AM to Unix time)
    AND
    (convert yesterday 11:59PM to Unix time)
    Can someone help me create this convert?
    Thanks
    Ray

    Yes, you seem to have worked out the logic of the expression correctly. Though, in your earlier post you had said that you want records within the range:
    WHERE utime between
    (convert sysdate-7 12:00AM to Unix time)
    AND
    (convert yesterday 11:59PM to Unix time)But now you are adding 14400 (4hrs) and deducting 72000 (20hrs) in your expression
    SELECT * from TABLE
    WHERE utime between
    ((TRUNC(SYSDATE,'DD')-TO_DATE('01/01/1970','MM/DD/YYYY'))*(24*60*60))+14400 AND
    ((TRUNC(SYSDATE-6,'DD')-TO_DATE('01/01/1970','MM/DD/YYYY'))*(24*60*60))-72000;Which makes your new condition to be:
    WHERE utime between
    (convert sysdate 04:00AM to Unix time)
    AND
    (convert sysdate-7 04:00AM to Unix time)
    Are you sure you need records from 4am-to-4am and not midnight-to-midnight? And yes, with BETWEEN condition you need to use expression '<low-value> AND <high-value>' and not '<high-value> AND <low-value>'!
    Besides this,
    1. You might want to use bind variables rather than hard-coded expressions in your statement. Infact your expression uses SYSDATE, so Oracle would need to get current SYSDATE for each row to evaluate the expression. Which is going to have its impact on performance. As your start-time and end-time values are not dependent on table data maybe you could have a code like this (assuming it is PLSQL code):
    start_time constant number := (convert sysdate-7 12:00AM to Unix time);
    end_time constant number := (convert yesterday 11:59PM to Unix time);
    <DML or Cursor with condition>
    WHERE utime between start_time and end_time;
    2. You said that your table already has values in unix-epoch-time in column 'utime'. How are these values inserted in the first place? Is there a function in your application that converts any given time to unix-epoch-time? Is yes, then use that in your code.
    3. If such a function does not exists, than rather than using hard-coded expressions it might be a good idea to create new functions for converting to and from unix-epoch-time and to get current unix-epoch-time from server.
    Using a function in the above case:
    start_time constant number := f_convert_to_unix_time( trunc( sysdate-7 ));
    end_time constant number := f_convert_to_unix_time( trunc( sysdate )) - 1;
    <DML or Cursor with condition>
    WHERE utime between start_time and end_time;
    And lastly, some of us might not know about Unix time, so here is a useful link http://en.wikipedia.org/wiki/Unix_time

  • Start and End Time in Record Working Time- Weekly View

    HI,
    In record working time we have 2 views, daily and weekly. In daily view, we have start time and end time, which we do not have in weekly view. Can these 2 fields be incorporated in Weekly View?

    Hi Siddharth,
    Can you please clarify what "iView development using NWID" really means?
    - Is that Java Web-dynpro development? - Can it be either Java Web-Dynpro or ABAP web-dynpro?
    - Does it mean that we have to customize the standard-delivered “record working time” application, or does it mean that a custom copy of the application needs to be developed?
    Thank you!
    Daniel.

  • Modelling Time Dimension with Fact Table containing Start Date and End Date

    Hi Gurus,
    I have a time dimension with Year till Date. I have a fact table which consists of Start Date, End Date, Person ID, Department ID.
    How do i design Time dimension with fact table the below scenario
    In the dashboard i have start Month and End month as prompts.
    In the report i need to display Count(Person ID) > Start Date and < End Date along the trend.
    For instance, i have selected Jan-2009 as start date and Apr-2009 as End Date, then i need to display Count(Person ID) of Jan-2009, Feb2009, Mar-2009 andApr-2009.
    I Can not connect Time dimension with only Start Date or only with End Date to get the trend along the months.
    Please advice on the issue which i am having.

    Hi,
    Thanks for the response, Infact i tried using Complex join in physical layer. I have considered Time table joined with Fact table, and used >= and took and alias of the Time table and joined fact table using <=. When coming to BMM, i am not knowing how do i design this as if i merge the both the time dimensiona and its alias into single table, values will not be correct and if i make them as seperate columns. i can not show the trend as both are different columns.
    Can you please let know where i am going wrong.
    Thanks

  • 39L4363D - Unable to set padding time for recording start and end time

    Hello,
    I have a problem with my 39L4363DG tv (Software 7.1.90.34.01.1).
    I'm not able the set padding time for recording start and/or end time as described in the [manual|http://www.toshiba-om.net/LCD/PDF/English/L4363-323950-English.pdf] on page 51. Both menu item "start padding time" and "end padding time" are disabled?
    Can anyone help me and give me an advice on how to solve it?

    Hi
    The padding time can be set for programmed recording.
    There is also an scheduling priority
    If scheduled time slots are next to each other and there is more than one minute between the end time of the first schedule and the start time of the next schedule, programmed recording will be performed correctly.
    When +Start Padding Time+ and +End Padding Time+ are set, the start time and end time will be the time plus the additional minutes.
    If scheduling times overlap, priority will be given to the programmed recording which starts first.
    When the programmed recording that started first ends, recording will switch to the next scheduled programme.
    At this time, depending on how far the scheduling times overlap, the beginning section of the next scheduled programme may not be recorded.

Maybe you are looking for