Top Banner
Connected Query and BI Publisher: a match made in heaven! 2017 HEUG Southeast Regional Track: General Interest Session Number: 7127 Date: Tue, Sep 19th, 2017 Time: 1:15 PM - 2:05 PM Presenter: Anna Kourouniotis
74

Connected Query and BI Publisher: a match made in heaven!

Mar 18, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Connected Query and BI Publisher: a match made in heaven!

Connected Query and BI

Publisher: a match made in

heaven!2017 HEUG Southeast Regional

Track: General Interest

Session Number: 7127

Date: Tue, Sep 19th, 2017

Time: 1:15 PM - 2:05 PM

Presenter: Anna Kourouniotis

Page 2: Connected Query and BI Publisher: a match made in heaven!

Data Administration Analyst

Office of the University Registrar, Duke University

Working in Higher Ed 7+ years

PeopleSoft user since 2014

Background in Student Records & Reporting

The Cookie Monster is my hero

Page 3: Connected Query and BI Publisher: a match made in heaven!

Standalone queries

Connected Query

BI Publisher RTF

Heavenly match

Page 4: Connected Query and BI Publisher: a match made in heaven!
Page 5: Connected Query and BI Publisher: a match made in heaven!

Located in Durham, NC

Main campus spans nearly 9,000 acres

~ 6,500 Undergraduate students

~ 8,300 Graduate/Professional students

~ 8,200 Administrative Staff

Page 6: Connected Query and BI Publisher: a match made in heaven!

PeopleSoft Campus Solutions 9.2

(upgraded in June 2017)

PeopleTools 8.55.14

Page 7: Connected Query and BI Publisher: a match made in heaven!

Connected Query Basics

XML Basics

Using Connected Query with BI Publisher

The Verdict

Page 8: Connected Query and BI Publisher: a match made in heaven!

Connected Query BasicsWhat is it?

Why use it?

What should we be aware of?

Standalone queries

Connected Query

BI Publisher RTF

Heavenly match

Page 9: Connected Query and BI Publisher: a match made in heaven!

A hierarchical object built with existing

PeopleSoft queries1.

Returns a data set that has parent-child

relationships.

A single row of data from a parent query

results in a set of rows in a child query. This

data is processed row by row and produces

structured data.

1: https://docs.oracle.com/cd/.../concept_UnderstandingConnectedQuery-257ec1.html

Page 10: Connected Query and BI Publisher: a match made in heaven!
Page 11: Connected Query and BI Publisher: a match made in heaven!

Facilitates left outer joins in a simple way.

Simplifies report writing in BI Publisher by:

Allowing users to create a single XML file that

contains data from a set of queries that are

linked with parent-child relationships.

Providing multiple representations of the same

data.

Page 12: Connected Query and BI Publisher: a match made in heaven!

No need for programmers to create SQRs or

PS Record Views!

Page 13: Connected Query and BI Publisher: a match made in heaven!

Parent-child relationship.

A connected query returns a hierarchical data

set in which data returned by child query is

filtered by the results of its immediate parent

query2.

2: https://docs.oracle.com/cd/E57990_01/pt853pbh2/eng/pt/tpsq/concept_UnderstandingConnectedQuery-257ec1.html#topofpage

Page 14: Connected Query and BI Publisher: a match made in heaven!

Parent Query: top level in a Connected

Query that has one or more child queries.

Child Query: has a single parent query; may

also serve as parent if it has child query.

Sibling Query: a child query that shares the

same parent query as other child queries at

the same level.

Page 15: Connected Query and BI Publisher: a match made in heaven!

Undergraduate Student Name

Parent Query

Phone Numbers

Child Query

Email Addresses

Child Query

Academic Plans

Child Query

How a standard query would be built

to account for left outer joined data

Page 16: Connected Query and BI Publisher: a match made in heaven!

Qu

ery

1

Query 2Query 5

Query 6

Query 3

Query 4

Page 17: Connected Query and BI Publisher: a match made in heaven!

Correct mapping of query fields.

Correct ordering of queries (proper joining).

Most basic information should be in the parent

query.

Each query must have one or more fields in

common with its parent.

Page 18: Connected Query and BI Publisher: a match made in heaven!

Private Connected Query

Used by single user (the creator).

Can include both private and public queries.

