none
I creat APPs on VS RRS feed

  • Вопрос

  • by code below alert return me error like this -  Unexpectedserverresponsedata, null

    function createListItem() {
              var clientContext = new SP.ClientContext(siteUrl);
              var oList = clientContext.get_web().get_lists().getByTitle('Задачи отдела');
           
              var itemCreateInfo = new SP.ListItemCreationInformation();
              this.oListItem = oList.addItem(itemCreateInfo);
           
               oListItem.set_item('Имя задачи', 'My New Item!');
               oListItem.set_item('Описание', 'Hello World!');
           
               oListItem.update();
              clientContext.load(oListItem);
           
           clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded2), Function.createDelegate(this, this.onQueryFailed2));
            }
             function onQuerySucceeded2() {
                alert('Item created: ' + oListItem.get_id());
            }
             function onQueryFailed2(sender, args) {
                alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
            }

Ответы