Tag Info

Hot answers tagged

10

Fun stuff, I was checking this site since I stopped answering SO SharePoint questions for a few years now and this was the first thing in the list, a very interesting oversight during the "host web Feature" option for CustomActions. What a detailed investigation! Luckily I have a solution for you. WEB STANDARDS TO THE RESCUE CHO CHOO With Microsoft ...


9

Yes, there are fundamental differences between SharePoint-hosted and cloud-hosted apps. A SharePoint-hosted app may provision basic resources into its app web such as HTML/CSS/JS files, site column/content type/list definitions, etc. Under no circumstances can server-side code run within a SharePoint-hosted app. You can run server-side code in a ...


8

In addition to traditional web parts still being supported (in either full-trust or sandboxed solutions) as Simon mentions, you can develop new app parts in an app for SharePoint 2013. An app part is like a web part, and in fact is also made available to users in a host web's web part gallery. Users add app parts to pages the same way they would add web ...


6

You need to setup the app domain this is a good tut but very lengthy http://sharepointchick.com/archive/2012/07/29/setting-up-your-app-domain-for-sharepoint-2013.aspx also this: In order to install an App from the App Store you must setup an isolated App Domain, this is because Apps from the store deploy to their own app domain and run under a ...


4

Lists in the app web are good for storing instance-specific app configuration data since a single app may have many instantiations across a farm. Also, apps will always have full control over their app web so they are guaranteed to be able to read from, write to, and delete list items on a list in the app web. If a list were in the host web and the app ...


3

You need to deploy your apps using App Catalog for your web application. Then your app will be available on subsites too. To configure your app catalog refer: http://office.microsoft.com/en-in/sharepoint-help/use-the-app-catalog-to-make-custom-business-apps-available-for-your-sharepoint-online-environment-HA102772362.aspx


3

check proper app permissions is given. <AppPermissionRequests> <AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" /> </AppPermissionRequests> as well if you are using SharePoint Hosted app, try the following example. http://code.msdn.microsoft.com/office/SharePoint-2013-Use-list-cb3e4e14 ...


3

