Tag Info

Hot answers tagged


var clientContext = SP.ClientContext.get_current(); // Gets current site context var id = GetItemID(); //retrieve selected list item id to update data var listId = SP.ListOperation.Selection.getSelectedList(); var oList = context.get_web().get_lists().getById(listId); this.oListItem = oList.getItemById(id); function GetItemID() { var selectedItems ...


var clientContext, hostweburl, parentContext, parentWeb, listItems; clientContext = new SP.ClientContext.get_current(); hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); parentContext = new SP.AppContextSite(clientContext, hostweburl); parentWeb = parentContext.get_web(); var id = GetItemID(); // Gets Selected item's ID var listId ...

Only top voted, non community-wiki answers of a minimum length are eligible