Embed BA into Web Applications



Similar documents
Embed BA into Web Applications

Learn About Analysis, Interactive Reports, and Dashboards

Install BA Server with Your Own BA Repository

Upgrading From PDI 4.0 to 4.1.0

Contents. Pentaho Corporation. Version 5.1. Copyright Page. New Features in Pentaho Data Integration 5.1. PDI Version 5.1 Minor Functionality Changes

Upgrading From PDI 4.1.x to 4.1.3

Pentaho Data Integration Administrator's Guide

Altiris IT Analytics Solution 7.1 SP1 from Symantec User Guide

An Oracle White Paper May Creating Custom PDF Reports with Oracle Application Express and the APEX Listener

Sisense. Product Highlights.

Deploying Intellicus Portal on IBM WebSphere

SQL Server 2005 Reporting Services (SSRS)

Predictive Analytics Client

Crystal Server Upgrade Guide SAP Crystal Server 2013

Create Analysis, Interactive Reports, and Dashboards

docs.hortonworks.com

ios Deployment Simplified FileMaker How To Guide

8.7. Resource Kit User Guide

InfoView User s Guide. BusinessObjects Enterprise XI Release 2

NSi Mobile Installation Guide. Version 6.2

DameWare Server. Administrator Guide

Quick start. A project with SpagoBI 3.x

This Readme includes information pertaining to Novell Service Desk 7.0.

VERITAS Backup Exec TM 10.0 for Windows Servers

Administration Quick Start

User Document. Adobe Acrobat 7.0 for Microsoft Windows Group Policy Objects and Active Directory

Oracle Business Intelligence Enterprise Edition Plus and Microsoft Office SharePoint Server. An Oracle White Paper October 2008

TelePresence Migrating TelePresence Management Suite (TMS) to a New Server

Enterprise Vault Installing and Configuring

TIBCO ActiveMatrix BPM Integration with Content Management Systems Software Release September 2013

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

Software Development Kit

Veritas Cluster Server Database Agent for Microsoft SQL Configuration Guide

HP Business Availability Center

An Oracle White Paper March Integrating the SharePoint 2007 Adapter with WebCenter Spaces ( & )

IBM Configuring Rational Insight and later for Rational Asset Manager

TIBCO ActiveMatrix BPM - Integration with Content Management Systems

SOA Software API Gateway Appliance 7.1.x Administration Guide

Installing and Configuring DB2 10, WebSphere Application Server v8 & Maximo Asset Management

TIBCO Spotfire Automation Services 6.5. User s Manual

Set Up BA Server and Tools

System Administration Training Guide. S100 Installation and Site Management

TIBCO ActiveMatrix BusinessWorks Plug-in for TIBCO Managed File Transfer Software Installation

Symantec Backup Exec TM 11d for Windows Servers. Quick Installation Guide

Novell ZENworks Asset Management 7.5

Adobe Acrobat 9 Deployment on Microsoft Windows Group Policy and the Active Directory service

TAO Installation Guide v0.1. September 2012

SAP BusinessObjects Business Intelligence Platform Document Version: 4.1 Support Package Business Intelligence Launch Pad User Guide

Mindjet on-premise Installation Instructions for Microsoft SharePoint 2007

TIBCO Spotfire Server Deployment and Administration

TIBCO Spotfire Automation Services 6.5. Installation and Deployment Manual

Installation Guide. Novell Storage Manager for Active Directory. Novell Storage Manager for Active Directory Installation Guide

Product Manual. MDM On Premise Installation Version 8.1. Last Updated: 06/07/15

HP Service Manager. Software Version: 9.40 For the supported Windows and Linux operating systems. Application Setup help topics for printing

Dell One Identity Cloud Access Manager How to Configure Microsoft Office 365

NETWRIX EVENT LOG MANAGER

WebSphere Business Monitor

SOLARWINDS ORION. Patch Manager Evaluation Guide for ConfigMgr 2012

Reading multi-temperature data with Cúram SPMP Analytics

fåíéêåéí=péêîéê=^çãáåáëíê~íçêûë=dìáçé

Sophos for Microsoft SharePoint Help. Product version: 2.0

TIBCO Spotfire Metrics Prerequisites and Installation

