Webfocus Basics Tutorial

April 2, 2018 | Author: bjtoronto | Category: Business Intelligence, Html, Web Server, Table (Database), Sql


Comments



Description

Hey Buddy… Don’t worry… Here is some useful stuff from ramkumarn.com on Webfoucs basics… This is the very first tutorial… You defenitely can expect much more very sooooon.. Is It !!!!!!!!! That’s definitely a Great news… Am Eager to go through…. Happieeee… Happieeeee… Webfocus Basics http://www.ramkumarn.com ramkumarn. Oh Oh Oh !!! What’s BI ? Business Intelligence… Move on to Next Page… Before Which… In the words of Grzegorz Swietlik “Webfocus is the reporting engine that turns corporate data into meaningful information.com . complemented with Web components for presenting information and interacting with end users. “ http://www.Hey Techies !!! Webfocus – So what's that? To say simply .Webfocus is a BI tool. com .Activities include decision making support. online analytical processing. forecasting. statistical analysis. and data mining. . than they do themselves. • Need of BI – Database Compatibility – Scalability – Adhoc Reporting – Presentation Format – OLAP Support – Integration with existing Web-applications – Security http://www. query and reporting.ramkumarn.Hmmm… So What is BI ? • BI is an art of making your customers to do better. Here is the WF Architecture… http://www.Samigoooo.com ..ramkumarn. ramkumarn.com .Webfocus Anatomy… Nothing Nothing… Jus to say following are the organs of Webfocus… The Webfocus server and Client are like heart and Lungs of Webfocus architecture… Internet Explorer Web Server WebFocus Client WebFocus Reporting Server Report Caster Distribution Server – Scheduler Component Managed Reporting Environment Business Intelligence Dashboard Resource Analyzer & Governor http://www. Webconsole – Most Imp Thing on WF – So whatz that ? • Webfocus Utility that helps in – Editing/Executing Code Files – Setting Server/Client Configurations – Overall monitoring of all the process that run in the serverside • WebConsole is used to Manage :– Data Adapter` – Procedure(Fex Codes) – WorkSpace http://www.ramkumarn.com . Fex – Oops !!! What is that ? • The code that is created using Webfocus Tool is called Fex • File extension is (*.ramkumarn.com .fex) • The Fex code can be created and executed via – Webfocus Developer Studio (Report painter and other GUIs) – Webfocus Console Fex>>FOCEXEC >>Webfocus Executable http://www. mas) – A Master File describes a data source using a series of declarations (almost kind of Metadata) – FIELDNAME = EMP_ID.e the Resultset of the query).ramkumarn.$ • FOCUS File(*.com .$ – FIELDNAME = EMP_NAME. ACTUAL=A4. http://www. ALIAS = ENAME. ALIAS = EID. format it.Hey Buddy… What will Happen If a Fex file is executed ? Usually.ftm) (Raw data File) • The actual data (i.ACTUAL=A50. manipulate it and present some useful stuff to the User… The Following Two Files will be created in the Webfocus server whenever a Fex file is executed • MASTER File(*. The purpose of the FEX code is to query/fetch the data from some database. A heads up… Do I need to know the Syntax of all FEX stuff? The answer is “definitely NOT”… Then ??? Practice with Developer Studio on various reporting options and GUIs… You will be given with the FEX code. Aha ? Am Happppieeee…Thanks Buddy… Hellaoo… Wait… Wait… But understanding the FOCUS reporting language helps to realize what is going on behind the scenes. generated as code behind. .. Yipeeee… So Just the Drag and Drop stuff. Okieee…Okieee… So what is that I have to learn as my First FEX lesson…?? Nothing but the Table File and SQL Query Thatz ok Man… I can definitely do that… Come… !!! Let us Go… http://www.com .ramkumarn. ramkumarn. This Fex uses the CAR hold file (already available in webfocus) and print the country and car columns in Tabular Format.com . http://www.For you my Pal…A much Simple Report… TABLE FILE CAR PRINT COUNTRY CAR END This is the simplest Fex code that anyone can write as a “Hello world” in webfocus. ramkumarn.com .Overall Structure of a TABLE Request… Anyways many of them are optional… But are needed often… TABLE FILE data_source [ print_phrase ] [ sort_phrase ] [ filter_phrase ] [ output_section ] [ styling_section ] END http://www. com . Example TABLE FILE CAR (use CAR synonym as the data source) print_phrase Specifies the fields from the data source to be printed within the report.ramkumarn. Similar to the SQL SELECT statement. which will be used as the data source for the report. PRINT TABLE FILE CAR PRINT * END http://www.data_source Phrase By Phrase… Jus a quick View Through… Specifies the name of the configured synonym. MAX.com .ramkumarn.SUM. BY TABLE FILE CAR SUM SALES BY COUNTRY BY CAR BY MODEL END http://www. MIN TABLE FILE CAR SUM SALES AS Total AVE RETAIL_COST MAX DEALER_COST END sort_phrase Similar to the SQL Group By. AVE. ACROSS TABLE FILE CAR SUM SALES ACROSS CAR AS '' ACROSS MODEL AS '' BY COUNTRY END SUBHEAD TABLE FILE CAR SUM SALES ACROSS CAR AS '' ACROSS MODEL AS '' BY COUNTRY NOPRINT SUBHEAD "<COUNTRY" END http://www.ramkumarn.com . com . Example 1 TABLE FILE CAR SUM SALES BY COUNTRY WHERE COUNTRY EQ 'ENGLAND' END Example 2 TABLE FILE CAR SUM SALES BY COUNTRY WHERE COUNTRY LIKE '%G%' END http://www.ramkumarn.filter_phrase Similar to the SQL WHERE clause. PDF. ON TABLE PCHOLD FORMAT output_format where output_format is one of the following: HTML. EXL2K.com .ramkumarn.AHTML etc… Example TABLE FILE CAR SUM SALES BY COUNTRY ON TABLE PCHOLD FORMAT EXL2K END http://www.output_section Specifies the format of the report to be generated. FONT. DATA. [COLUMN=column_name].styling_section Specifies the formatting options (fonts. etc. The most common format properties include COLOR.]. TITLE. TABHEADING.]...$]… ENDSTYLE where type may be REPORT. [COLUMN=column_name].ramkumarn. http://www. property=value.[property=value. etc. etc. Syntax ON TABLE SET STYLESHEET * TYPE=type. [property=value. colors. property=value..) for the report elements. JUSTIFY. BACKCOLOR.com .$ [TYPE=type. SIZE.. COLOR=BLACK. BACKCOLOR=RGB(0 51 153). SIZE=8. JUSTIFY=CENTER.A Much Simple Example … TABLE FILE CAR PRINT * ON TABLE PCHOLD FORMAT HTML ON TABLE SET STYLESHEET * TYPE=REPORT. GRID = ON. $ TYPE=TITLE.ramkumarn. COLOR=WHITE. SAN-SERIF'. $ ENDSTYLE END http://www. FONT='ARIAL. HELVETICA. STYLE=BOLD. VERDANA. $ TYPE=DATA. SIZE=9.com . SIZE=8. Heads Up… Well What Next ? HTML Coding is an inseparable part of any Reporting Language… Do you accept that? Yes. .. So How to get that done ? Just Move on…. try the following code -HTMLFORM BEGIN <html> <body> Hello world!! </body> </html> -HTMLFORM END Produces the output: Hello World!! .fex file. There is a GUI tool called the resource layout painter that does much of this work for you if you wish but this technique works well.A BASIC HTML Example To create a HTML page in Webfocus you must edit the source of the document. In . Snippet … It is possible for you to do all the stuff in Webfocus. that you can do in HTML and JavaScript. everything can be done. Starting from including <input> elements to create a dynamically embedded <div> tag. Using this you can create user friendly and Parameterized reports and rich user front ends . Hey… That’s enough with the Fex stuff… Ok… But Try to text view the code for any report that you develop with Dev Studio… So that you will get to know the Syntax.. What are the different Types of Reports that can be developed with Webfocus? . Sure… Sure… Will do that… Then. Here It Goes… Parameter-driven Reports Graphical Reports Compound Reports Financial Reports Excel Reports Free-Form Reports Drill-down Reports . com .ramkumarn.A lot more to follow on WF basics… Expect soon… http://www.
Copyright © 2024 DOKUMEN.SITE Inc.