- Welcome to the Knowledge Base
- Introduction
- Training
- Desktop Environment
- Preferences
- Activities
- Cases
- Forecasts & Quotas
- Importing Data
- Leads
-
Marketing
- Introduction to Marketing
- Marketing Campaigns
- Mailing Lists
- Products
- Mailshots
- Upload Library
- Templates
-
Workbooks Web Insights
- Tracking Code
- Setting up the Plugin
- Viewing Web Insights Data on your Form Layouts
- Domain Names and Online Activities
- Gator Popup
- Reporting incorrect Leads created through Web Insights
- Reporting on Web Insights data
- Using UTM Values
- Why aren’t Online Activities being created in the database?
- Why is GatorLeads recording online activities in a foreign language?
- Using HubSpot with Workbooks
- Event Management
- Compliance Records
- GatorMail Integration
- Opportunities
-
Integrations
- Mapping
- Electronic Signing Tools
- Creditsafe Integration
-
Zapier
- Introduction to Zapier
- Available Triggers and Actions
- Linking your Workbooks Account to Zapier
-
Setting up Zaps
- Posted Invoices to Xero Invoices
- Xero payments to Workbooks Tasks
- New Case to Google Drive folder
- New Case to Basecamp Project
- New Workbooks Case to JIRA Ticket
- Jira Issue to new Case
- 123FormBuilder Form Entry to Case
- Eventbrite Attendee to Sales Lead and Task
- Facebook Ad Leads to Sales Leads
- Wufoo Form Entry to Sales Lead
- Posted Credit Note to Task
- Survey Monkey responses to Tasks
- Multistep Zaps
-
Email Integrations
- Email Dropbox
- Workbooks Exchange Server Sync
- Workbooks Outlook Connector
- Scribe/Workbooks Connector
- People & Organisations
- Reporting
- Dashboards
- Transaction Documents
- Auditing
-
Configuration
- Introduction to System Administration
- Users & Security
- Database
- Accounting
- Email & Integration
- Customisation
- Automation
- PDF Configuration
- Contact Support
-
Releases & Roadmap
- Roadmap
- September 2019 Release
- February 2019 - Event Management Release
- January 2019 Release
- October 2018 Release
- May 2018 Release
- February 2018 Release
- January 2018 Release
- November 2017 Release
- September 2017 Release
- June 2017 Release
- March 2017 Release
- December 2016 Release
- August 2016 Release
- January 2016 Release
- Workbooks Glossary
Comments in Calculated Columns
When creating a calculated column it is possible to add comments within the code. This is so that Users can leave behind a brief explanation of what the calculation does so that it is easy to follow again in the future and help with troubleshooting.
There are two syntaxes available to choose from when leaving a comment
"# ": a hash followed by a space, this comments out any following text on the same line
"/* … */": text encased in forward slashes with asterisks, this is a multi-line comment - allowing you to leave a longer comment if required.
Using Comments
Comments are loaded with the Calculated Column; as such a large number of lengthy comments could reduce the performance of the Report. We recommend keeping comments brief and only adding them when necessary.
Example Comments
Example 1
# CASE statements need to start with the word CASE CASE # Define what is Support and what is Professional Services WHEN type_name = 'Support Call' THEN 'Support' WHEN type_name = 'General Enquiry' THEN 'Support' WHEN type_name = 'Implementation Case' THEN 'Professional Services' /* define the ELSE output then end the CASE statement with END*/ ELSE 'NA' END
Example 2
# case statement for colour coding fields CASE /* If Job Role is director then make the background green with black and bold text If Job Role is manager then make the background red with black text */ WHEN person_job_role = 'Director' THEN 'font-weight: bold; background-color:#38a582; color: black' WHEN person_job_role = 'Manager' THEN 'background-color:#c12e28; color: black' # Everything else is blue with black text ELSE 'background-color:#3f7ec1;color: black' END