Embedded Document Accounting Solution (edas) for Cost Recovery. Administrator's Guide

Google Drive. Administrator's Guide

Installing and Configuring vcloud Connector

Getting Started with the Ed-Fi ODS and Ed-Fi ODS API

The cloud server setup program installs the cloud server application, Apache Tomcat, Java Runtime Environment, and PostgreSQL.

Python for Series 60 Platform

Teamstudio USER GUIDE

Citrix Systems, Inc.

PingFederate. Identity Menu Builder. User Guide. Version 1.0

Altiris Patch Management Solution for Windows 7.1 from Symantec Release Notes

Tutorial for Avaya 4600 and 9600 Series IP Telephones Push and Browser Applications Setup

TSM Studio Server User Guide

How To Load Data Into An Org Database Cloud Service - Multitenant Edition

BusinessObjects Enterprise InfoView User's Guide

Version 1.0 January Xerox Phaser 3635MFP Extensible Interface Platform

Application Note. Gemalto s SA Server and OpenLDAP

HP Intelligent Management Center v7.1 Virtualization Monitor Administrator Guide

Web Dashboard User Guide

Dell One Identity Cloud Access Manager How to Configure for SSO to SAP NetWeaver using SAML 2.0

NETWRIX FILE SERVER CHANGE REPORTER

Dell Statistica Statistica Enterprise Installation Instructions

PingFederate. Salesforce Connector. Quick Connection Guide. Version 4.1

Security Analytics Engine 1.0. Help Desk User Guide

Chapter 10 Encryption Service

SAP BusinessObjects Query as a Web Service Designer SAP BusinessObjects Business Intelligence platform 4.0

Business Portal for Microsoft Dynamics GP Key Performance Indicators

ProjectWise Mobile Access Server, Product Preview v1.1

LAE 5.1. Windows Server Installation Guide. Version 1.0

NetIQ Identity Manager Identity Reporting Module Guide

Citrix Systems, Inc.

Contents Notice to Users

Adaptive Log Exporter Users Guide

IBM TRIRIGA Anywhere Version 10 Release 4. Installing a development environment

FileMaker Security Guide The Key to Securing Your Apps

Business Process Management IBM Business Process Manager V7.5

FileMaker Server 11. FileMaker Server Help

Transcription:

Embed BA into Web Applications

This document supports Pentaho Business Analytics Suite 5.0 GA and Pentaho Data Integration 5.0 GA, documentation revision June 15, 2014, copyright 2014 Pentaho Corporation. No part may be reprinted without written permission from Pentaho Corporation. All trademarks are the property of their respective owners. Help and Support Resources If you do not find answers to your quesions here, please contact your Pentaho technical support representative. Support-related questions should be submitted through the Pentaho Customer Support Portal at http://support.pentaho.com. For information about how to purchase support or enable an additional named support contact, please contact your sales representative, or send an email to sales@pentaho.com. For information about instructor-led training, visit http://www.pentaho.com/training. Liability Limits and Warranty Disclaimer The author(s) of this document have used their best efforts in preparing the content and the programs contained in it. These efforts include the development, research, and testing of the theories and programs to determine their effectiveness. The author and publisher make no warranty of any kind, express or implied, with regard to these programs or the documentation contained in this book. The author(s) and Pentaho shall not be liable in the event of incidental or consequential damages in connection with, or arising out of, the furnishing, performance, or use of the programs, associated instructions, and/or claims. Trademarks Pentaho (TM) and the Pentaho logo are registered trademarks of Pentaho Corporation. All other trademarks are the property of their respective owners. Trademarked names may appear throughout this document. Rather than list the names and entities that own the trademarks or insert a trademark symbol with each mention of the trademarked name, Pentaho states that it is using the names for editorial purposes only and to the benefit of the trademark owner, with no intention of infringing upon that trademark. Third-Party Open Source Software For a listing of open source software used by each Pentaho component, navigate to the folder that contains the Pentaho component. Within that folder, locate a folder named licenses. The licenses folder contains HTML.files that list the names of open source software, their licenses, and required attributions. Contact Us Global Headquarters Pentaho Corporation Citadel International, Suite 340 5950 Hazeltine National Drive Orlando, FL 32822 Phone: +1 407 812-OPEN (6736) Fax: +1 407 517-4575 http://www.pentaho.com Sales Inquiries: sales@pentaho.com

