sharepoint-2013

How to get with SharePoint client APIs all user profiles?

孤人 提交于 2019-12-12 09:11:10
问题 For implementing a birthday's SharePoint 2013 app I need to get all user profiles from a site collection. For this purpose I'd like to use a (or multiple) client API(s). See http://msdn.microsoft.com/en-us/library/jj163800.aspx#bkmk_APIversions. Unfortunately I couldn't find in the APIs description an equivalent of Microsoft.Office.Server.UserProfiles . There are in Microsoft.SharePoint.Client.UserProfiles.PeopleManager two methods, GetUserProfilePropertiesFor and GetUserProfilePropertyFor ,

SHAREPOINT 2013: How can I update a Site Column with the content of an array with javascript CSOM?

我怕爱的太早我们不能终老 提交于 2019-12-12 09:02:34
问题 I'm relative new to Sharepoint 2013, I'm trying to update the content of a Site column with the content of an array, I can retrieve and visualize the content of my site column, the user is able to change and save the necessary part and the changes are saved into an array, now I have to update the content of the site column with the content of the array, but for some kind of reasons I can't accomplish that, any suggestion/example? This is my code so far to retrieve, visualize the site column

MS Access Web App: corrupted table, cannot open in Access anymore

主宰稳场 提交于 2019-12-12 06:55:08
问题 tldr: How can I delete a corrupted table that prevents me from opening my Web App in Access? I used the Access desktop client to create a new table with approx 20 lookup fields. When I tried saving the table, I received an error message about too many indices. So I set the index option to "no" for all the lookup fields and tried to close the "edit table view". However, I was not able to close the edit table view anymore. After trying for a while, I used the task manager to terminate Access.

Using angular submit button causes redirect instead of calling function in SharePoint

时间秒杀一切 提交于 2019-12-12 04:59:59
问题 I have a form within my angular app (within SharePoint) that uses routing via hashbang, but when I click on a button in my form, it redirects to the root (like it can't resolve the URL so it uses the otherwise setting in my config), instead of executing the function. Here is the HTML (my controller is defined in the routing): <form name="newItem" class="form-horizontal" data-ng-submit="createItem()"> <fieldset> <div class="form-group"> <label class="col-lg-2 control-label" for="itemtype">Type

How to get certain elements inside an XML document

送分小仙女□ 提交于 2019-12-12 04:45:41
问题 I am querying my SP list like this: HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://myspsite/_api/web/lists/getByTitle('the%20title')/items"); request.Method = "GET"; request.ContentType = "text/xml"; request.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream receiveStream = response.GetResponseStream(); StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8);

SP.Ribbon.WebPartComponent.getWebPartAdder() returns undefined

喜你入骨 提交于 2019-12-12 04:44:27
问题 I am using the source at http://blog.symprogress.com/2010/11/ribbon-insert-any-web-part-using-javascript/ to handle user web part button click event. The function 'addWebPart()' calls a function 'SP.Ribbon.WebPartComponent.getWebPartAdder()' which is supposed to return adder instance but sometimes it returns undefined. If I add a while loop to wait for the instance value to return correctly, the browser in my VM stalls for some time. When an instance is returned, the browser becomes

How to check if a value exists in json array? If match is found, delete the key value pair

梦想与她 提交于 2019-12-12 04:37:20
问题 I have a sharepoint column named AllLinks in which im storing array as: [{"AllLinks":"Link9","LinkURL":"http://www.Link9.com"}, {"AllLinks":"Link6","LinkURL":"http://www.Link6.com"}] How to check if a value exists in an array of objects and if a match is found, delete the key value pair. For example if the value Link6 matches, delete the entry completely from the array using javascript/jquery. I tried with: var newA = data.d.results.filter(function (item) return item.AllLinks !== x;}); but

How to add Jquery to MasterPage 2013

对着背影说爱祢 提交于 2019-12-12 01:58:52
问题 I'm trying to add jQuery to sharepoint 2013 master page. What I did: 1) Copy jquery - "jquery-1.11.1.min.js" to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS. Copy seattle.html and add <!--SPM:<SharePoint:ScriptLink language="javascript" name="/_layouts/jquery-1.11.1.min.js" runat="server" Localizable="false" />--> Upload seattle.html as ASP NET MASTERPAGE Publish it ---> Nothing happend. To seattle.master wasn't appear Sharepoint:Scriptlink 2) Copy

FlexSlider : get the caption vertically on right side

一曲冷凌霜 提交于 2019-12-12 01:55:04
问题 I'm using the cool Felxslider to display a slideshow on a sharepoint installation. it works quite well, but i still have two questions : 1- How to display the caption ( you know, the little transparent background with title/description of the picture ) not on the bottom of the image, but on the right side ? And not hover the picture, if possible. 2- I have N images to whos, but the slider always shows N+N images, the first extra ones are clones of the images, but the last is always just blank

cross domain issue when accessing sharepoint list from sharepoint app

╄→гoц情女王★ 提交于 2019-12-12 01:48:50
问题 This is my code function getListItem(url, listname, id, complete, failure) { // Getting our list items $.ajax({ url: url + "/_api/lists/getbytitle('"+ listname +"')/items", method: "GET", headers: { "Accept": "application/json; odata=verbose" }, success: function (data) { // Returning the results complete(data); }, error: function (data) { failure(data); } }); }; The url is coming correctly, also on checkng the full url parameter in ajax call, it is returning data when i open that in new tab