Tag Info

Hot answers tagged

4

You could use the "PostRender" event to execute your javascript method after the form is completely loaded, something like: (function () { // Initialize the variable that stores the objects. var overrideCtx = {}; overrideCtx.Templates = {}; // Assign a function to handle the // PostRender events overrideCtx.OnPostRender = ...


3

You can remove "Completed" field from current view and it will take away the mark as completed check box. Edit view, you should be seeing "Completed" field selected, just uncheck that and save the view. Hope this helps, mark this as answer if it did...


2

Move this line var groups = currentUser.get_groups(); To your getCurrentUser method and make sure to load it this.clientContext.load(groups); before executing the request, this way you will have it loaded in your success-function


2

Yes, you can but it has to be via the Client Object Model, not the server Object Model. Client Object Model for managed Code Strictly speaking, the above answers your question. But if you add more detail I could be more specific. What the CSOM does and does not do


2

I used this when I first created my app. First, you need both the app web url and the host web url: var hostweburl = decodeURIComponent( getQueryStringParameter("SPHostUrl") ); var appweburl = decodeURIComponent( getQueryStringParameter("SPAppWebUrl") ); Then you need to load the SP.RequestExecutor.JS file, which I did differently than what was in the ...


1

The code should look like this: function getCurrentUser() { this.clientContext = new SP.ClientContext.get_current(); this.oWeb = clientContext.get_web(); currentUser = this.oWeb.get_currentUser(); this.allGroups = currentUser.get_groups(); clientContext.load(allGroups); ...


1

You need to configure Alternate Access Mappings to work with UAG. Pay special attention to the section about publishing with a reverse proxy. It should look like this: Internal URL Zone Public URL http://portal.company.com Internet https://portal.company.com The easiest way to understand these that I have read is this: ...


1

You can change the control template, but remember that all of the display templates will be changed as a result. I talk about this relationship in my SPC14 session on Display Templates and Query Rules. The Control Template, Group Template and Item Templates work in concert to create the presentation that you see on the page. This is true for Search Results, ...


1

The permission Scope Web will allow you to work with Host web site. Suppose you have a site collection at url http://sitename. And under it you have a sub site http://sitename/subsite. Now you deploy an app in the subsite. So the subsite will be the Host web. Now you want to create a list in subsite so you will need to provide Web Scope. However, if you ...


1

I experienced the same issue using JSLink in O365 Sharepoint Online. My solution was to call my function requiring SP.ClientContext as follows: //Perform SP.ClientContext tasks after sp.js is loaded window.onload = function() { SP.SOD.executeFunc('sp.js','SP.ClientContext', someFunction()); };



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