TOC 3 Contents Introduction...4 Prerequisites...5 Integration Samples...6 Integrating BA Server Functionality... 7 Reporting Samples... 7 Publish a File to the BA Server...8 Analyzer Samples...8 Interactive Reporting Samples...9 Action Sequence Samples...9 Repository and Scheduler REST APIs... 9 Integrating Pentaho Mobile for OEM Software Vendors...10 Configuring the Proxy Trusting Filter... 10 Security Integration...11 Developer Support...12 License Information... 13

Introduction Introduction 4 This document is intended for developers with HTML and JavaScript experience. It explains ways to integrate BA Server functionality and content into your own web application.

Prerequisites Prerequisites 5 This document assumes you have a correctly installed and configured Pentaho BA Server EE running locally on your machine. It also assumes you know how to start and stop the server if necessary. Please refer to the following sections for help with installing, configuring and administering a Pentaho BA server: Install Pentaho Software Configure Pentaho Systems Fine-Tune Pentaho Systems

Integration Samples Integration Samples 6 This document comes with a set of sample web pages that show ways to integrate BA Server functionality and content into your web application. This document describes the techniques used by the various samples, so we recommend you deploy the samples on your BA Server when following this document. Obtaining the Samples The samples are packaged into a file named pentaho-sdk.zip accessible for download in your Customer Support Portal. The readme file contains the information for deployment. Deploying the Samples To deploy the samples to your Pentaho server, follow these steps: Stop the BA Server. Run SDK > Installer.bat (or the corresponding script for your OS) to uncompress these two folders to your selected location: the integration-examples folder and platform-plugins. Copy the integration-examples directory to your biserver-ee/tomcat/webapps directory. Open the platform-plugins directory and copy these two folders: example-visualization and oem-tools. Paste them into the biserver-ee---check--{{contentvars.bavernum}}.x.x/biserver-ee/pentahosolutions/system directory. Restart the BA Server. The samples are deployed and can be accessed by opening a web browser and navigating to http:// localhost:8080/integration-examples. If you want to access the OEM tools, browse to http://localhost:8080/pentaho/content/oem-tools/ resources/web/index.html. If you want to access the example-visualization, look under the Charts menu in Analyzer. It will be listed as Example KPI.

Integrating BA Server Functionality Integrating BA Server Functionality 7 To deliver content as well as expose various services, we use a REST web interface. These sections comment on the various samples and how they use the REST URLs. For the full reference of the Pentaho REST API, please refer to http://javadoc.pentaho.com. General Notes The REST APIs often allow interaction with repository files. The REST API expects references to repository files to be specified using the : character as file separator. Reporting Samples Executing a report from a HTML form (POSTing parameters) This sample renders a prpt report by posting the report parameters to the report REST URL: http://localhost:8080/pentaho/api/repos/<path>/generatedcontent The POST request contains all parameters the report expects, plus the additional rendering parameter output-type, which controls the rendering format (HTML, PDF, XLS, etc.) The following output formats are supported: Option table/html;page-mode=stream table/html;page-mode=page application/vnd.openxmlformatsofficedocument.spreadsheetml.sheet;page-mode=flow table/excel;page-mode=flow table/csv;page-mode=stream table/rtf;page-mode=flow pageable/pdf pageable/text pageable/xml table/xml pageable/x-awt-graphics;image-type=png mime-message/text/html Purpose HTML as a single page, all report pagebreaks are ignored. HTML as a sequence of physical pages, manual and automatic pagebreaks are active. Excel 2007 XLSX Workbook Excel 97 Workbook CSV output Rich text format PDF output Plain text Pageable layouted XML Table-XML output A single report page as PNG. MIME email with HTML as body text and all style and images as inline attachments. Rendering a report in an IFRAME This sample renders a prpt report using a regular GET request, by populating an HTML IFRAME with the report REST URL: http://localhost:8080/pentaho/api/repos/<path>/generatedcontent?<parameters> The request contains all parameters as part of the URL. Rendering report viewer with available parameters and executed report The sample renders the Pentaho Report Viewer IU by populating an HTML IFRAME with the report REST URL:

