Tag Info

New answers tagged

0

Quick fix Reference entry object by this keyword: this.entry = webList.addItem(entryCreationInformation); to make it accessible in handler, then you could grab list item id: function success() { console.log(entry.get_id()); } How to create List Item via CSOM function addListItem(listTitle,itemProps,OnItemAdded,OnItemError) { var context ...


0

You need to give entry the proper scope to be valid inside the success handler. The quick and dirty way to do this would be to make it a global variable. Then you can access it in the handler: function success() { var id = entry.get_item("ID"); }


0

What i understand from your question is you want to display recently added item in the same page. One simple way of doing this is:- Create a view, sort the view by Created and have Item Limit in the view to 5( or however number of recent records you want to see. Add a List View web part on your page, make sure you select the view you have ...


0

Below proof of concept, create item and add attachment via client object model. var list = Context.Web.Lists.GetById(listId); Context.Load(list); Context.ExecuteQuery(); var item = list.AddItem(new ListItemCreationInformation()); item["Title"] = "New Item with attachment"; item.Update() context.ExecuteQuery(); var attInfo = new ...


0

I was able to get this working using jquery and a siteColumn. Below is what i did. I created a site column names 'Internal Only' Added this site Column to any list that may contain information i want hidden if the user was off the network. I use jquery to grab the session As i mentioned above i have a session variable and cookie. in my javascript i get ...



Top 50 recent answers are included