Tag Info

Hot answers tagged

4

The Office Dev Patterns and Practices repo on GitHub has a great sample for provisioning custom web parts on the host web from inside of an app which should be a viable option for your situation. You could use this pattern to allow users to retrieve a custom configured web part and have it inserted into their host web allowing them to insert it at will (you ...


3

I think you need to provide read access to your app on your list. Due to this it is throwing access denied error. See the MSDN link for detail information on App permission http://msdn.microsoft.com/en-us/library/office/fp142383(v=office.15).aspx


3

Batching is now supported in REST O365 only. You can check out a javascript library on GitHub that batches these for you using the new capabilities. https://github.com/SteveCurran/sp-rest-batch-execution


2

You can deploy apps locally if you have the app package. You upload them into the site catalog and they will be made available to your site collections. You won't be able to utilize apps deployed to the MS store. You would need to contact the vendor directly to see about obtaining an .app package or code your own and deploy them.


2

There are three ways to add a Web Part (or something similar) to a SharePoint Online site. Use a Sandbox Solution. You create the Sandbox Solution with the Web Part and upload it the the Solution Gallery of the Site Collection in SharePoint Online the same way you would on-premises. Note that Sandbox Solutions that contain managed code are deprecated and ...


1

Use EffectiveBasePermissions to get permissions of the user on a list. Example: http://aissp2013/sites/Team/_api/web/lists/getbytitle('L2')/EffectiveBasePermissions Note that this will give the permissions of the logged in user. However, if the need is to check for other users permission while being logged in using as a different user then as suggested by ...


1

You can use Visual Studio 2013 Community Edition to build both SharePoint Apps and SharePoint Solutions. Just follow the steps under "Set up your environment" found here: http://dev.office.com/getting-started


1

There is powerful tools in SharePoint Server 2013 Enterprise for Business Intelligence, like Power View to visualize data. More about it: http://technet.microsoft.com/en-us/library/hh213579(v=sql.110).aspx Note that it requires Enterprise Edition for SharePoint 2013 and at lest SQL Server 2012 Business Intelligence Edition.


1

A user must have the Manage Web site and Create Subsites permissions to add an app for SharePoint. By default, these permissions are available only to users who have the Full Control permission level or who are in the site Owners group. http://technet.microsoft.com/en-us/library/fp161231(v=office.15).aspx This (I believe) is because the ...


1

Information in the Query String is one of a few techniques for persisting information to subsequent HTTP requests. HTTP does not have any way to remember who a user is, or why they are making a request unless the information is provided to the server as part of the request (that is to say, HTTP does not remember state, or is stateless). Passing information ...


1

The app hosted in SharePoint creates a sub site under the Host Site. This sub site is called App Web and it has the same name as that of the app. A filter needs to be added to the REST query so that this app web is the not included in the result set. Suppose the name of the app web is "App1", the filter will look like this: $filter= Title ne 'App1' In ...


1

Change below code function successHandler(data) { var jsonObject = JSON.parse(data.body); var results = jsonObject.d.results; var result = ''; for (var i = 0; i < results.length; i++) { result = result + results[i].Title + ' '; } document.getElementById("Error").innerHTML = result; }


1

I have solved my problem following way $.ajax({ url: "host url"+"_api/web/lists/GetByTitle('List Name')/fields?$filter=EntityPropertyName eq 'Choice Field Name'", type: "GET", headers: { "accept": "application/json;odata=verbose", }, success: function (data) { ...


1

Below is the code for retrieving choices of choice field function getFieldChoices(fieldName, listName) { var dfd = $.Deferred(); hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl')); appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl')); var urlTemplate = appweburl + ...


1

An example of how to Get Files from a Folder using Ecmascript\Javascript client object model in SharePoint 2010 <script type=”text/ecmascript”> function ViewAllFiles() { var context = new SP.ClientContext.get_current(); var web = context.get_web(); var list = web.get_lists().getByTitle(‘Shared Documents’); var query = ...


1

Lists are easy, go into the List Settings and click on Advanced Settings. In the Item Level Permissions settings, set the Read option to "Read items that were created by the user" and in the create and edit section set it to "Create and edit items that were created by the user." Document libraries do not have this setting however. You can simulate it by ...



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