Enhance your reports with template and script columns

Slides:



Advertisements
Similar presentations
Introduction to C Programming
Advertisements

Intro to HTML Basics HTML = Hypertext Mark-up Language HTML = Hypertext Mark-up Language HTML is a plain-text file that can be created using a text editor.
DREAMWEAVER Welcome to our website!
Informer Reporting I need a report that…
Enhance your reports with template and script columns
Spreadsheets A spreadsheet package is a general purpose computer package that is designed to perform calculations. A spreadsheet is a table which is divided.
JavaScript Part 6. Calling JavaScript functions on an event JavaScript doesn’t have a main function like other programming languages but we can imitate.
Introduction to Microsoft Excel 2010 Chapter Extension 3.
Site Modules > Page Builder Access the Page Builder module through the Site Modules top navigation link. Access Page Builder from the Site Modules navigation.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
1 Excel Lesson 6 Enhancing a Worksheet Microsoft Office 2010 Introductory Pasewark & Pasewark.
Web-based Application Development Lecture 9 February 7, 2006 Anita Raja.
Querying a Database Using the Select Query Window
Computer Science 103 Chapter 4 Advanced JavaScript.
Inventory Throughout this slide show there will be hyperlinks (highlighted in blue) follow the hyperlinks to navigate to the specified Topic or Figure.
Review of last session The Weebly Dashboard The Weebly Dashboard Controls your account and your sites Controls your account and your sites From here you.
Designing a Classroom Web Site Using NVU Beginning Level.
Mr Shum Spreadsheets eBooklet. Key Words Key Word CellAn individual box on a spreadsheet RowCells going across in an horizontal line. All rows have a.
HTML & CSS A brief introduction. OUTLINE 1.What is HTML? 2.What is CSS? 3.How are they used together? 4.Troubleshooting/Common problems 5.More resources.
Informer Web Reporting Basic Reporting
Copyright 2007, Information Builders. Slide 1 Maintain & JavaScript: Two Great Tools that Work Great Together Mark Derwin and Mark Rawls Information Builders.
Schoolwires 101 Frequently used “shortcut key” within the editor. ~Created by, Shannon Conley.
 What is a formula in Excel?  A formula is statement written by the user to be calculated. Formulas can be as simple or as complex as the user wants.
1 Data List Spreadsheets or simple databases - a different use of Spreadsheets Bent Thomsen.
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
Ross Business Technology Applications January 4, 2012.
Java Script: Arrays (Chapter 11 in [2]). 2 Outline Introduction Introduction Arrays Arrays Declaring and Allocating Arrays Declaring and Allocating Arrays.
The Language of the Internet. HTML5 Hypertext Markup Language- Fifth iteration Used to create documents containing text, images, and hyperlinks Has Grammar.
HTML: Hyptertext Markup Language Doman’s Sections.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 15 Advanced Tables.
JavaScript, jQuery, and Mashups Incorporating JavaScript, jQuery, and other Mashups into existing pages.
School Websites. What Your Website Can Do  Post Homework assignments with resources  Announcements  Pictures  Parents & Students that Subscribe get.
 A spreadsheet is a type of software which you can put and sort out data. It is also known as ‘Microsoft Excel’ What is a spreadsheet?
