Community
Search Options
Search Options
Log in
Skip to main content (Press Enter).
Sign in
Skip auxiliary navigation (Press Enter).
Business Analytics
Topic areas
Cognos Analytics
Cognos Controller
Global Business Analytics
Planning Analytics
User groups
Events
Upcoming Business Analytics Events
IBM TechXchange Webinars
All IBM TechXchange Community Events
Participate
Community Manager's Welcome
Gamification Program
Post to Forum
Share a Resource
Share Your Expertise
Blogging on the Community
Connect with Business Analytics Users
All IBM TechXchange Community Users
Resources
IBM TechXchange Group
Data and AI Learning
IBM Champions
IBM Cloud Support
IBM Documentation
IBM Support
IBM Support 101
IBM Technology Zone
IBM Training
TechXchange Conference
IBM TechXchange Conference 2024
Marketplace
Marketplace
Business Analytics
Connect, learn and share with over 10000 users across the IBM Business Analytics.
Ask a question
Get 1 Month Free Access to Generative AI Fundamentals on Coursera
Skip main navigation (Press Enter).
Toggle navigation
Search Options
Cognos Analytics
View Only
Group Home
Discussion
14.2K
Library
630
Blogs
684
Events
3
Members
6.1K
Share
Updated JavaScript samples for IBM #Cognos Analytics 11.0.10
By
Samples Team
posted
Thu March 22, 2018 11:35 AM
1
Like
The JavaScript samples have been updated to use data modules rather than the Sample Outdoors Company database, making them easier for you to set up. You no longer need to install the full
Extended Samples
in order to use the JavaScript samples.
The setup instructions and JavaScript sample files are installed (but not configured or imported) with the product in an Easy installation, and if the Samples option is selected in a Custom installation. After product installation, you can find them here:
<Cognos Analytics installation location>\samples\JavaScript\
List of JavaScript Samples
App bar:
This sample report uses JavaScript to create an application bar to switch between a list, charts, and a crosstab.
App bar data:
This sample report uses JavaScript to create a data-driven application bar.
App bar static labels:
This sample report uses JavaScript to create an application bar with static labels.
Basic control:
This sample shows how to include a basic JavaScript control.
Bootstrap button bar:
This sample report uses JavaScript to create a bootstrap button bar to switch between order methods.
Bootstrap tabs:
This sample report uses JavaScript to create both data-driven tabs and static tabs.
Collapse regions:
This sample report uses JavaScript to show or hide prompts.
D3 bar chart:
This sample report uses JavaScript to generate a D3 bar chart.
Data store viewer:
This sample report uses JavaScript to access the data store and display rows of data.
Displayable regions:
This sample report uses JavaScript to show or hide the prompts, and to show or hide individual prompts within that region.
Events:
This sample shows how to use JavaScript to respond to events.
Full screen:
This sample report uses JavaScript to show a pie chart, a list, or a crosstab in full screen mode.
Google bar chart:
This sample report uses JavaScript to generate a Google bar chart.
Google organization chart:
This sample report uses JavaScript to generate a Google organization chart.
HTML select:
This sample report uses JavaScript to create an HTML drop-down list.
HTML slider:
This sample report uses JavaScript to create an HTML slider to set a minimum value.
List column display:
This sample report uses JavaScript to allow the user to select which list columns to display.
Loading text:
This sample demonstrates loading text with JavaScript.
Page module:
This example shows how to author a page module and access a control in the page module. (This is the base template for a page module.)
Prompt API buttons:
This sample report uses JavaScript to show the results of various method calls.
Prompt validation:
This sample demonstrates using JavaScript to validate the content of prompt values entered by the user.
Save csv:
This sample report uses JavaScript to allow the user to render a report as a CSV file.
Related posts:
IBM Knowledge Center: Adding JavaScript to a report
Technote: Adding JavaScript to reports
JavaScript support in the Interactive Viewer
Video: Overview: Scriptable reports (11.0.4+)
How to use a custom control with JavaScript to hide and show a filter panel in IBM #Cognos Analytics 11.0.7+
Samples landing page
Guide to IBM Cognos Analytics sample data sets
Library of How-To Videos for IBM Cognos Analytics
Please visit our
IBM Business Analytics Support
channel on
YouTube
.
Tags:
#Tutorials
#Tips
#Cognos Analytics
#JavaScript
#reporting
#Resources
#Expert Post
#Scriptable report
#Support
#11.0.10
#samples
#CognosAnalyticswithWatson
#home
#LearnCognosAnalytics
#Notebook
0 comments
139 views
Permalink
IBM Community Home
Browse
Discussions
Resources
Groups
Events
IBM TechXchange Conference 2023
IBM Community Webinars
All IBM Community Events
Participate
Gamification Program
Community Manager's Welcome
Post to Forum
Share a Resource
Blogging on the Community
All IBM Community Users
Resources
Community Front Porch
IBM Champions
IBM Cloud Support
IBM Documentation
IBM Support
IBM Technology Zone
IBM Training
Marketplace
Marketplace
Business Analytics
Topic areas
Cognos Analytics
Cognos Controller
Global Business Analytics
Planning Analytics
User groups
Events
Upcoming Business Analytics Events
IBM TechXchange Webinars
All IBM TechXchange Community Events
Participate
Community Manager's Welcome
Gamification Program
Post to Forum
Share a Resource
Share Your Expertise
Blogging on the Community
Connect with Business Analytics Users
All IBM TechXchange Community Users
Resources
IBM TechXchange Group
Data and AI Learning
IBM Champions
IBM Cloud Support
IBM Documentation
IBM Support
IBM Support 101
IBM Technology Zone
IBM Training
TechXchange Conference
IBM TechXchange Conference 2024
Marketplace
Marketplace
Powered by Higher Logic