Hot answers tagged sharepoint-apps
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
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" ...
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 ...
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
I found the answer, it is in the app manifest package, check Enterprise Authentication in the capabilities tab.
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