14
Embedding CenterView and Hosting External Content

Embedding CenterView and Hosting External Content

Embed Size (px)

Citation preview

Embedding CenterView and Hosting External Content

Embedding CenterView

Integrate CenterView contentinto your environment

Outline

• Embedding Considerations • CenterView JavaScript Embedder• Microsoft SharePoint Web Part• CenterView Portlet

Embedding Considerations

Web Browser Requirements:• JavaScript must be enabled• Cookies must be enabled• if CenterView is not on the same domain as your

web application, third party cookies must be allowedCenterView Dashboards, Pages, and KPIs:• are directly accessible by URL• can be directly embedded in web pages using

iframes Pages and KPIs must be self-contained• if they require parameters to display correctly,

required parameters must be passed on the URL• parameters cannot be passed to Portlets/SharePoint

CenterView JavaScript Embedder

• JavaScript API for embedding CenterView Resources

• When should you embed dashboards, pages, or kpis?o Pros and Cons

• Documentation  • Example

CenterView Portlet

• Compliant with JSR 168 API• Requirements

o Java 1.5+o Portal Container using Servlet 2.4 APIo User must be logged-in

• Pages and KPIs can be displayed• Auth Plugin allows access to protected

resourceso Auth Plugin

com.corda.cvserver.auth.PortletPlugino Create users in both CenterView and Portal

• Documentation

Portal Integration

• Within your portal, you can display CenterView portlets. (The "look and feel" of a portlet can be based on a theme specified for the portlet.) 

• The portlet edit mode allows you to pick the kpi or page to display. 

• View mode shows the selected resource.

CenterView SharePoint Web Part

• Allows KPIs and Pages to be displayed in SharePoint

• Web Part installation• Adding a CenterView resource• Documentation • Active Directory integration

o Auth Plugin com.corda.cvserver.auth.SharepointPlugin

o Allows access to protected CenterView resourceso Resources can be tailored to the logged in usero Configuration

Hosting External Content

Host external content in CenterView dashboards

Session Outline

• CenterView hosts content in pages and kpis usingo Html Blockso Dashboard plugins

• Examples

Html Blocks

Example: embedding a YouTube video:

• Add an html tag to the page or kpi• Go to the Video• Copy the html fragment for embedding it• Paste it into the Content property for the html tag• Preview the dashboard and go to the page

Driving Embedded Content

Example: creating a YouTube video picker:

Add drop-down control to pick the video.Action on change, update the kpi and load the new video

Dashboard Plugins

Custom Java Classes to: • provide html content• pull data into CenterView from other sources• transform or process datafunnel data

Google Maps Plugin (included)• corda.GoogleMapPlugin• parameter help available in dialog• Key parameter needed for your domain (sign up with

Google) • Lat/Long is used to pick the map area• Plugin has some named definitions• Use same datafunnel format as CenterView's built in

maps