Category: CAML Query

List all attachments when clicking the paperclip in a list view

· Alexander Bautz · CAML Query, Javascript, List view modification, SharePoint, Utilities · 64 comments

Change log: 07.10.2011 A new version is published – you find it here. 23.09.2010 Moved the code to a server for direct download to make it easier for the users. You find the link below. The current stable version is 1.5. 13.09.2010 Fixed bug when ID column was not placed to the far right. 07.09.2010 […]

Visual status indicator based on 5 date columns in a list view

· Alexander Bautz · CAML Query, Form modification, Javascript, List view modification, Requests, SharePoint · 20 comments

31.07.2010 Updated the code for the file “FiveDateColumnStatus.js” and the CEWP code for ListView, NewForm, DispForm and EditForm. Added support for column name in the mouse over tooltip and the percentage is now “0 %” if none of the date fields are applicable. The CEWP code has changed as the “arrOfFields” has become an object […]

Vertical Scrolling WebPart

· Alexander Bautz · CAML Query, Javascript, Requests, SharePoint, Utilities · 117 comments

15.07.2010 Updated the code for the file “VerticalScrollingWebPart.js” to try to fix the overflow issue in IE6. 24.06.2010 The code for the file “VerticalScrollingWebPart.js” is updated. I actually forgot to update it as i made some adjustments in the CEWP code… I hope the overflow issue is fixed with this update. I got this request […]

Cascading dropdowns in SharePoint text fields – populated by lookup in another list (version 2)

· Alexander Bautz · CAML Query, Form modification, Javascript, SharePoint, Utilities · 151 comments

03.11.2010 Updated the code to eliminate the need to refer other external resources than jQuery. Removed the argument “lookupSourceListURL” from the function call. The code is tested in IE, Chrome and Firefox. Opera is not supported. NOTE: When updating existing script you must modify the function call and remove the argument “lookupSourceListURL”. I have previously […]

Autocomplete for single line of text

· Alexander Bautz · CAML Query, Form modification, Javascript, Requests · 11 comments

I got a request form Charlie on how to accomplish autocomplete for a single line text-field, reading the values from itself. This solution resembles my Autocomplete for SharePoint people picker, but it pulls date into a single line text field. As always we start like this: Create a document library to hold your scripts (or […]

Validate text field input against value in another list

· Alexander Bautz · CAML Query, Form modification, Javascript, Requests, SharePoint · 19 comments

I got this request from Sonaly: I am using MOSS. I have two lists Machines and TRansactions. I have 3 following textboxes in newform.aspx/editform.aspx of Transactions List. EnqNo – Plain Text box – Required field Date – Datetime field – Required field MachineID – Plain Text box – Required field Here I want to validate […]

Display information from another list based on a lookup column connection

· Alexander Bautz · CAML Query, Form modification, Javascript, SharePoint · 96 comments

16.10.2013 New version: https://spjsblog.com/2013/10/16/display-information-from-another-list-based-on-a-lookup-column-connection-updated-version/ 23.05.2010 Updated to fix hyperlink columns (splits the hyperlink by the first “, ” to separate URL and description). 20.05.2010 Updated to support hyperlink columns formatted as hyperlink and hiding of empty “rows”. 26.02.2010 Updated to support multiple lookup columns. Here is is an example on how to display information from […]

Hit counter for SharePoint

· Alexander Bautz · CAML Query, Javascript, SharePoint, Utilities · 169 comments

28.05.2011 I have redone this solution to use a star-rating in stead of the simple “like” button. You find the new version here 01.11.2010 Redone the scripts and added support for rating individual items in a list – for example in “Dispform” in a blog: The solution counts “Hits” and “Likes”. Create a document library […]