Tag Info

Hot answers tagged

3

You can check the Template type of a web object. If it is APP#0 you don't need to add it to List. The example here shows how to get the web template. http://stackoverflow.com/questions/19382310/using-client-object-model-how-to-fetch-the-web-template-name-and-web-templat


2

A prerequisite of the AppOnlyContext is the setting in AppManifest: <AppPermissionRequests AllowAppOnlyPolicy="true"> ...snip... </AppPermissionRequests> However, there is a special permission request designed for your scenario. So you may not need AppOnly. <AppPermissionRequest Scope="http://sharepoint/search" ...


1

On 2013 CSR and the OnPreRender function is one, and maybe even the best way of skinning this cat. You will have to read the whole list and then not display the Form but a message. But you can do without CSR and make SharePoint do half the work for you. A quick and easy ductape patch from the olden days is to hide the NewForm contents. On the ...


1

You can crate Before Event Handler to achive this. You can add business logic for checking the number of allowed records in the method itemAdding


1

I'll use the "new" term "add-in" below (instead of "app") 1, 2, 4 All of your concerns regarding Javascript is easily avoided by using a provider hosted add-in, where the logic lives in for example a .Net application in an IIS (just like it does in a farm solution but without it being an integrated part of SharePoint) 3, Still not quite sure what you ...


1

I found the answer, it is in the app manifest package, check Enterprise Authentication in the capabilities tab.


1

I finally found a solution which is satisfying for me. Even though I wrote, that postMessage is not what I want to do - this has now become the solution. I always knew that I can solve this problem with postMessage (refer to @Rafael Dabrowski post for details). What I didn't like about it, was always that I thought I would have to edit every single page ...



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