Adding Stored Functions to an idashboards Oracle Data Source

Similar documents
Data Source Connection

Workbooks (File) and Worksheet Handling

BASIC EXCEL SYLLABUS Section 1: Getting Started Section 2: Working with Worksheet Section 3: Administration Section 4: Data Handling & Manipulation

Oracle Application Express Plug-in for Ajax Maps: Map Integration the Easy Way

<excelunusual.com> Easy Zoom -Chart axis Scaling Using VBA - by George Lungu. < 1. Introduction: Chart naming: by George Lungu

Creating Automated Dashboard Excel 2013 Contents

Google Sheets API Connection

Download the files from you will use these files to finish the following exercises.

Contents I Introduction 1 Introduction to PL/SQL iii

Matisse Editor User Guide for MS Windows

User interface. Registration Boardroom OpenStage application. Stanislav Toman & Michal Cisárik

JUNE 2016 PRIMAVERA P6 8x, CONTRACT MANAGEMENT 14x AND UNIFIER 16x CREATING DASHBOARD REPORTS IN ORACLE BI PUBLISHER

Extracting the last word of a string Extracting all but the first word of a string Extracting first names, middle names, and last names Counting the

Microsoft Access 2010

Oracle Education Partner, Oracle Testing Center Oracle Consultants

PRODUCT MANUAL. idashboards Text Interface User's Manual. Version 8.5

PRODUCT MANUAL. idashboards Data Hub Manual. Version 9.6

Oracle Reports Developer 10g: Build Reports

Oracle Application Express Users Guide

Oracle Reports Developer 10g: Build Reports

Oracle SQL. murach s. and PL/SQL TRAINING & REFERENCE. (Chapter 2)

ORACLE DATABASE 12C INTRODUCTION

How to transfer data between BPMonline 7.x environments

Database Programming with PL/SQL

Monitoring and Evaluation Tool

Oracle V Table Schema Sql Script

HelpAndManual_unregistered_evaluation_copy NET Reports 3.0

Oracle Database: SQL and PL/SQL Fundamentals NEW

Steps for Building a Process Builder to work with Visual Workflow

PRODUCT MANUAL. idashboards Data Hub Manual. Version 9.5

QW5 -QWSQLWizard Overview

MyOra 6.0. SQL Tool for Oracle. User Guide

Configuration Guide xrm1 Data Grid CRM 2013, 2015, 2016 and CRM Online

Extending the Scope of Custom Transformations

PL / SQL Basics. Chapter 3

Hyperion Interactive Reporting Reports & Dashboards Essentials

download instant at

Greens Technology s Contact :

E-IT Look-up Tools and Reports

Server-side Web Programming

CRW DOCUMENTATION. The schema is a CoreTrac xml file that defines a set of databases to work with.

SBCUSD IT Training Program. MS Excel lll. VLOOKUPS, PivotTables, Macros, and More

Table of Contents. PDF created with FinePrint pdffactory Pro trial version

UAccess ANALYTICS A New Look, New Features, and New Functions

ORACLE: PL/SQL Programming

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Oracle Sql Describe Schemas Query To Find Database

Oracle Application Express

Connecting to a File-Based Data Source on a Network Drive

Excel: Basic Data Analysis. Tutor: Pan Hong Date: Sep 6, 2016

PL/SQL Developer 7.0 New Features. December 2005

Mysql Query Browser Export Table Structure

Technology Assignment: Scatter Plots

SQL: DML and Advanced Constructs Insert, Update, Delete, View, Index, Procedure, Transaction, Trigger

Select the Points You ll Use. Tech Assignment: Find a Quadratic Function for College Costs

Upgrade Developer Forms 4.5 to Oracle Forms 6. An Oracle Technical White Paper March 2000

You can import data from a CSV file into an existing table or to a new table. The steps are almost identical:

Importing source database objects from a database

ORACLE TRAINING CURRICULUM. Relational Databases and Relational Database Management Systems

Using the CRM Pivot Tables

RC201 Creating Data Forms in REDCap. Paul Litwin - Collaborative Data Services (CDS)

<Insert Picture Here> Oracle SQL Developer: PL/SQL Support and Unit Testing

Lookup Transformation in IBM DataStage Lab#12

idashboards Administrator s Manual Version 7.5

Managing Your Database Using Oracle SQL Developer

Oracle Database 10g: Advanced PL/SQL

Oracle 1z z0-146 Oracle Database 11g: Advanced PL/SQL. Practice Test. Version QQ:

AMP User Manual Tools Dropdown

Connect Databases to AutoCAD with dbconnect Nate Bartley Test Development Engineer autodesk, inc.

Update Table Schema Sql Server 2008 Add Column After

Oracle Database 11g: SQL and PL/SQL Fundamentals

Configuring the Teamify add-on

Oracle SQL Developer. Oracle TimesTen In-Memory Database Support User's Guide Release 4.0 E

using PL/SQL and APEX

Enterprise Reporting -- APEX

SelectSurvey.NET Basic Training Class 1

Oracle Sql Describe Schema Query To Find Table

COURSE DETAILS & CURRICULUM

DOCUMENT REVISION HISTORY

End User s Guide Release 5.0

Mysql Workbench Import Sql No Database. Selected >>>CLICK HERE<<<

USER MANUAL. Contents. Analytic Reporting Tool Basic for SUITECRM

Sage Intelligence Financial Reporting for Sage ERP X3 Report Designer: Oracle Setup Conversion Guidelines

Deccan Education Society s FERGUSSON COLLEGE, PUNE (AUTONOMOUS) SYLLABUS UNDER AUTONOMY. FIRST YEAR B.Sc. COMPUTER SCIENCE SEMESTER I

