ABSTRACT INTRODUCTION THE ODS TAGSET FACILITY

Similar documents
Building Mashups Using the ArcGIS APIs for FLEX and JavaScript. Shannon Brown Lee Bock

Multiple Graphical and Tabular Reports on One Page, Multiple Ways to Do It Niraj J Pandya, CT, USA

SAS Web Infrastructure Kit 1.0. Overview

COPYRIGHTED MATERIAL. Part I: Getting Started. Chapter 1: Introducing Flex 2.0. Chapter 2: Introducing Flex Builder 2.0. Chapter 3: Flex 2.

FlexJS. OmPrakash Apache Flex PMC Member Advisory Software Engineer, IBM

SAS Web Infrastructure Kit 1.0. Overview, Second Edition

ABSTRACT MORE THAN SYNTAX ORGANIZE YOUR WORK THE SAS ENTERPRISE GUIDE PROJECT. Paper 50-30

Interactive Graphs from the SAS System

Using Adobe Flex in JSR-286 Portlets

ODS TAGSETS - a Powerful Reporting Method

ODS in an Instant! Bernadette H. Johnson, The Blaze Group, Inc., Raleigh, NC

Using Flex 3 in a Flex 4 World *

Enterprise Client Software for the Windows Platform

Calendar Management A Demonstration Application of TopBraid Live

Overview 14 Table Definitions and Style Definitions 16 Output Objects and Output Destinations 18 ODS References and Resources 20

Enterprise Guide Version 2.0 for Windows

Chapter 28 Saving and Printing Tables. Chapter Table of Contents SAVING AND PRINTING TABLES AS OUTPUT OBJECTS OUTPUT OBJECTS...

Paper AD12 Using the ODS EXCEL Destination with SAS University Edition to Send Graphs to Excel

SAS Enterprise Guide 3.0 for Windows

Perceptive Process Mining

APPENDIX 2 Customizing SAS/ASSIST Software

Getting Started. Most likely, if you ve purchased a copy of Adobe Flash CS3 Professional, Introducing Adobe Flash CS3 Professional 3

AppDev StudioTM 3.2 SAS. Migration Guide

SOLO NETWORK. Adobe Flash Catalyst CS5.5. Create expressive interfaces and interactive content without writing code

Using the SAS Add-In for Microsoft Office you can access the power of SAS via three key mechanisms:

Lesson 4. What You Will Learn. Approximate Time This lesson takes approximately 45 minutes to complete. Lesson Files

Tieflow Workflow Toolkit Flash Simulator

Developing SAS Studio Repositories

When Simpler is Better Visualizing Laboratory Data Using SG Procedures Wei Cheng, Isis Pharmaceuticals, Inc., Carlsbad, CA

SAS/IntrNet 9.2. Xplore Sample Web Application. SAS Documentation

SAS 9.4 Foundation Services: Administrator s Guide

Flex 3 Pre-release Tour

CUSTOMIZING GUIDES USING ADOBE FLASH BUILDER. Note, this document will be updated for version 10.0 soon.

Exporting Variable Labels as Column Headers in Excel using SAS Chaitanya Chowdagam, MaxisIT Inc., Metuchen, NJ

Getting Started with the SAS 9.4 Output Delivery System

ADOBE CONNECT 8 Collaboration Builder Toolkit SDK

Using SAS/GRAPH Software to Create Graphs on the Web Himesh Patel, SAS Institute Inc., Cary, NC Revised by David Caira, SAS Institute Inc.

SAS/IntrNet 9.2. Overview. SAS Documentation

SAS 9.2 Foundation Services. Administrator s Guide

SAS Forecast Server 3.1. Administrator s Guide to Report Administration Tasks

Making a SYLK file from SAS data. Another way to Excel using SAS

Ver.2.0. Clicking the radio button for Diagrams II / Parts List on the menu bar displays the initial screen as shown below.

Digital Ad Slate for XMP

Adobe LiveCycle ES and the data-capture experience

SAS. Studio 4.1: User s Guide. SAS Documentation

SAS Theme Designer 3.1 for Flex

What s New in SAS Studio?

SAS Solutions for the Web: Static and Dynamic Alternatives Matthew Grover, S-Street Consulting, Inc.

JUGAT Adobe Technology Platform for Rich Internet Applications

Easing into Data Exploration, Reporting, and Analytics Using SAS Enterprise Guide

Delivering Information to the People Who Need to Know Carol Rigsbee, SAS Institute Chris Hemedinger, SAS Institute

Using Cross-Environment Data Access (CEDA)

Delivering Information to the People Who Need to Know Carol Rigsbee, SAS Institute Chris Hemedinger, SAS Institute

Tips and Techniques for Designing the Perfect Layout with SAS Visual Analytics

SAS/GRAPH Introduction. Winfried Jakob, SAS Administrator Canadian Institute for Health Information

ABSTRACT: INTRODUCTION: WEB CRAWLER OVERVIEW: METHOD 1: WEB CRAWLER IN SAS DATA STEP CODE. Paper CC-17

