Alexander Bautz Profile    

Blog Title SharePoint JavaScripts
Blog Description Small JavaScript tricks for SharePoint
Blog URL http://sharepointjavascript.wordpress.com
RSS Feed http://sharepointjavascript.wordpress.com/feed/
Validate Feed Validate this feed: feedvalidator.org or validator.w3.org
Feed Last Checked Sep 08, 2010 7:09:41 AM EST.
Realtime Update
Landed Here Apr 19, 2010
Location
Posts: # / 1st / Latest 25 - Mar 11, 2010 - Aug 25, 2010
Total Hits 1,845
Interactive Charts using Google Visualization API v2.0
Alexander Bautz
Since i posted the previous version of the solution that utilizes the Google Chart Tools / Interactive Charts (aka Visualization API), Google has updated their API and made the previous version more or less obsolete. NOTE: I have made a “bridge” between Google’s Visualization API and SharePoint. How the charts render or function it up [...] [read].
Posted: Wed, Aug 25th '10
List all attachments when clicking the paperclip in a list view
Alexander Bautz
I got this request from Chris: …the challenge I’m currently trying to solve is to get the attachments paperclip in a listview clickable. Using a doclib and linking against the file is not an option since we are talking about a lot of files with the same name which should be stored with the list [...] [read].
Posted: Tue, Aug 24th '10
Visual status indicator based on 5 date columns in a list view
Alexander Bautz
I got an e-mail from Charlie Epes about a ticket over at STP Hi Alexander: You are mentioned in the thick of a request started by me. If you want to chime in here, please do! http://www.endusersharepoint.com/STP/viewtopic.php?f=10&t=1319 My challenge was: Here’s an example of what I’m trying to do in my List. Let’s say my [...] [read].
Posted: Fri, Jul 2nd '10
Vertical Scrolling WebPart
Alexander Bautz
I got this request from Charlie: …a solution that I can use as a dashboard web part to vertically scroll the most recent “top 10” items from a 2nd list? Example: I need to be able to grab the most recently items marked as “Completed” or “Sold” from a list and be able to show [...] [read].
Posted: Tue, Jun 22nd '10
Numbers only in single line text field
Alexander Bautz
By request from Larry, here is a solution that restricts input in a single line text field to number only. Note: It is treated as text in SharePoint and you cannot sum or average in a list view. Add this code to a CEWP below the list form in your NewForm or EditForm: <script type="text/javascript" [...] [read].
Posted: Thu, Jun 17th '10
Show field description in list view column header
Alexander Bautz
I got this request from Saran to display the field description when hovering the mouse over the column header in a list view. Add this code to a CEWP and place it below the list view: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript"> wsBaseUrl = L_Menu_BaseUrl + '/_vti_bin/'; var myTooltipObj = customGetList(ctx.listName); $(".ms-listviewtable th"). [read].
Posted: Thu, Jun 17th '10
Send email with javascript – with the help of a workflow in a dedicated “send email-list”
Alexander Bautz
This solution “injects” data, using JavaScript, into a custom list. This list has one purpose only: sending an email containing the injected data. The custom list have the following fields: Title: The native Title field – holds the subject. To: Single line of text. Cc: Single line of text. EmailBody: Multiple lines of plain text. [...] [read].
Posted: Tue, Jun 15th '10
Cascading dropdowns in SharePoint text fields – populated by lookup in another list (version 2)
Alexander Bautz
I have previously posted a solution for creating cascading dropdowns from SharePoint single line text fields. Populated based on a query against another list. I have reviewed the script to add a few enhancements. No more need to create a calculated column in the “lookup list” Less arguments to pass to the function – sleeker [...] [read].
Posted: Mon, Jun 14th '10
Edit document metadate without creating a new version or triggering workflows
Alexander Bautz
Have you noticed that when uploading a new documents in a document library, the connected workflows do not trigger? This behavior can be used to “sneak” in changes in a documents metadate without triggering new versions or connected workflows. The trick is simply to load the page with the parameter “&Mode=Upload” in the URL: [your [...] [read].
Posted: Tue, Jun 8th '10
Manipulate upload link in document library
Alexander Bautz
I got this request from JGilmore: Anyone know how to change the URL of the ‘Upload’ button as well as the links under its dropdown? I would like to have the user directed to a custom upload page with ‘Overwrite existing files’ unchecked by default. Thanks in advance. Here is one possible approach Add this [...] [read].
Posted: Tue, Jun 8th '10
Get or Set value for SharePoint field in NewForm, EditForm and DispForm (Get only in DispForm)
Alexander Bautz
This article describes how to get or set the value for all standard SharePoint field types in in NewForm, EditForm and DispForm (Get only in DispForm). This solution is tested in IE8, Firefox 3.6.3. Instructions for getFieldValue The function “getFieldValue” takes four arguments: fin: FieldInternalName of the field to set the value for. dispform: true [...] [read].
Posted: Fri, May 28th '10
Autocomplete for single line of text
Alexander Bautz
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 [...] [read].
Posted: Thu, May 27th '10
Interactive Charts using Google Visualization API
Alexander Bautz
This is a teaser on a solution for creating charts directly from SharePoint lists using Google Visualization API. The solution is a CEWP-solution and requiring no other than a few script references. All code and data are processed and rendered in the browser. No data is sent to any server. The solution features “Sum”, “Count” [...] [read].
Posted: Tue, May 4th '10
Image preview on hover over a hyperlink field
Alexander Bautz
I got this request from Mark: Hi Alexander, I did not include the column as a picture because they are to big to display in the list view. For this reason I setup a list with a hyperlink to the image. Besides it would look terrible having a list that displays all these large pictures [...] [read].
Posted: Thu, Apr 29th '10
Get field value for all SharePoint FieldTypes or set field as read only in EditForm
Alexander Bautz
I have had several requests for a solution for setting fields as read only in EditForm. I have created this script to achieve this. This script enables you to get the field value for any SharePoint field type in EditForm, and to set the field as read only by grabbing it’s value, hiding the <TD>, and [...] [read].
Posted: Thu, Apr 22nd '10
Toggle column visibility in list view
Alexander Bautz
19.04.2010 Modified code to support “pre hiding” from query string parameter. Both the CEWP code and the file “ToggleColumnVisibility.js” has changed. Here are a solution for toggling the columns visibility in a list view by adding a checkbox row above the list view. Remove the check to hide the column. recheck to show. The solution dynamically adapts [...] [read].
Posted: Sun, Apr 18th '10
Filter a calendar view based on user profile property
Alexander Bautz
I got this request from Carel Schotborgh: Using WSS 3.0 Not have been able to find it anywhere so, since it is possible to filter a list items (in all event/task/etc view) based on membership in SharePoint group (By Alexander). I would like to request the possibility to filter an Agenda View on a single line text, [...] [read].
Posted: Sun, Apr 11th '10
Revised function init_fields()
Alexander Bautz
I got a tip from Alexey Krasheninnikov regarding using regex rather then “indexOf” and “substring” in the function “init_fields()”. It is both quicker and cleaner. This function is used in all my scripts that works with NewForm, DispForm or EditForm. It only works in non-modified forms. Here is a revised version of the function. The regex [...] [read].
Posted: Wed, Apr 7th '10
Pull e-mail from people picker and write to a separate textfield
Alexander Bautz
I got this request from Indra: Hi Alex, This is really great blog!! awesome work and i am big fan of this site, i check everyday and look at the things and learn , but i need something that i cannot find any where. Let me explain what i need.. I have a list with a people picker [...] [read].
Posted: Tue, Apr 6th '10
How to troubleshoot when the scripts does not work
Alexander Bautz
In most cases where users have trouble getting my solutions to work, the problem is the script references. I will give a few examples here on how to troubleshoot these cases. To copy the script from sourcecode provided in the article, hover over the script and click “view source”. Highlight, copy and paste in notepad. Save [...] [read].
Posted: Fri, Apr 2nd '10
Edit SharePoint Field properties, including lookup column list association, with client side code only
Alexander Bautz
31.03.2010 Updated the code to fix a bug regarding “ShowInDisplayForm”, thanks to Mike for spotting the bug. This code enables you to edit the following field properties using jQuery only: Hidden: Specifies whether the field is displayed in the list. ReadOnly: Specifies whether values in the field can be modified. Required: Determines whether the field requires values. Show In NewForm: [...] [read].
Posted: Tue, Mar 30th '10
Autocomplete for SharePoint people picker
Alexander Bautz
26.03.2010 Updated code to be able to clear the selection It’s only the code for the file “AutocompleteForPeoplePicker.js” that has changed. Thanks to Steve for pointing out the bug. This solution adds auto complete functionality to a standard SharePoint people picker. This solution is built with the autocomplete widget from jQuery UI. The values are pulled from [...] [read].
Posted: Wed, Mar 24th '10
vLookup type rollup for SharePoint
Alexander Bautz
01.04.2010 Small update to the file “vLookupForSharePoint.js”. I have modified the argument “hoverToView” to have separate settings for DispForm and for ListView. You must change the argument “hoverToView” to “hoverToViewDispForm” and “hoverToViewListView” in your calculated columns. I have long thought of making a generic solution for pulling information from another list, kind of like you would [...] [read].
Posted: Wed, Mar 17th '10
Filter Radio Buttons or Checkboxes based on selection in another field
Alexander Bautz
15.03.2010 small update to the code to handle blank “triggervalue”. Thanks to Larry. I got this request from Elstone: Hello I have two choice fields, 1 drop down and another is multiple radio buttons (6 values/radio button). This I want to implement on newform/editform In dropdown I have 3 values i.e. Yes/No/Not Sure (selected by default). I want to show/hide [...] [read].
Posted: Sun, Mar 14th '10
Add character or word count to SharePoint multi line plain text field and restrict input length
Alexander Bautz
14.03.2010 Updated to count down from limit to 0 and color code the counter. Also merged the “Count characters” and the “Count words” functions to one. See new code and explanation below. I got this request from Larry: new request for you. Character/word counter for multiple line field to display below the field. Not general for all [...] [read].
Posted: Thu, Mar 11th '10



Blogs
S.S. Ahmed
Eric Alexander
Reza Alirezaei
Owen Allen
Paul Andrew
Axceler Blog
Tariq Ayad
William Baer
Todd Baginski
Jose Barreto
Alexander Bautz
Becky Bertram
Urs Bertschy
Simon Binaryjam
Darrin Bishop
Chrissy Blanco
Todd Bleeker
Michael Blumenthal
Robert Bogue
Christian Buckley
Gary Bushey
Sean Cantellay
Joe Capka
Mauro Cardarelli
Todd Carter
Eric Charran
Liam Cleary
Communardo Techblog
Renaud Comte
Andrew Connell
William Cornwill
Matthew Cosier
Penny Coventry
Paul Culmsee
Stephen Cummins
Marek Czarzbon
Jeff Dalton
Gabriele Del Giovine
Tim Dobrinski
Stacy Draper
Zlatan Dzinic
Erika Ehrli
Enterprise Search
eusp2010
Christopher Even
Lars Fastrup
Mike Fitzmaurice
Torsten Flegel
Rob Foster
Bob Fox
Toni Frankola
Bjorn Furuknap
Amar Galla
Paul Galvin
Mike Gannotti
Rob Garrett
Sebastian Gerling
Get the Point
Stefan Gossner
Brian Gough
Michael Greth
Matthias Groenert
Daniele Guarneri
Portals & Integration
Mike Hamilton
Spencer Harbar
Richard Harbridge
Marcus Hass
René Hézser
Sascha Henning
Susan Henry
Mike Herrity
Tim Heuer
Ben Hickman
Ed Hild
Thomas Hildebrandt
Scot Hillier
Kevin Hoffman
John Holiday
Greg Hughes
Christophe Humbert
Dave Hunter
Randall Isenhour
Becky Isserman
Barry Jinks
Chris Johnson
Kit Kai
Mattias Karlsson
Paul Keijzers
George Khalil
Noorez Khamis
Todd Klindt
Steffen Krause
Westin Kriebel
Larry Kuhn
Chandima Kulathilake
Andre Lage
Gary Lapointe
Daniel Larson
Eric Legault
Dan Lewis
Paul Liebrand
Bryant Likes
David Lim
Locatech
Angus Logan
Serge Luca
Gregory MacBeth
Igor Macori
Ricardo Magalh
Sahil Malik
Giuseppe Marchi
Waldek Mastykarz
Jean-Francois Mathieu
Andrew May
Ali Mazaheri
Matthew McDermott
Daniel McPherson
Jason Medero
Oscar Medina
Alexander Meijers
Robin Meure
Ryan Miller
Bob Mixon
Agnes Molnar
Adam Morgan
Ian Morish
Mart Muller
Amanda Murphy
Arno Nel
Mads Nissen
Chris O'Brien
Michael O'Donovan
Joel Oleson
Henry Ong
Doug Ortiz
Mike Oryszak
Paul Papanek Stork
Joris Peolmans
Shane Perran
Pieter Pieter
Steve Pietrek
Maurice Prather
Stuart Preston
Romeo Pruno
Chris Quick
Shereen Qumsieh
Dux Raymond
Tom Resing
Keith Richie
Namwar Rizvi
Tom Rizzo
Eli Robillard
Lance Robinson
Patrick Rogers
Eugene Rosenfeld
Zach Rosenfield
Ishai Sagi
Paul Schaeflein
Arnt Schoning
Brendon Schwartz
Carlos Segura Sanz
Philippe Sentenac
Arpan Shah
Itay Shakury
End User SharePoint
To The SharePoint
SharePoint and Tech Blog
SharePoint Blues
Sharepoint Design Team
Sharepoint Developer
SharePoint Magazine
SharePoint Product Team
Sharepoint Solutions
SharePointHosting Blog
Steve Sheppard
Eric Shupps
Bill Simser
Scott Singleton
Patrick Sledz
Heather Solomon
Thomas Sondergaard
Clare Stone
Nick Swan
Marwan Tarek
Jeremy Thake
Jan Tielen
Tools for Collaboration
Torsten Hufsky
UK SharePoint Team
Understanding SharePoint
Dan Usher
Serge van den Oever
Cornelius van Dyk
Xavier Vanneste
Geoff Varosky
Pierre Vivier-Merle
Natalya Voskresenskaya
JD Wade
Kris Wagner
Mike Walsh
Doug Ware
Michael Watson
Bart Wessels
Phil Wicklund
Wictor Wilen
Ivan Wilson
Woody Windischman
Daniel Winter
Andrew Woodward
Shane Young
Mohamed Zaki
Tobias Zimmer


SharePoint Resources


Inside the Index and Search Engines: Microsoft Office SharePoint Server 2007 (PRO-Developer) by Patrick Tisseghem


Advanced Microsoft Content Management Server MCMS: Working with the Publishing API, Placeholders, Search, Web Services, RSS, and Sharepoint Integration by Lim Mei Ying


Professional Microsoft Search: SharePoint 2007 and Search Server 2008 (Wrox Professional Guides) by Tom Rizzo


Google Sites & Chrome For Dummies (For Dummies (Computer/Tech)) by Ryan Teeter


SharePoint 2007 User's Guide: Learning Microsoft's Collaboration and Productivity Platform by Seth Bates


Microsoft Office SharePoint Server 2007 Best Practices by Ben Curry


Microsoft® Office SharePoint® Designer 2007 Step by Step by Penelope Coventry


Essential SharePoint 2007: A Practical Guide for Users, Administrators and Developers by Jeff Webb


Professional Microsoft Office SharePoint Designer 2007 (Wrox Programmer to Programmer) by Woodrow W. Windischman


Beginning SharePoint 2007: Building Team Solutions with MOSS 2007 (Programmer to Programmer) by Amanda Murphy


Microsoft® Windows® SharePoint® Services 3.0 Step by Step (Step By Step (Microsoft)) by Olga Londer


Microsoft SharePoint 2007 Unleashed by Michael Noel


Microsoft SharePoint 2007 For Dummies (For Dummies (Computer/Tech)) by Vanessa L. Williams


The SharePoint Shepherd's Guide for End Users by Robert Bogue


The Microsoft SharePoint Step by Step Kit: Microsoft Windows SharePoint Services 3.0 Step by Step and Microsoft Office SharePoint Designer 2007 (Bpg-Other) by Olga Londer


SharePoint for Project Management: How to Create a Project Management Information System (PMIS) with SharePoint by Dux Sy


Beginning SharePoint 2007 Administration: Windows SharePoint Services 3.0 and Microsoft Office SharePoint Server 2007 by Göran Husman


Professional SharePoint 2007 Development (Programmer to Programmer) by John Holliday


Inside Microsoft Windows SharePoint Services 3.0 (Pro Developer) by Ted Pattison; Daniel Larson


Microsoft® Office SharePoint® Server 2007 Administrator's Companion by Bill English


Professional SharePoint 2007 Design (Wrox Professional Guides) by Jacob J. Sanford


Inside Microsoft Office SharePoint Server 2007 by P. Tisseghem


Real World SharePoint 2007: Indispensable Experiences From 16 MOSS and WSS MVPs (Programmer to Programmer) by Robert Bogue


Mastering Windows SharePoint Services 3.0 by C. A. Callahan


Pro SharePoint Solution Development: Combining .NET, SharePoint and Office 2007 (Expert's Voice in Sharepoint) by Ed Hild


Seamless Teamwork: Using Microsoft® SharePoint® Technologies to Collaborate, Innovate, and Drive Business in New Ways (BP-Other) by Michael Sampson


Professional SharePoint 2007 Web Content Management Development: Building Publishing Sites with Office SharePoint Server 2007 (Wrox Programmer to Programmer) by Andrew Connell


Building Web Applications with Microsoft® Office SharePoint® Designer 2007 Step by Step (Step By Step (Microsoft)) by John Jansen


Microsoft Office SharePoint Designer 2007 Bible by Vikram Kartik


SharePoint 2007: The Definitive Guide by James Pyles


Microsoft SharePoint 2003 For Dummies (For Dummies (Computer/Tech)) by Vanessa L. Williams


Office and SharePoint 2007 User's Guide: Integrating SharePoint with Excel, Outlook, Access and Word (Expert's Voice) by Michael Antonovich


Building Content Type Solutions in SharePoint 2007 by David Gerhardt


Microsoft Windows SharePoint Services Step by Step (Step By Step (Microsoft)) by Olga Londer


MCTS: Microsoft Office SharePoint Server 2007 Configuration Study Guide: Exam 70-630 by James Pyles


Inside SharePoint Administration by Steve Caravajal


Sams Teach Yourself Microsoft SharePoint 2003 in 10 Minutes by Colin Spence


Microsoft Windows SharePoint Services 3.0 Quick Source Guide by Quick Source


Microsoft SharePoint Products and Technologies Administrator's Pocket Consultant by Ben Curry


SharePoint 2007 Development Recipes: A Problem-Solution Approach (Expert's Voice in Sharepoint) by Mark Gerow


Essential SharePoint 2007 by Scott Jamison


Professional Microsoft SharePoint 2007 Workflow Programming by Dr. Shahram Khosravi





About - Blog Submission - FAQ