http://localhost:8080/pentaho/api/repos/<path>/viewer?<parameters> The request contains the initial report parameters as part of the URL. Integrating BA Server Functionality 8 Publish a File to the BA Server Follow this process if you want to publish a file to the BA Server: Click the link that publishes a file to the BA Server: http://localhost:8080/api/repo/publish/publishfile. This publishes the file to the provided path in the repository. Note that the file will be overwritten if the overwrite flag is set to true. Table 1: Parameters Name Description Type Default pathid (colon separated path for the repository file) formdata false filecontents (input stream containing the data) formdata false overwritefile (flag to determine whether to overwrite the existing file in the repository or not) formdata false fileinfo (information about the file being imported) formdata false Sample code for reference purposes can be found at --check--github - PublishRestUtil.java {{contentvars.bavernum}}>. The file is now published to the BA Server and is available to users. Analyzer Samples Displaying a report in viewer mode This sample renders a xanalyzer report using a regular GET request, by populating an HTML IFRAME with the report REST URL: http://localhost:8080/pentaho/api/repos/<path>/viewer The viewer has limited possibilities for interaction and does not allow changing the report. Displaying a report in editor mode The sample renders the report with full Analyzer IU by populating an HTML IFRAME with the report REST URL: http://localhost:8080/pentaho/api/repos/<path>/editor The IFRAME now renders the full Analyzer user interface, allowing users to interact with the data. Creating a new report The sample prepares a new report by populating an HTML IFRAME with the report REST URL: http://localhost:8080/pentaho/api/repos/xanalyzer/editor? catalog=<schema>&cube=<cubename> The mandatory catalog and cube parameters specify the analysis schema and cube to use for the new report. Integrating into a custom web application via an IFRAME The sample opens a new page that mimics a parent application that integrates Analyzer using an IFrame. The parent application has a set of buttons interacting with the Analyzer UI in the embedded IFRAME. Studying this page is a good starting point, if you are trying to deeply integrate analyzer into your own web application.

Integrating BA Server Functionality 9 Specifying the select schema service The sample is opened with a specified data service. http://localhost:8080/pentaho/api/repos/xanalyzer/service/selectschema After a data service is selected, the sample opens and shows an unsaved Analyzer report using that data service. Interactive Reporting Samples Displaying an interactive report This sample renders a prpti report using a regular GET request, by populating an HTML IFRAME with the report REST URL: http://localhost:8080/pentaho/api/repos/<path>/prpti.view The viewer has limited possibilities for interaction and does not allow changing the report. You can use the prpti.edit end-point instead, to allow more user interaction. Creating a new interactive report The sample prepares a new report by populating an HTML IFRAME with the report REST URL: http://localhost:8080/pentaho/api/repos/pentaho-interactive-reporting/prpti.new Users will be prompted to select the datasource they want to work with. Integrating into a custom web application via an IFRAME The sample opens a new page that mimics a parent application that integrates the Interactive Reporting editor using an IFrame. The parent application has a set of buttons interacting with the Interactive Reporting UI in the embedded IFRAME. Studying this page is a good starting point, if you are trying to deeply integrate Interactive Reporting into your own web application. Action Sequence Samples Running an action sequence to generate a report This sample renders an xaction report using a regular GET request, by populating an HTML IFRAME with the report REST URL: http://localhost:8080/pentaho/api/repos/<path>/generatedcontent?<parameters> The parameters for the xaction are passed as simple GET parameters on the URL. Running an action sequence to generate a report with prompts The sample prepares a form to collect parameters and POSTs them to the xaction REST URL: http://localhost:8080/pentaho/api/repos/<path>/generatedcontent The xaction now retrieves its parameters from the POST request body. Repository and Scheduler REST APIs This sample is an interactive page that showcases the use of repository and scheduler REST services. The samples cover the following topics: Repository Service exporting content browsing