Professional outputs with ODS LATEX

Flex Data Services for Component Developers

Using Java to Front SAS Software: A Detailed Design for Internet Information Delivery

My Reporting Requires a Full Staff Help!

SAS/ASSIST Software Setup

SAS Activity-Based Management Software Release for Windows

Using Graph-N-Go With ODS to Easily Present Your Data and Web-Enable Your Graphs Curtis A. Smith, Defense Contract Audit Agency, La Mirada, CA

Business Intelligence Launch Pad User Guide SAP BusinessObjects Business Intelligence Platform 4.1 Support Package 1

SAS Publishing. Configure SAS. Forecast Server 1.4. Stored Processes

ODS EXCEL DESTINATION ACTIONS, OPTIONS, AND SUBOPTIONS

TACCIMO A CASE STUDY OF MIGRATING TO THE ARCGIS SERVER API FOR FLEX

Fall 2012 OASUS Questions and Answers

Forerunner Mobilizer Dashboards

SAS Theme Designer 4.7 for Flex

Permission Program. Support for Version 6 Only. Allowing SAS/SHARE Client Access to SAS Libraries or Files CHAPTER 40

JUGAT Flex 3. Christoph Atteneder. May Flash / Flex Development Technical Lead Adobe Systems Incorporated. All Rights Reserved.

Getting Started with the SAS 9.4 Output Delivery System

Adobe Flex Tutorial i

SAS Web Report Studio 3.1

SAS/IntrNet 9.3. Overview. SAS Documentation

Adobe Acrobat Family Digital editions

SAS Model Manager 15.1: Quick Start Tutorial

Storing and Reusing Macros

SAS IT Resource Management 3.8: Reporting Guide

Author. Publish. Use

Business Insight Authoring

Dreamweaver Domain 5: Organizing Content by Using Dreamweaver CS5

vsphere Web Client Extensions Programming Guide vsphere 5.1

PUBLISHING FLASH. Lesson Overview

An Introduction to ODS Tagsets

SAS INSTITUTE INC. WORLD HEADQUARTERS SAS CAMPUS DRIVE CARY, NC TEL: FAX: U.S. SALES:

Version 8 ODS (Output Delivery System)

Sage CRM 2017 R3 Release Notes. Updated: July 2017

Enterprise Miner Software: Changes and Enhancements, Release 4.1

Internet: An international network of connected computers. The purpose of connecting computers together, of course, is to share information.

HOW TO DEVELOP A SAS/AF APPLICATION

Integrating SAS Analytics into Your Web Page

Developing Ajax Web Apps with GWT. Session I

Give m Their Way They ll Love it! Sarita Prasad Bedge, Family Care Inc., Portland, Oregon

Getting started with WebSphere Portlet Factory V7.0.0

SAP BusinessObjects Dashboard Design Component SDK Installation Guide

1.1 Customize the Layout and Appearance of a Web Page. 1.2 Understand ASP.NET Intrinsic Objects. 1.3 Understand State Information in Web Applications

Application Enablement Services Documentation Road Map

TLFs: Replaying Rather than Appending William Coar, Axio Research, Seattle, WA

Transcription:

Graphs in Flash Using the Graph Template Language Himesh Patel, SAS Institute Inc., Cary, NC David Kelley, SAS Institute Inc., Cary, NC Dan Heath, SAS Institute Inc., Cary, NC ABSTRACT The Graph Template Language (GTL) offers many opportunities for application developers to package simple or complex custom-designed graphs into stand-alone template libraries. In SAS 9.2, users can generate static output only through Java rendering. Let s take a peek into future rendering through the use of Adobe Flash. You will be able to use your current GTL code to generate interactive graphs using Flash technology. Once data is visually analyzed, you will be able to publish the graphs in presentations or reports. INTRODUCTION This video poster assumes that users are familiar with the SAS Output Delivery System (ODS) and SAS/GRAPH software. Because most of the work involves Adobe Flash and Adobe Flex, it is critical to understand the technology on the surface. Adobe Flash Player is a run-time application that is written in ActionScript, or in the Flex markup language MXML, using Flex SDK. Flex is a collection of technologies that allow developers to develop crossplatform, rich Internet content. Running a Flash application requires a one-time Flash Player download. The Player can be downloaded for free from the Adobe Web site at www.adobe.com. You can define the required content as MXML, which is similar to XML, by creating a new ODS destination using a tagset. One caveat for using this method is that MXML must be compiled into an SWF file before it can be executed by Flash Player. THE ODS TAGSET FACILITY Languages such as HTML, XML, and MXML are called tag-based languages. Tags are nothing more than keywords that provide instructions. ODS has a facility called a tagset that enables users to create tag-based output from events generated from within SAS. These tagsets might extend existing tagsets that are shipped with SAS, or you can create a tagset that is completely stand-alone. Figure 1 shows the HTMLPANEL tagset, which is an example of a tagset extension that is shipped with SAS. This tagset extends the HTML4 tagset to enable users to create layouts in their HTML output. For more information about creating or extending tagsets, see the documentation on the SAS Web site. 1

