Upload
vodiep
View
222
Download
2
Embed Size (px)
Citation preview
Vicky Lozovsky WF InfoAssist Product Manager
December 18th, 2013
The Best of InfoAssist in WebFOCUS 8
Subquery example created by Matthew Lerner
Agenda
Core Features: Hold Files Subqueries Within (Aggregation)
Document: Multi Page Documents & Dashboards
Chart: HTML5 Preview Interactive Chart Options New Chart Types (Parabox, Mekko, Streamgraph, and TagCloud) Lightweight Mapping
Hold Files
HOLD file is the output of a report request stored in a file that you can
use as input to another WebFOCUS procedure.
You can then create new report requests that extract data from the HOLD file, resulting in multi-step report.
Why use a HOLD file? Store virtual field values or summary values calculated in one request
for further processing in another request. Extract fields from a large data source for faster and more efficient
retrieval in subsequent requests.
Examples: Extract fields into a HOLD file and then create multiple components in
a Document from the HOLD file.
Hold Files
HOLD File options can be configured via InfoAssist Global Preferences:
WF Admin ConsoleUtilitiesInfoAssist Properties
Subquery Definition & Usage
Alternate way of returning data from multiple data sources Complex queries can be created with minimal effort Create new or use existing subquery Example: List of Customers who bought High Priced Products
WF_RETAIL_PRODUCT WF_RETAIL_CUSTOMER WF_RETAIL_SALES
Subquery Example
1. Get a list of High Priced Products from WF_RETAIL_PRODUCT 2. Get a list of customers from WF_RETAIL_SALES 3. Get customer’s names from WF_RETAIL_CUSTOMER
High Priced Products from WF_RETAIL_PRODUCT
Customers from WF_RETAIL_SALES
Customer’s names from WF_RETAIL_CUSTOMER
WF_RETAIL_PRODUCT WF_RETAIL_CUSTOMER WF_RETAIL_SALES
Filter HOLD FORMAT SQL_SCRIPT
ON TABLE HOLD AS script_name FORMAT SQL_SCRIPT Get a list of High Priced Products from WF_RETAIL_PRODUCT
TABLE FILE WF_RETAIL_PRODUCT
PRINT WF_RETAIL_PRODUCT.DIM_PRODUCT.ID_PRODUCT
WHERE WF_RETAIL_PRODUCT.DIM_PRODUCT.PRICE_RANGE_HL LIKE 'C:%';
ON TABLE HOLD AS HighPriceProducts FORMAT SQL_SCRIPT
END
Creates highpriceproducts.sql highpriceproducts.mas highpriceproducts.acx
Filter HOLD FORMAT SQL_SCRIPT
highpriceproducts.sql
SELECT (T1."ID_PRODUCT") AS E01 FROM wrd_product T1 WHERE (T1."PRICE_RANGE_HL" LIKE 'C:%')
highpriceproducts.mas
FILENAME=HIGHPRICEPRODUCTS, SUFFIX=SQLMSS , $ SEGMENT=PRODUCT_CODES, SEGTYPE=S0, $ FIELDNAME=ID_PRODUCT, ALIAS=E01, USAGE=I9, ACTUAL=I4, $
highpriceproducts.acx
SEGNAME=HIGHPRICEPRODUCTS, CONNECTION=retail, DATASET=RETAIL/HIGHPRICEPRODUCTS.SQL, SUBQUERY=Y, $
Filter DB_INFILE
Use the output from HOLD FORMAT SQL_SCRIPT as the target file for the DB_INFILE function.
The DB_INFILE function compares one or more field values in a source file to values in a target file. DB_INFILE(target_file, s1, t1, ... sn, tn) where: target_file Is the synonym for the target file. s1, ..., sn are fields from the source file. t1, ..., tn are fields from the target file. It returns the value 1 (TRUE) if the set of source fields matches a set of values from the target file. Otherwise, the function returns 0 (FALSE).
Filter List of Customer who bought High Priced Products
TABLE FILE WF_RETAIL_PRODUCT PRINT WF_RETAIL_PRODUCT.DIM_PRODUCT.ID_PRODUCT WHERE WF_RETAIL_PRODUCT.DIM_PRODUCT.PRICE_RANGE_HL LIKE 'C:%'; ON TABLE HOLD AS HighPriceProducts FORMAT SQL_SCRIPT END
TABLE FILE WF_RETAIL_SALES PRINT WF_RETAIL_SALES.FACT_SALES.ID_CUSTOMER WHERE DB_INFILE('HighPriceProducts',ID_PRODUCT,ID_PRODUCT); ON TABLE HOLD AS Customers FORMAT SQL_SCRIPT END
TABLE FILE WF_RETAIL_CUSTOMER PRINT WF_RETAIL_CUSTOMER.DIM_CUSTOMER.ID_CUSTOMER WF_RETAIL_CUSTOMER.DIM_CUSTOMER.FIRSTNAME WF_RETAIL_CUSTOMER.DIM_CUSTOMER.LASTNAME WHERE DB_INFILE('Customers',ID_CUSTOMER,ID_CUSTOMER); END
Filter List of Customer who bought High Priced Products
SQL (MS SQL Server, Generated by FOCUS): SELECT T1."ID_CUSTOMER", T1."First_Name", T1."Last_Name" FROM wrd_dim_customer T1 WHERE (T1."ID_CUSTOMER" IN ( SELECT (T1."ID_CUSTOMER") AS E01 FROM wrd_fact_sales T1 WHERE (T1."ID_PRODUCT" IN ( SELECT (T1."ID_PRODUCT") AS E01 FROM wrd_product T1 WHERE (T1."PRICE_RANGE_HL" LIKE 'C:%')))));
High Priced Products from WF_RETAIL_PRODUCT
Customers from WF_RETAIL_SALES
Customer’s names from WF_RETAIL_CUSTOMER
Within Aggregation
Handle specific aggregation features at different report levels by utilizing WITHIN phrase.
WITHIN phrase manipulates a display field values as they are aggregated within a sort group, rather than a report group.
Menu is located in the Display group on the Field tab.
Feature available in Release 8.0.0.4
Multi Page Documents & Dashboards
In Document mode, content can now be created on multiple pages
Available output formats are: PDF, HTML, Active Report, PowerPoint, Excel, Active PDF, and Active Flash
Active Report and Active Flash output formats: Combines multiple reports and charts into one document, resulting in
Active Dashboard
Excel: Combines multiple reports as different sheets in a workbook.
PowerPoint: Combines multiple reports, charts in a single slide.
Multi Page Documents & Dashboards
In Document mode, ability to create multiple pages
Create Demographics Page
Multi Page Documents & Dashboards
In Document mode, ability to create multiple pages
Create Sales Page
Interactive Chart Options
New properties surfaced in InfoAssist specific to HTML5 output
Intro Animation
Controls the display and duration of animation When enabled, risers and markers are animated when the chart
is drawn Mouse Over
Controls whether riser highlights when the mouse hovers over a particular riser.