Public Connected Query

Used by any user.

Cannot include private queries.

Keep only the prompts that you plan on using;

delete the rest.

Page 19: Connected Query and BI Publisher: a match made in heaven!

Designing the queries is key!

Choose the Parent Query first; this must

contain the most basic information and it must

run properly (display results).

Page 20: Connected Query and BI Publisher: a match made in heaven!

XML BasicsWhat is it?

Page 21: Connected Query and BI Publisher: a match made in heaven!
Page 22: Connected Query and BI Publisher: a match made in heaven!

XML stands for Extensible Markup Language

A file with XML extension is a plain file that

describes the structure and storage of data.

XML files are formatted with tags, similar to

other markup language files like HTML.

<BEGIN_DATE>2016-08-29<BEGIN_DATE>

This is a tagData

element

inside the tag

Page 23: Connected Query and BI Publisher: a match made in heaven!

Using Connected Query

with BI PublisherConnected Query Quick Start

Connected Query Manager

BI Publisher Setup

RTF Template

Standalone queries

Connected Query

BI Publisher RTF

Heavenly match

Page 24: Connected Query and BI Publisher: a match made in heaven!

Prerequisite: Must have access to Connected

Query and BI Publisher.

Navigate to Main Menu > Reporting Tools >

Connected Query > Connected Query Quick

Start

Used only for creating a new connected

query.

Page 25: Connected Query and BI Publisher: a match made in heaven!

Step 1: Name

Page 26: Connected Query and BI Publisher: a match made in heaven!

Step 1: Name

Page 27: Connected Query and BI Publisher: a match made in heaven!

Step 2: Assign parent

Page 28: Connected Query and BI Publisher: a match made in heaven!

Step 2: Assign parent

Page 29: Connected Query and BI Publisher: a match made in heaven!

Step 3: Assign child

Page 30: Connected Query and BI Publisher: a match made in heaven!

Step 4: Map queries

Page 31: Connected Query and BI Publisher: a match made in heaven!

Step 4: Map queries

Page 32: Connected Query and BI Publisher: a match made in heaven!

Step 5: Preview

Page 33: Connected Query and BI Publisher: a match made in heaven!

Step 5: Preview

Page 34: Connected Query and BI Publisher: a match made in heaven!
Page 35: Connected Query and BI Publisher: a match made in heaven!
Page 36: Connected Query and BI Publisher: a match made in heaven!

Navigate to Main Menu > Reporting Tools >

Connected Query > Connected Query

Manager

Used to view, edit, copy, or schedule the

connected query.

Also used to download quickly a XML file for

uploading onto the BI Publisher RTF template.

Page 37: Connected Query and BI Publisher: a match made in heaven!

Deleting any query from Query Manager will

render the Connected Query nonfunctional,

Recreate the deleted query OR delete the

connected query and start over.

Page 38: Connected Query and BI Publisher: a match made in heaven!

All queries used in a Public Connected Query

must be set to “public” in Properties.

Page 39: Connected Query and BI Publisher: a match made in heaven!

Connected Query structure for the

example that follows

Page 40: Connected Query and BI Publisher: a match made in heaven!

Prerequisite: Must have BI Publisher desktop

add-in installed & Report Developer access.

Data Source Type = Connected Query.

Report Definition set up the same as standard

Query with template type of RTF.

Page 41: Connected Query and BI Publisher: a match made in heaven!

Data Source setup

Page 42: Connected Query and BI Publisher: a match made in heaven!

Report Definition

setup

Page 43: Connected Query and BI Publisher: a match made in heaven!

Report Definition

setup

Page 44: Connected Query and BI Publisher: a match made in heaven!

Report Definition

setup

Page 45: Connected Query and BI Publisher: a match made in heaven!

Main Menu > Reporting Tools > Connected Query > Connected Query Manager

Page 46: Connected Query and BI Publisher: a match made in heaven!

Sample Report

Page 47: Connected Query and BI Publisher: a match made in heaven!

Sample Report

Page 48: Connected Query and BI Publisher: a match made in heaven!

First year undergrad enrollment

Parent Query

Test Credits

Child Query

Page 49: Connected Query and BI Publisher: a match made in heaven!

RTF Template

Page 50: Connected Query and BI Publisher: a match made in heaven!