ADVANTAGES. Via PL/SQL, all sorts of calculations can be done quickly and efficiently without use of Oracle engine.

Pivot Tables in Excel Contents. Updated 5/19/2016

OSR Administration 3.7 User Guide. Updated:

IT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://

CptS 360 (System Programming) Unit 1: Introduction to System Programming

How to Use Full Pushdown Optimization in PowerCenter

MS-Access : Objective Questions (MCQs) Set 1

download instant at Introduction to C++

Excel Tip: How to create a pivot table that updates automatically

Distribution of Population Entry Scores by Domain Population-based Self-Sufficiency Outcomes Matrix Report

Reports 9i. Section Title Page

PROCEDURAL DATABASE PROGRAMMING ( PL/SQL AND T-SQL)

OneStop Reporting 4.5 OSR Administration User Guide

Unit 9 Spreadsheet development. Create a user form

WebIntelligence. Creating Documents

Models for Nurses: Quadratic Model ( ) Linear Model Dx ( ) x Models for Doctors:

Transcription:

Adding Stored Functions to an idashboards Oracle Data Source Introduction: idashboards only supports Oracle Functions when it comes to Oracle data sources. It is required for a function to result in at least two values in the form of a REF CURSOR. One output will be used for an x-axis and one output for a y-axis. More outputs can be configured for multiple y-axes. The return types can be: Integer Number String Date/Datetime Input arguments are supported but not necessarily required. Note that the input argument can be either Input mode or Input/Output mode. If an input argument is necessary for the function to work properly, idashboards can be forced to supply one. The return types can be: Integer Number String Date and Datetime data types are not supported as procedure arguments. In order to use Date data types, the Date needs to be passed into the function as a string and converted to a Date/Datetime within the function. If you re using Oracle as a Data Source, you ll need to add the following to the optional driver properties textbox of your respective Oracle data source in the Admin Application interface: oracle.jdbc.defaultnchar=true Function: Below are the steps to register and use an Oracle PL/SQL Function as an idashboards data source: Run the Following example code against your Oracle Database. You can do this either from the SQL command prompt or from an SQL editor. DROP TABLE data_test; CREATE TABLE data_test ( x NUMBER(5) NOT NULL primary KEY, x_squared NUMBER(10) NOT NULL, pivot NUMBER(5) NOT NULL ); 2014 idashboards. All rights reserved. 1

DECLARE x INTEGER := 1; y INTEGER; pivot INTEGER; FOR x IN 1..1001 LOOP y := x * x; pivot := ((x+50) / 100); INSERT INTO data_test VALUES(x, y, pivot); END LOOP; / COMMIT; CREATE OR REPLACE PACKAGE pkg AS TYPE ref_cursor IS REF CURSOR; FUNCTION y_equals_x_squared(lo_x IN NUMBER, hi_x IN NUMBER) RETURN ref_cursor; FUNCTION y_equals_x_squared(lo_x IN NUMBER, hi_x IN NUMBER, dummy IN NUMBER) RETURN ref_cursor; / show errors CREATE OR REPLACE PACKAGE BODY pkg AS FUNCTION y_equals_x_squared(lo_x IN NUMBER, hi_x IN NUMBER) RETURN ref_cursor IS c ref_cursor; OPEN c FOR SELECT * FROM data_test WHERE (lo_x IS NULL OR x >= lo_x) AND (hi_x IS NULL OR x <= hi_x); RETURN c; FUNCTION y_equals_x_squared(lo_x IN NUMBER, hi_x IN NUMBER, dummy IN NUMBER) RETURN ref_cursor IS c ref_cursor; OPEN c FOR SELECT * FROM data_test WHERE (lo_x IS NULL OR x >= lo_x) AND (hi_x IS NULL OR x <= hi_x); RETURN c; END PACKAGE pkg; To execute in command prompt: @y_equals_x_squared(x,y); 2014 idashboards. All rights reserved. 2

To register this function so it is available in the Data Sources window of the user application: 1. Add the Oracle Date Source in the idashboards Admin application. 2. Click on the Procedures tab against the Oracle data source and select Function from the dropdown list. Click the Add Procedure button. Refer to Figure1 below. Figure 1 3. Configure the function Output Columns and Procedure Arguments in the idashboards data source to correspond to the function created in the database. Name the idashboards ProcedureName pkg.y_equals_x_squared using the proper schema Owner. Refer to Figure below. Figure 2 2014 idashboards. All rights reserved. 3

4. Now to create a chart, f rom the data source type panel on the left select the Stored Procedures Option. From the list of stored procedures available under your Oracle data source, pick the pkg.y_equals_x_squared. 5. Create a chart with x-axis x and 2 y-axis, y-axis1 as x_squared and y-axis2 as pivot. 6. Since the function created in the database requires two input arguments, create two numeric input parameters - lo_x and hi_x. In the input parameters tab, create a chart parameter called lo_x and another called hi_x. Make sure these are static input parameters since in this case we want the user to provide the low and high values to the calculation. A picklist can also be used if necessary. 7. The arguments tab, will automatically show the input argument expected by the function. In the Value column, type in the parameter macro as ${param:lo_x} for argument lo_x and ${param:hi_x} for argument hi_x. Click Continue to select a chart type. Refer to Figure 3 below. Figure 3 8. Click Next to then to the Axis List tab where we can select what resulting data we want to display in the chart. Select all the columns on the left. 2014 idashboards. All rights reserved. 4

Figure 4 9. Then click Next to select the chart type. Select a Tabular Chart. Figure 5 2014 idashboards. All rights reserved. 5