Using an HTML image (img) element’s onclick event to change the source (src) of an iframe to an embedded youtube video.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
Programming games Show shaking screen, quiz show. Calculations Homework: (Finish basic Javascript Projects) Make proposal. Work on project.
1. 2 Word Processing Word Processing is writing words and sentences on the computer. It is easy to change or move text in a word document. People use.
Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Working with Data Lists.
INTRODUCTION TO SPREADSHEETS MICROSOFT EXCEL. Spreadsheets Allows users to perform simple and complex sorting Allows users to perform calculations quickly.
HTML Forms.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Positioning Objects with CSS and Tables
PeopleSoft Financials Advanced Query Training Financial Information Systems and Reporting Controller’s Division
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
CHAPTER TWO HTML TAGS. 1.Basic HTML Tags 1.1 HTML: Hypertext Markup Language  HTML stands for Hypertext Markup Language.  It is the markup language.
Coding with HTML {. THE BASICS { What is HTML and how can you use it to make websites?
Java Script Programming. Review: Event Handling Text Box Title: Button.
COM621: Advanced Interactive Web Development Lecture 6 – JavaScript (cont.)
Made with OpenOffice.org 1 Beyond the Single Page Steve Oualline OpenOffice Writer.
Introduction to Calculated Columns Variables, Conditionals, and String Manipulation PRESENTER: Cameron Blashka| Informer Implementation Specialist| April.
Microsoft Excel.
With Microsoft FrontPage 2000
Loops BIS1523 – Lecture 10.
Positioning Objects with CSS and Tables
Advanced Excel Helen Mills OME-RESA.
Web Page Design ICT Ms. McGrew.
Basic Steps: Set up account, log in Select theme (colors, tabs)
Topic 8 – Pivot tables and Charts Lesson 1 – Pivot tables
JavaScript CS 4640 Programming Languages for Web Applications
Word Processing Software Photo credit: © 2007 JupiterImagesCorporation.
Guidelines for Microsoft® Office 2013
Spreadsheets and Data Management
February 11-13, 2019 Raleigh, NC.
Drupal user guide Evashni Jansen Web Office.
Web Programming and Design
This is an introduction to JavaScript using the examples found at the CIS17 website. In previous examples I specified language = Javascript, instead of.
JavaScript CS 4640 Programming Languages for Web Applications
Presentation transcript:

Enhance your reports with template and script columns Calculated Columns Enhance your reports with template and script columns PRESENTER: Andrea Dawkins | R&D Project Manager, Entrinsik | 3-4-2012

Calculated Columns Template vs. Script What’s the difference? 4 Template Examples How to use them, HTML tricks 5 Script Examples How to use them, JavaScript tricks Functions Establish global Scripts for your users

What is the Difference?

Template Columns Written with plain text and HTML Other columns can be used as placeholders for the real value (like a WordMerge letter)

Template Examples Concatenation Joining columns together (like first and last name) Website Links Making the perfect hyperlink for Informer In-line pictures Show an image right in the report row Embed a Map Copy/paste an HTML block, like a Google Map

Script Columns Written with JavaScript More advanced -- can do anything a Template column can do, plus calculations and conditional output Generally, use a script column when you cannot solve your problem with a template

Script Examples Color Coding Define thresholds and highlight low/high numbers with color coding Projected Sale Calculate the projected dollar amount of a sale based on probability Balance Due Show balance due on an order Counting Days Calculate the number of days since an event Total Multi-values Add up a list of multi-values in a column

Template Examples

Template #1: Concatenation One column for first and last name

Template #1: Concatenation How? Drag & drop column headers into the Expression box: ${first_name} ${last_name} Produces: Doug Leupen

Template #1: Concatenation Style with HTML Last name bold: ${first_name} <B>${last_name}</B> Produces: Doug Leupen

Remember… Do not remove the original columns. Hide them instead.

Template #2: Website Link The perfect hyperlink for Informer

Template #2: Website Link Step 1 – Easy, a basic link A hyperlink in HTML: <a href=“http://www.linkedin.com”> LinkedIn </a> Produces: LinkedIn

Template #2: Website Link Step 2 – Drag in your columns LinkedIn ID and the person’s name <a href = “http://www.linkedin.com/${linkedin_id}”> ${first_name} ${last_name}’s Profile </a> Produces: Sharon Shelton's Profile

Template #2: Website Link Step 3 – Choose your sorting value Sort by the person <a name=“${first_name} ${last_name}” href = “http://www.linkedin.com/${linkedin_id}”> ${first_name} ${last_name}’s Profile </a> Otherwise, Informer will just sort by the HTML alphabetically

Template #2: Website Link Step 4 – Stay on your report Use target=_blank to open in a new browser window <a name=“${first_name} ${last_name}” href = “http://www.linkedin.com/${linkedin_id}” target=“_blank”> ${first_name} ${last_name}’s Profile </a> You may also use target=“AnyWindowNameHere” to open all links with that target in the same new window.

Template #2: Website Link Done! The perfect Informer link Uses columns from the report Sorts by what you see Opens in a different window

Template #3: In-line Picture Show an image right in the report row

Template #3: In-line Picture Step 1 – Easy, a basic image An image in HTML: <img src= “http://delivery.entrinsik.com/icon/profiles /logo.png” /> Produces:

Template #3: In-line Picture Step 2 – Drag in your columns An image in HTML: <img src= “http://delivery.entrinsik.com/icon/profiles /${first_name}.png” /> Produces:

Template #3: In-line Picture Step 3 – Control the size Specify the height or width <img src= “http://delivery.entrinsik.com/icon/profiles /${first_name}.png” height=100/> But do not change both unless you want the image distorted!

Template #4: Embed a Map Place a Google Map in the row body of a report

Template #4: Embed a Map Step 1 – Make an address template column Concatenate all the pieces of an address into one column: ${street}, ${city}, ${state}, ${zip} Produces: 7501 Creedmoor Rd, Raleigh, NC, 27613

Template #4: Embed a Map Step 2 – Copy paste the link from Google Maps Put your address column in <iframe width="800" height="500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?hl=en&outpu t=embed&t=m&z=14&iwloc=A&q=${address}"> </iframe>

Template #4: Embed a Map Step 3 – Hide/Show in Row Body

Script Examples

Script Examples Color Coding Define thresholds and highlight low/high numbers with color coding Projected Sale Calculate the projected dollar amount of a sale based on probability Balance Due Show balance due on an order Counting Days Calculate the number of days since an event Total Multi-values Add up a list of multi-values in a column

Script Reference JavaScript Operators + add - subtract * multiply / divide == is equal to != is not equal > is greater than < is less than >= is greater than or equal to <= is less than or equal to && and || or ! not

Script #1: Color Coding AKA, how to use if/else in JavaScript to color code a value

Script #1: Color Coding If/Else Statements Assign colors based on some condition. if(condition1) { do this; } else if(condition2) { do this; } else { do this; }

Script #1: Color Coding If/Else Statements Assign colors based on some condition. if( probability <= 25 ){ "<div style='color:red'>“ +probability+ "%</div>"; } else if( probability >= 75 ){ "<div style='color:green'>“ +probability+ "%</div>"; } else { "<div>“ +probability+ "%</div>"; }

Script #1: Color Coding Remember the sorting trick Add name to the div so the column sorts on the value "<div name='" +probability+ "'>" +probability+ "%</div>";

Script #2: Projected Sale Calculate the projected dollar amount based on probability

Script #2: Projected Sale Multiply by probability percentage divided by 100 amount * ( probability / 100 ); Set the column as a number and apply currency formatting

Script #3: Balance Due Calculate the balance of tuition paid

Script #3: Balance Due Subtract the amount paid from the total total – amount_paid

Script #4: Counting Days Calculate the number of days since a date

Script #4: Counting Days Use Java Calendar Calculate up the relevant dates in milliseconds: var calendar = java.util.Calendar.getInstance(); var rightNow = calendar.getTimeInMillis(); calendar.setTime(INVOICE_DATE); var startTime = calendar.getTimeInMillis(); var oneDayInMillis = 24 * 60 * 60 * 1000; (rightNow - startTime) / oneDayInMillis;

Script #4: Counting Days Highlight past-due invoices Use both your calculated columns: if(balance > 0 && daysSinceInvoice > 90) { "<div style='background-color:red;color:white'> Past Due </div>"; } else { ""; }

Script #5: Total Multi-values Total up all the values in a multi-value column

Script #5: Total Multi-values Arrays An array is a list of values inside a single variable They come from Multi-value fields, Multi-key joins, Remote joins If you ever see this in your script column, you’re dealing with an array: [Ljava.lang.Object;@1e07cdbte] Pick an item out of an array by using square brackets: myColumn[3]

Script #5: Total Multi-values Array Indexes start at 0 You write in… Which gives you… myColumn[0] the 1st multi-value myColumn[3] the 4th multi-value myColumn[myColumn.length-1] the last multi-value myColumn[myColumn.length] error, out of range.

Script #5: Total Multi-values Looping To process every item in an array, you will need to use for loops for (var i=0; i< mvColumn.length; i++) { mvColumn[i]; }

Script #5: Total Multi-values Calculate total Add each value up in the for loop var total = 0; for(var i=0; i<creditHours.length; i++) { if(creditHours[i] != null) { total += parseInt(creditHours[i]); } total;

Remember… Check for null values, or your script might break.

Functions

Functions Set up under Mappings tab

Functions Now users can access it from any report

Resources HTML http://www.w3schools.com/html/html_examples.asp JavaScript http://www.w3schools.com/js/js_examples.asp CSS (styles) http://www.w3schools.com/css/css_examples.asp Forums: http://www.entrinsik.com/forums/ Sub-forum for Calculated Columns has more examples

Thank you! Any questions?