1 / 13

KPI’s for Every Version of SharePoint! Brad Saide

KPI’s for Every Version of SharePoint! Brad Saide. The HTML Calculated Field. What is it? How do you use it? What can it do for me? Ideas! More Info?. What is it?. The HTML Calculated Field. Is a Standard OTB Calculated Field Comes with both WSS 3 & MOSS

rashad
Download Presentation

KPI’s for Every Version of SharePoint! Brad Saide

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. KPI’s for Every Version of SharePoint! Brad Saide

  2. The HTML Calculated Field • What is it? • How do you use it? • What can it do for me? • Ideas! • More Info?

  3. What is it?

  4. The HTML Calculated Field • Is a Standard OTB Calculated Field • Comes with both WSS 3 & MOSS • Requires No Installation (Great for Hosting) • So… How do you use it?

  5. The HTML Calculated Field • Use it to “Build” Conditional HTML Strings • You can set conditions based on: • Status • Numbers • Percentages • Dates • …Essentially anything you can test for, you can build a HTML Calculated Value to represent it. • Problem is, the HTML gets parsed and rendered as text, Right? Yes… until you add this bit of JavaScript!

  6. The HTML Calculated Field • <script type="text/javascript"> • /* • Text to HTML - version 2.0 • Questions and comments: Christophe@PathToSharePoint.com • */ • function TextToHTML(NodeSet, HTMLregexp) { • var CellContent = ""; • var i=0; • while (i < NodeSet.length){ • try { • CellContent = NodeSet[i].innerText || NodeSet[i].textContent; • if (HTMLregexp.test(CellContent)) {NodeSet[i].innerHTML = CellContent;} • } • catch(err){} • i=i+1; • } • } • // Calendar views • var regexpA = new RegExp("\\s*<([a-zA-Z]*)(.|\\s)*/\\1?>\\s*$"); • TextToHTML(document.getElementsByTagName("a"),regexpA); • // List views • var regexpTD = new RegExp("^\\s*<([a-zA-Z]*)(.|\\s)*/\\1?>\\s*$"); • TextToHTML(document.getElementsByTagName("TD"),regexpTD); • // Grouped list views • ExpGroupRenderData = (function (old) { • return function (htmlToRender, groupName, isLoaded) { • var result = old(htmlToRender, groupName, isLoaded); • var regexpTD = new RegExp("^\\s*<([a-zA-Z]*)(.|\\s)*/\\1?>\\s*$"); • TextToHTML(document.getElementsByTagName("TD"),regexpTD); • }; • } • )(ExpGroupRenderData); • </script>

  7. What can it do for me?Demo

  8. Ideas - Dashboard & Task Calendar

  9. Ideas – Project Status Dashboard This is a CQWP Rollup

  10. Ideas – Highlighting List Items From This… To This… Bold Mgr’s Name

  11. The HTML Calculated Field • Benefits • Easy to change • No Developer Required • 0 Impact to SharePoint • No Upgrade issues  • Business can create the Formulas (they’re just like Excel) • Gives you the ability to add KPI’s to any SharePoint Version

  12. The HTML Calculated Field • More Information: • HTML Calculated Field – Where it all began • Christophe’s Site - http://pathtosharepoint.wordpress.com • HTML Calculated Field - The original article • Example on building a Project Status Dashboard • My Blog – http://sharepointblog.spaces.live.com • Assets – http://skydrive.live.com • Tooltip Bubbles • Alessandro Fulciniti – http://web-graphics.com

  13. Thank YouQuestions

More Related