640 likes | 780 Views
WebFOCUS for the layman Part 2. Steve Simon State Street Corporation. Who and what is our audience?. Business Analysts. WebFOCUS ‘newbie's’. Before we start, we shall have a quick review of:. Creating an adapter. Creating a synonym. Synonym. Data Adapter. Code. Master.
E N D
WebFOCUS for the laymanPart 2 Steve Simon State Street Corporation
Who and what is our audience? Business Analysts. WebFOCUS ‘newbie's’.
Before we start, we shall have a quick review of: Creating an adapter. Creating a synonym.
Synonym • Data Adapter • Code • Master How do the parts fit together? Access Excel SQL Server
What we shall examine during this hour Examining DRILL THROUGH reports. Examining GRAPHIC reports.
Implementing the adapter
Adapter WebFOCUS Excel ‘Garden hose’
Creating a drill through report
Creating the TOP level report
SET MSG = OFF -RUN TABLE FILE MAXMININV$ SUM PRODUCTTYPENAME AS 'PRODUCT TYPE' PRODUCTSUBTYPENAME AS 'PRODUCT SUB TYPE' PRODUCTNAME AS 'PRODUCT NAME' BY PRODUCTTYPENAME NOPRINT BY PRODUCTSUBTYPENAME NOPRINT END
Creating the TOP level report with DRILLTHROUGH enabled
SET MSG = OFF -RUN TABLE FILE MAXMININV$ SUM PRODUCTTYPENAME AS 'PRODUCT TYPE' PRODUCTSUBTYPENAME AS 'PRODUCT SUB TYPE' PRODUCTNAME AS 'PRODUCT NAME' BY PRODUCTTYPENAME NOPRINT BY PRODUCTSUBTYPENAME NOPRINT ON TABLE PCHOLD FORMAT PDF OPEN ON TABLE SET STYLE * TYPE = DATA, COLUMN=PRODUCTNAME, DRILLTHROUGH=DOWN(PRODUCTTYPENAME PRODUCTSUBTYPENAME),$ UNITS=IN, PAGESIZE='Letter', SQUEEZE=ON, ORIENTATION=LANDSCAPE, $ ENDSTYLE END
Creating the LOWER level report
TABLE FILE MAXMININV$ SUM INVENTORYLEVEL NUMBERONBACKORDER BY PRODUCTTYPENAME BY PRODUCTSUBTYPENAME BY PRODUCTNAME ON PRODUCTTYPENAME PAGE-BREAK HEADING CENTER "Product Type <PRODUCTTYPENAME " " " ON PRODUCTSUBTYPENAME SUBHEAD " ***** Product Subtype <PRODUCTSUBTYPENAME" FOOTING "" ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT PDF CLOSE ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * TYPE=SUBHEAD, LINE=1, ITEM = 2, DRILLTHROUGH = FIRST(PRODUCTTYPENAME PRODUCTSUBTYPENAME), COLOR=RED,$ ORIENTATION=LANDSCAPE, $ TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=9, $.......... END STYLE END
Demo 1 revisited
Creating a graphic report with graphical features using the GUI
Creating a graphic report from existing code
Oh yes!! And the code behind
-* File MaxMinGraph1.fex TABLE FILE MAXMININV$ SUM INVENTORYLEVEL AS 'Current inventory' NUMBERONBACKORDER AS 'Number back ordered' BY PRODUCTTYPENAME AS 'Product Type Name' BY PRODUCTSUBTYPENAME AS 'Product SubType Name' BY PRODUCTNAME AS 'Product Name' HEADING " <+0> Summary Report" "Current Inventory and Backorders" WHERE PRODUCTNAME EQ 'Wolf Pack' OR 'Bear with Hive' OR 'Elvin Archer'; END
Converting it to graphic format is extremely complex
-* File MaxMinGraph1.fex GRAPH FILE MAXMININV$ SUM INVENTORYLEVEL AS 'Current inventory' NUMBERONBACKORDER AS 'Number back ordered' BY PRODUCTTYPENAME AS 'Product Type Name' BY PRODUCTSUBTYPENAME AS 'Product SubType Name' BY PRODUCTNAME AS 'Product Name' HEADING " <+0> Summary Report" "Current Inventory and Backorders" WHERE PRODUCTNAME EQ 'Wolf Pack' OR 'Bear with Hive' OR 'Elvin Archer'; END
GRAPH FILE MAXMININV$ SUM INVENTORYLEVEL AS 'Current inventory' BY PRODUCTNAME AS 'Product Name' HEADING " <+0> Summary Report <+0> <PRODUCTTYPENAME" "Current Inventory and Backorders" WHERE PRODUCTNAME EQ 'Wolf Pack' OR 'Bear with Hive' OR 'Elvin Archer'; ON GRAPH SET LOOKGRAPH PIE ON GRAPH SET GRAPHEDIT SERVER ON GRAPH SET BARNUMB OFF ON GRAPH SET 3D OFF ON GRAPH SET VZERO ON ON GRAPH SET GRID ON ON GRAPH SET GRWIDTH 0 ON GRAPH PCHOLD FORMAT PNG ON GRAPH SET GRAPHSTYLE * setMarkerDisplay(true);