SP.Web.siteUsers property gets the collection of all users that belong to the site collection: var value = SP.Web.get_siteUsers () How to get User client Object by email function getUser(userName,Success,Error) { var context = new SP.ClientContext.get_current(); var web = context.get_web(); var user = web.get_siteUsers().getByEmail(userName); ...


2

If your SP app has a remote web in the solution, you can store the image in you remote app and use the token ~remoteAppUrl to correctly resolve the URL to that image. For some reason MS wired up ~remoteAppUrl correctly but did not do the same for ~appWebUrl. Hopefully they will fix that in the future.


2

I didn't really expect anyone to "chase this down" for me, so I spent some time doing a lot of digging on my own. The short answer (as of January 2013) is "no" - there doesn't appear to be any way to leverage tokens like ~appWebUrl in the Image32by32 and Image16by16 attributes. The way that the image attributes are processed is inherently different than the ...


2

Before you can deploy a SharePoint hosted app to your SharePoint Preview development environment you have to configure an isolated app domain. like this : http://sharepointchick.com/archive/2012/07/29/setting-up-your-app-domain-for-sharepoint-2013.aspx http://msdn.microsoft.com/en-us/library/fp179923%28v=office.15%29 Hops it helps!!


2

Just disable Loopback Check - solved the problem for me. Here's some PowerShell to do this: New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -value "1" -PropertyType dword Source


2

If you plan to provision the page using a Module, I'd recommend configuring the web part inside of the Module, rather than in the aspx file itself. This will allow you to select whichever view you would want: <File Path="mypage.aspx" Url="mypage.aspx" Type="GhostableInLibrary"> <View List="Lists/Personnel Holiday Entitlement" BaseViewID="4" ...


2

If you want to change it pro-grammatically check this link out. Where they getting the webpart and then setting it's view. create or get XsltListViewWebPart You can change default view in the definition of your list too. Here's a similar question on SE that explains how to change list's default view in Schema.xml


2

Thanks to the other answers I have solved the problem. The default css file is automatically linked when using the App, but using Keith Tuomi's code to define the css file is a good idea to ensure linkage. I went through the css file and found the appropriate class called ms-ContentAccent1-bgColor which gives the color. I am going to test if this works ...


2

I achieved this goal by adding the following to my App.js: //Build absolute path to the layouts root with the spHostUrl var layoutsRoot = strHostUrl + '/_layouts/15/'; //Create a Link element for the defaultcss.ashx resource var linkElement = document.createElement('link'); linkElement.setAttribute('rel', 'stylesheet'); linkElement.setAttribute('href', ...


2

You actually need to generate a SP.ClientContext for the app web and a SP.AppContextSite for the host web. To get a reference to a list in the host web, try the following: // Get the ClientContext for the app web clientContext = new SP.ClientContext.get_current(); // Use the host web URL to get a parent context - this allows us to get data from the parent ...


2

Your formula: TEXT(Date,"dd Mmm, yyyy") returns a string type, not a Date. This means the values in the column will be sorted as strings, not as dates. While the sorting is behaving correctly, the result will be confusing to the user, so you might want to consider turning off sorting for this calculated column.


2

Yes, it is possible. I created a site column called Test in the Host Web and then I used this code to add it to a list in the App Web. $(document).ready(function () { var context = SP.ClientContext.get_current(); var web = context.get_web(); var fields = web.get_availableFields(); var testField = fields.getByTitle("Test"); var lci = new ...


2

Get Users from People Picker In the MSDN article you already probably know: http://msdn.microsoft.com/en-us/library/jj713593%28v=office.15%29.aspx In this article you have the function: // Query the picker for user information. function getUserInfo() { // Get the people picker object from the page. var peoplePicker = ...


2

High Trust apps means that the app authenticates via certificates that have been added to/trusted by SharePoint. In a high-trust scenario, the app is responsible for setting the user identity under which the request should be processed. The mechanics of setting the identity can be seen in the TokenHelper class that is part of the App for SharePoint Web ...


2

You need to start subscription service, which is must for installing apps in SharePoint environment. If you didn't already created subscription service use ps to install one, New-SPSubscriptionSettingsServiceApplication -ApplicationPool "SharePoint Web Services Default" -Name "Subscription Settings Service Application" -DatabaseName ...


2

I think this might help: http://weblogs.asp.net/wkriebel/archive/2005/08/22/LinkToExportToSpreadsheet.aspx Tested on SP2010 To replicate the funtionallity of "Export to Excel" (obtain the iqf file), all that needs to be done is replacing the place holders with your environment information in the following link: ...


1

Is this what you're looking for? http://blogs.msdn.com/b/richard_dizeregas_blog/archive/2013/03/10/leveraging-sharepoint-dialogs-in-apps-for-sharepoint.aspx


1

John, FIRST METHOD (SHAREPOINT DESIGNER) It is not a view, it is a display form for the List.. You can do two things, if you want to hide some columns from just the Display Form (i.e. THIS VIEW).. You can edit the DispForm.aspx page using SharePoint Designer.. Navigate to List from SharePoint Designer -> Under Forms -> DispForm.aspx (Edit) This will have ...


1

You can use jQuery as suggested in this article: http://davecoleman146.com/2013/07/08/using-jquery-to-change-new-item-and-edit-titles-sharepoint-2013/ To change titles of links in SharePoint. Instead of searching for 'new item' in the top filter, look for 'Calendars in View' and change it to what you think is more appropriate. You dont need the second ...


1

Not possible. Source Limitations of tenant-scoped apps The following kinds of apps cannot be batch-installed: Apps that contain a custom action for the ribbon. (Custom actions that are deployed as menu items are allowed.) Apps that contain an app part.


1

So, here's the thing, you could, do this in Design Manager and then copy out your artefacts and check them into source control. Yeah, it kinda sucks to have that manual process but it is achievable. I'm going to assume that by a new 'home page' you mean that you need to create a new master page for your site and that the home page itself needs either a new ...


1

Well I'm in a similar boat as you, I .NET Developer / DBA who was task with creating a site in share point. My suggestion would be first to follow some basic tutorials to get your self accustomed to Share Point. There is a lot of out of the box functionality that could be used without ever having to write one line of code. You mentioned source control, ...


1

Pretty sure there is a limitation in the app model against doing this. Only basic tool parts / custom properties like string, int, bool or enum can be created in app Webparts See section Table 2. App part custom properties here: http://msdn.microsoft.com/en-us/library/fp179921.aspx



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