Figure 1. Layout Using the HTMLPANEL Tagset Tagsets are used just like other ODS destinations. For example, if you were creating RTF output, you would open an RTF destination such as the following: ods rtf file= output.rtf ; If you were creating output using the HTMLPANEL tagset, the statement would be similar to that of the RTF destination: ods tagsets.htmlpanel file= output.html ; The tagset-based ODS destinations are closed in the same way as other destinations either by using the destination name or by using the _ALL_ directive: ods tagsets.htmlpanel close; Tagsets are stored in the same repository as table templates, graph templates, and ODS style templates. See Figure 2. To invoke the repository, type odstemplate (odst for short) into the command box of your DMS session. Expand the SASHELP.TMPLMST folder to see the template directories in Sashelp. One of these directories is named TAGSETS. If you click on that folder, you will see the tagsets that were shipped with SAS. If you doubleclick on any of these entries, the source for that tagset is displayed in a window. 2

Figure 2. The Templates Window Using the tagset concept, you can create a tagset to generate MXML output that can be compiled into SWF files that can be for displayed by Flash Player. These SWF files can then be embedded into an Internet browser window to provide rich content. Figure 3 shows an overview of how the user can generate Flash content from ODS. Once you define the tagsets, you can compile them using the TEMPLATE procedure. Your ODS program uses the defined tagset name to access the tags and to generate the MXML file. This MXML file looks similar to an XML file, but it contains specific tags that are understood by the Flex compiler. You must use the Flex compiler to compile the MXML file and to produce an SWF file, which contains the byte code to execute the program. The SWF file can be viewed using Flash Player, or the SWF file can be embedded in an HTML page. 3

ODS Report in Flash Provided by SAS or User-Written Tagset PROC TEMPLATE Compile Generated Tag set SAS Program Generated SWF File that Can Be Viewed Using Flash Plug-In Generated MXML Compiled from SAS Figure 3. Overview Diagram Basic Graphs and Tables Using Flex Graphs SAS has generated a rendering library for graphs that are defined using GTL. For research purposes, SAS has developed an internal tagset to generate MXML code for Flash output. To view the output in Flash, you must compile the MXML code into byte code. Internally, code was added to invoke the Flash compiler to compile the MXML code into an SWF file. Tables are rendered using Flex components, and graphs are rendered using the SAS Flex rendering library. Figure 4 shows a charting package that is bundled with Adobe Flex SDK. ODS is generating the MXML tagset to represent the graph and the table. 4

Figure 4. Output Using Flex Graphing Package Generated MXML must be compiled into an SWF file, which is the binary format that can then be embedded into the HTML file as Flash content. The charting package that is shipped with Adobe Professional is not ideal for SAS customers because it doesn t have all the features and functionality that is in Graph Template Language (GTL). An Adobe table is used to show the output from the PRINT procedure. To support all GTL functionality, SAS has developed a Flex graphing package that contains default interactive features, such as zoom, scroll, and data tips. ODS Tagset Using Flex Graphing Package GTL is very feature-rich. The current package that is shipped with Flex does not support all of the possible graphs that users can generate. To support future renderings of graphs that are generated by GTL, SAS is developing a Flex charting library that can understand MXML that is based on GTL to render graphs. To make use of SAS graphing library, we will need to produce mxml that is GTL based. Because the graphs are provided by SAS, certain interactions with graphs are set by default. Interactions such as zoom, scroll, data tips, and interactions with the user interface are provided as default settings. Figure 5 shows the use of the SAS Flex Graphing package to generate output from the HPF procedure. 5

Figure 5. HPF Procedure Output Using Flex Graphing Package Note the zoom scroll slider at the bottom of the graph. This type of interaction is provided by default. Flex has rich table functionality, and the Flex data grid table displays the output. Data Brushing Brushing is another feature that is being used between the graph and the table. To use brushing between graphs or between a graph and a table, you must ensure that the data sources are the same. Currently, to ensure that the data sources are the same and for prototyping purposes, we have added an option that enables the brushing feature. CONCLUSION Generating MXML tags to render graphs and tables in Flash has advantages and disadvantages. Because MXML must be compiled into an SWF file, users must have access to the Flex compiler. This requirement might not be ideal for all users. It would be ideal if SAS could provide a rich content that is similar to that of ActiveX, with a simple switch, such as DEVICE=FLEX. SAS continues to develop optimal solutions for users so they can easily generate Flex content that takes advantage of rich features that Flex provides, such as brushing across multiple graphs or tables. RECOMMENDED READING For information about Adobe and Flash downloads, visit http://www.adobe.com/. CONTACT INFORMATION Your comments and questions are valued and encouraged. Contact the author at: Himesh Patel SAS Institute Inc. SAS Campus Dr. Cary, NC 27513 E-mail: Himesh.Patel@sas.com 6

SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and product names are trademarks of their respective companies. 7