Integrating BA Server Functionality 10 access control creating directories deleting content Scheduler Service listing jobs creating jobs triggering jobs deleting jobs Integrating Pentaho Mobile for OEM Software Vendors Pentaho uses Sencha Touch as a framework for building navigation features for our mobile product. If you are an independent software vendor who wants to create your own mobile application that integrates with Pentaho Mobile, you can use Sencha Touch or any other mobile SDK that meets your needs. These instructions use Sencha Touch. If you have chosen another mobile SDK, replace all references to Sencha Touch with the appropate SDK. These instructions specify Sencha Touch. If you have chosen to use a different Mobile SDK, replace all references to Sencha Touch with the alternate Mobile SDK. 1. Extract and install the pentaho-mobile-plugin to pentaho-solutions/system. 2. Download the sencha-touch-2.0.1.1-commercial.zip file and extract it to a temporary folder. See http:// www.sencha.com/products/touch/download/ for more information. 3. From the extracted files in the temporary folder, copy these files. /sencha-touch-2.0.1.1/resources/css/apple.css /sencha-touch-2.0.1.1/sencha-touch.js /sencha-touch-2.0.1.1/sencha-touch-all.js /sencha-touch-2.0.1.1/sencha-touch-all-debug.js /sencha-touch-2.0.1.1/sencha-touch-debug.js 4. Paste the copied files into the mobile plugin touch folder: /pentaho-solutions/system/pentaho-mobileplugin/resources/touch. 5. Ensure that the BA Server is running. It is not necessary to restart the BA server. Access your content on an ipad by opening a web browser and entering http://<hostname:portnumber>/pentaho/. Configuring the Proxy Trusting Filter If you have set the BA Server to run on a specific IP address or hostname other than the default 127.0.0.1, you must modify the trusted proxy between the BA Server and Pentaho Enterprise Console to match that address or hostname. 1. Stop the BA Server. 2. Open biserver-ee/tomcat/webapps/pentaho/web-inf/web.xml and search for TrustedIpAddrs. Note: The param-value immediately below TrustedIpAddrs is a comma-separated list of IP addresses that should be trusted. <filter> <filter-name>proxy Trusting Filter</filter-name> <filter-class>org.pentaho.platform.web.http.filters.proxytrustingfilter</filterclass> <init-param> <param-name>trustedipaddrs</param-name> <param-value>127.0.0.1</param-value> <description>comma separated list of IP addresses of a trusted hosts.</ description> </init-param>

Integrating BA Server Functionality 11 </filter> 3. Add the IP address of the host machine. 4. Open enterprise-console/resource/config/console.xml and search for platform-username. 5. Change the default admin user name, (default is admin) to your desired admin user name. 6. Start the BA Server. Security Integration Pentaho relies on the Spring Security pluggable authentication framework. By default, the BA Server uses a JDBCbased data access object that is tied to a Jackrabbit database. Users and roles are configured through the Pentaho Enterprise Console, and content authorization is controlled by the BA Server administrator. However, you can easily configure the server to use existing security tables in a different database, or to authenticate through your existing LDAP (including Active Directory) server or Central Authentication Service. Pentaho's security is also extensible to the point that you can create your own custom data access object, or completely remove all authentication functionality.

Developer Support Developer Support 12 The examples in this section are simple and easy to follow, but with more complex requirements come more advanced programs. While reading the source code comments can help quite a bit, you may still need help to develop an application within a reasonable time-frame. Should you need personal assistance, you can have direct access to the most knowledgeable support resources through a Pentaho Enterprise Edition software vendor annual subscription: ISV/OEM support options If phone and email support are not enough, Pentaho can also arrange for an on-site consulting engagement: Consultative support options

License Information License Information 13 Most of the software comprising Pentaho Business Analytics is open source, licensed under the GNU General Public License version 2. Business Analytics also contains a large volume of third-party open source libraries that are licensed under a number of different licenses. Most of this software is freely redistributable, with the notable exceptions of the following Pentaho-authored programs: Dashboard Designer Analyzer Interactive Reporting Various individual BI Platform JARs If you already have regular Pentaho licenses for the BI Platform, Dashboard Designer, Interactive Reporting, and Analyzer, then no further licenses are required to integrate BA Server functionality into a third-party application. If you wish to embed pieces of the BA Server into an application that you intend to sell or distribute, you must familiarize yourself with the licenses of all of the pieces you are including in order to make sure you are complying properly. Proprietary Pentaho software may not be redistributed under any circumstances. This section is not intended for redistribution. However, the example code and example application that accompany this document may be freely modified or reused.