Tag Info

Hot answers tagged

4

Here’s the code you should put on your pages: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script type="text/javascript" src="http://path to the script/StickyHeaders_v2.9BETA.js"></script> You can download StickyHeaders_v2.9BETA.js from here


4

Please write below mention code outside the For-loop & try it. var ctx = new SP.ClientContext(appweburl); var appCtxSite = new SP.AppContextSite(ctx, hostweburl); var web = appCtxSite.get_web(); //Get the Site var list = web.get_lists().getByTitle("wbslist"); var listCreationInformation = new SP.ListItemCreationInformation(); var oListItem11 = ...


3

You cannot disable / Change it on SharePoint Online / Office 365. This is server side setting, which you need to change at Central admin or via Powershell. In O365 we don't have access to server side. Why MSFT don't allow this on Office 365 makes sense, because this is Web App level settings, if someone changes it then all the site collections in that Web ...


2

To change the column name, you can simply select the field name from the List Settings page and change its title /column name to the desired name. Note: the internal name of the column will still remain the same.


2

There are couple of approaches to achieve this: Using Client Side Rendering Using CSR you can manipulate how your column data is visualized. But you'll need to manually put the JSLink everywhere. Use Text Column and do validation You can use a text column instead of number and do a below column validation: =ISNUMBER([ColumnName]+0)


2

SP.UI.ModalDialog.showModalDialog({ url: "URL of List", title: "Title of page", allowMaximize: true, showClose: true, width: 850, height: 600, dialogReturnValueCallback: newCallback }); function newCallback(dialogResult, returnValue) { ...


2

Yes this is possible. You can make 3 Calculated columns to spit out the number value of each of the three columns you talk about, and then have the 4th Calculated column use those values. Or You can make a long formula for your 4th column to first determine the corresponding value of "High", "Medium", "Low" for each column before multiplying the ...


2

Below code will create and update a document: public void UpdateAndCreateFile(SPWeb web) { try { SPSecurity.RunWithElevatedPrivileges(delegate() { string TemplateUrl = string.Empty; try { TemplateUrl = "Your ...


2

If I understand you correctly there are 5 metedata,columns that automatically created when the word document is created. In your word template on the insert tab, go to the "Quick Parts" and select document properties. If those fields are attached to your content type you should see them there. Add them to your Word Document template wherever you want then to ...


2

You can have a custom permission level without delete permission. Assign the users/groups of this list this new permission level. Then in the workflow you can use the impersonation step to still allow your workflow to do the delete.


2

Comment solving issue posted as answer Check the list definitions. Make sure they have different IDs in the Type attribute. Then check the list instances and make sure the IDs in their TemplateType attribute matches the ID from the list definition Type attribute they should use.


1

You can utilize thePresaveAction function. This will let you run code just before saving a list item. See: http://www.ilikesharepoint.de/2014/06/sharepoint-presaveaction-helps-for-actions-before-saving-an-item.


1

To shorten formulas, you need to create calculated columns that represent parts of the formula. After that, you create a formula based on calculated fields. I hope you find it useful.


1

You can add these lines of CSS using a content editor webpart to hide the delete button. /* For Dispform.aspx */ a[id="Ribbon.ListForm.Display.Manage.DeleteItem-Medium"] { display:none; } /* For Editform.aspx */ a[id="Ribbon.ListForm.Edit.Actions.DeleteItem-Large"] { display:none; }


1

FOR ON-PREMISES You have to create a farm solution with HideCustomAction element or you can event create you own custom action with your own implementation. Here is a blog post, or another sample about hiding custom actions. To use this method you have to know your location ID. They are documented in this MSDN article. To hide a delete button in List you ...


1

If you like to display calendar items in List view (content query web part), you need to use sp.js for recurring events. http://sharepointchan.blogspot.com/2011/10/situation-i-want-to-get-all-calendar.html More on this link. http://www.nothingbutsharepoint.com/2012/04/26/use-spservices-to-get-recurring-events-as-distinct-items-aspx/ var startDate = ...


1

Using NewForm.aspx If you are using the default new form to add items to the list, add the following javascript on the page you're redirecting to. function getLastItemID(){ var queryBuffer = []; queryBuffer.push("<Where><Eq><FieldRef Name='Author' LookupId='TRUE' /><Value ...


1

Instead of using Jquery to manipulate the view of columns in your SharePoint list, I'll suggest you to use Client Side Rendering (CSR), it's very powerful and would suit your need. You can write HTML for your need. (function () { // Create object that have the context information about the field that we want to change it output render var ...


1

If we want to access SharePoint from a remote machine on which SharePoint is not installed, then we should use Client Object Model. Client Object Model: It is a feature of SharePoint. It provides features to program against a SharePoint site using .NET Managed Code or JavaScript. The Client Object Model provides almost all the programming features of the ...


1

Or use a workflow to write a Number value to another Text field. Or do not use a Number field and make [Customer Number] a Text field.


1

To open a popup in Sharepoint, you can use the function named OpenPopUpPageWithTitle. The syntax looks like this OpenPopUpPageWithTitle('URL of your list', callback, width, height, 'Custom title'); if your link have an id of 'ABC', you can add a click event to this link using JQuery like this : $(document).ready(function() { ...


1

Best practice? Don't do this in SharePoint. It's NOT a relational database system and you will be fighting it every step of the way. Every form, every workflow, every interaction will require code in some form, nothing will work out of the box.


1

A discussion board comes with two content types: Discussion and Message. Discussion is the high-level content type, Message is all the replies. If you add your "State" or "Status" field or whatever to the Discussion content type, it will only apply to the question, not the responses. Create a Site Column called State, and give it whatever values you ...


1

At the end of the page URL add ?Contents=1 , you'll get a webpart maintenance page, there close all the webparts. After that open them one by one and you'll come to know about the faulty webpart. In the end just remove or fix the faulty webpart. It always helped me to fix these kind of issues. Thanks



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