Tag Info

New answers tagged

1

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 ...


3

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 ...


3

You are looking for Auditing. But be careful, it can pretty fast get out of control and fill the servers hard drive and affect the performance. Make sure to trim the Audit logs to fit your requirements. Another god idea is to have SharePoint writing the log files to a separate drive. You can use the audit feature of Microsoft SharePoint Server 2013 to ...


0

I have drop-down list that I populate using element fetched from a SharePoint list.Some of the rows are repeated, in order to eliminate the repeats this is what I use. JQuery: var alreadyUsed = {}; $("#dropdownCharts > option").each(function () { if (alreadyUsed[this.text]) { $(this).remove(); } else { alreadyUsed[this.text] = this.value; ...


0

According to Use OData query operations in SharePoint REST requests, Grouping is not supported. The solution, is to apply grouping for the JSON results returned from REST endpoint. How to group array results using jQuery function groupBy(items,propertyName) { var result = []; $.each(items, function(index, item) { if ...


0

This actually sounds like a workflow. Use SharePoint Designer to edit the standard Approval Workflow. The workflow runs under an 'elevated privileges' account so it can make the changes to the field for the users. I don't think you'll need to code this solution. Workflows included in SharePoint However, if you really want to code it you would want to take ...



Top 50 recent answers are included