Tag Info

New answers tagged

0

Answer: listId = decodeURIComponent(getQueryStringParameter("SPListId")); itemIds = decodeURIComponent(getQueryStringParameter("SPListItemId")).split(','); var i; for (i = 0; i < itemIds.length; i++) { selectedItems = parentWeb.get_lists().getById(listId).getItemById(itemIds[i]); selectedItems.set_item('Color', color); ...


0

Answer: function setItems() { var listCreationInformation = new SP.ListItemCreationInformation(), listItem = list.addItem(listCreationInformation); listItem.set_item('GEN_1_Sum_Scope_Assigment', $('#GEN_1').val()); listItem.set_item('GEN_1_Sum_Scope_Assigment_D', $('#GEN_1_D').val()); listItem.set_item('GEN_2_CRMname', $('#GEN_2').val()); ...


0

Answer: Site settings -> Manage site features -> turn off: Minimal Download Strategy


0

This Answer was what i was looking for: var clientContext, hostweburl, parentContext, parentWeb, selectedItems, itemIds, listId; clientContext = new SP.ClientContext.get_current(); hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); listId = decodeURIComponent(getQueryStringParameter("SPListId")); itemIds = ...


1

Answer: var item = list.getItemById(92); $(document).ready(function () { appContext.load(item); appContext.executeQueryAsync(function () { $('#GEN_1').val(item.get_fieldValues().GEN_1_Sum_Scope_Assigment); $('#GEN_1_D').val(item.get_fieldValues().GEN_1_Sum_Scope_Assigment_D); $('#GEN_2').val(item.get_fieldValues().GEN_2_CRMname); ...


1

I just found this same problem this morning, and resolved it :) The XsltListViewWebPart has a bug in it. The default XSL for the 'Edit' field calls a template called IfHasRight, which is defined in LAYOUTS\XSL\fldtypes.xsl. The comments on that template point out that it's actually checking for permission 2, ADD items. I wrote my own to check for 4, EDIT ...



Top 50 recent answers are included