Parent Query:• Student Name, Emplid (mapped field)• Academic Program (mapped field)• Academic Career (mapped field)• Term admitted (mapped field)• Classes enrolled • Class days/times

Child Query:• Student Name, Emplid (mapped field)

• Academic Program (mapped field)• Academic Career (mapped field)• Term admitted (mapped field)• Test Credit• Course Equivalency

Page 51: Connected Query and BI Publisher: a match made in heaven!

RTF Template

section A

section B

section C

Page 52: Connected Query and BI Publisher: a match made in heaven!
Page 53: Connected Query and BI Publisher: a match made in heaven!
Page 54: Connected Query and BI Publisher: a match made in heaven!
Page 55: Connected Query and BI Publisher: a match made in heaven!
Page 56: Connected Query and BI Publisher: a match made in heaven!

Connected Query enables you to create a single XML file

based on a set of queries with parent-child relationships,

which can be used to create BI Publisher reports.

Page 57: Connected Query and BI Publisher: a match made in heaven!

Is connected query a good idea? If yes, then build it.

Query Design

Create the data source and report definition that will store the RTF template.

Run the XML through Connected Query Scheduler.

Source Design

Create the template using BI Publisher desktop.

Upload the XML file to the template.

Save the template in Report Definition.

Template Design

Run the report by using Query Report Scheduler.

Final Report

Page 58: Connected Query and BI Publisher: a match made in heaven!

PS Permission Role Description

Connected Query Developer Full access to Connected

Query applications.

Connected Query User Access to run, preview results,

and schedule a connected

query. Cannot modify existing

or create new Connected

Queries.

Page 59: Connected Query and BI Publisher: a match made in heaven!

The VerdictPros & Cons

Standalone queries

Connected Query

BI Publisher RTF

Heavenly match

Page 60: Connected Query and BI Publisher: a match made in heaven!

Are Connected Query and

BI Publisher a heavenly match?

Page 61: Connected Query and BI Publisher: a match made in heaven!

Pros Cons

Heavenly match

Page 62: Connected Query and BI Publisher: a match made in heaven!
Page 63: Connected Query and BI Publisher: a match made in heaven!

Anna Kourouniotis

Data Administration Analyst

Office of the University Registrar

Duke University

[email protected]

+1 (919) 668-1205

Page 64: Connected Query and BI Publisher: a match made in heaven!

This presentation is available

for download from the

Conference site at

https://www.heug.org/page

/us-alliance-conference-files

Note: Sessions from previous HEUG

conferences are also available.

Page 65: Connected Query and BI Publisher: a match made in heaven!

Supporting Materials

Page 66: Connected Query and BI Publisher: a match made in heaven!

Create parent and child queries separately in

Query Manager.

Design Connected Query

Create RTF template

Create Data Source and Report Definition

Schedule to run final report

Using Connected Query with BI Publisher

Page 67: Connected Query and BI Publisher: a match made in heaven!

How do you open a XML file?

Many programs can open this file type:

Notepad++https://notepad-plus-plus.org/download/v7.4.2.html

XML Notepad 2007https://www.microsoft.com/en-us/download/details.aspx?id=7973

XML Basics

Page 68: Connected Query and BI Publisher: a match made in heaven!
Page 69: Connected Query and BI Publisher: a match made in heaven!
Page 70: Connected Query and BI Publisher: a match made in heaven!

Conditional header/footer using sub-templates

Engineering students anyone with an

academic program of E-UGD

Non-engineering students anyone with an

academic program other than E-UGD

Bonus

Page 71: Connected Query and BI Publisher: a match made in heaven!

Final PDF Report

Page 72: Connected Query and BI Publisher: a match made in heaven!

Header

Footer

Page 73: Connected Query and BI Publisher: a match made in heaven!

Header 1

Footer 1

Header 2

Footer 2

RTF Sub-Template

Notes on sub-templates:

Create a separate RTF that includes

all the sub-templates you might use.

Save the RTF in Reporting Tools> BI

Publisher> Content Library

Enclose each sub-template with a

“template” and an “end template”

bracket.

In the main template, call the sub-

template by using the

“import:psxmlp://” statement

followed by the sub-template ID.

Page 74: Connected Query and BI Publisher: a match made in heaven!