eyad alshareef 1 creating database reports. 2eyad alshareef creating reports
TRANSCRIPT
Eyad Alshareef 1
Creating Creating Database Reports Database Reports
2Eyad Alshareef
Creating reportsCreating reports
3Eyad Alshareef
Opening report builderOpening report builder
4Eyad Alshareef
Use report wizard to create Use report wizard to create a reporta report
5Eyad Alshareef
Using report wizardUsing report wizard
Click OK on the welcome page and then Click OK on the welcome page and then specify the type of report that you want to specify the type of report that you want to createcreate
6Eyad Alshareef
Using report wizardUsing report wizard
Name your report and select the desired Name your report and select the desired stylestyle
7Eyad Alshareef
Using report wizardUsing report wizard Select SQL query as a basis for the report Select SQL query as a basis for the report Build your query (you may be asked to log in at Build your query (you may be asked to log in at
this point)this point)
8Eyad Alshareef
Using report wizardUsing report wizard
Designate columns as group fieldsDesignate columns as group fields
9Eyad Alshareef
Using report wizardUsing report wizard
Select columns to appear in the reportSelect columns to appear in the report
10Eyad Alshareef
Using report wizardUsing report wizard
Specify labels and field length for each of Specify labels and field length for each of the itemsthe items
11Eyad Alshareef
Using report wizardUsing report wizard Select a templateSelect a template
12Eyad Alshareef
Using report wizardUsing report wizard
Finish and view your reportFinish and view your report
13Eyad Alshareef
Viewing Web reportViewing Web report
14Eyad Alshareef
Snapshot summary of Snapshot summary of database datadatabase data Viewed on screenViewed on screen Printed on paperPrinted on paper Printed to a file and distributed Printed to a file and distributed
electronicallyelectronically
ReportsReports
15Eyad Alshareef
Introduction to Reports Introduction to Reports Builder Database Builder Database
ReportsReports Reports Builder Reports Builder
Allows application developers to create Allows application developers to create reports that display data from Oracle 10reports that display data from Oracle 10gg databasedatabase
Developer10Developer10gg Reports Builder allows developers to Reports Builder allows developers to
preview and distribute reports in variety preview and distribute reports in variety of different formats including: of different formats including: Web pages Web pages Portable document format (.pdf) filesPortable document format (.pdf) files
16Eyad Alshareef
A report can:A report can: Display SQL query dataDisplay SQL query data Display summary columnsDisplay summary columns Display calculated values based Display calculated values based
on formulas applied to database on formulas applied to database datadata
Be formatted to look like an Be formatted to look like an invoice or other business invoice or other business documentdocument
Report UsesReport Uses
17Eyad Alshareef
Tabular (table-format)Tabular (table-format) Form-like (looks like a form)Form-like (looks like a form) Mailing labelsMailing labels Form lettersForm letters Group left and Group aboveGroup left and Group above
Displays master-detail relationshipsDisplays master-detail relationships Matrix and Matrix with groupMatrix and Matrix with group
Data value appears at the Data value appears at the intersection of a column and row intersection of a column and row headingheading
Report StylesReport Styles
18Eyad Alshareef
1.1. Enter the SQL query to Enter the SQL query to retrieve all of the report retrieve all of the report datadata
2.2. Choose the display fieldsChoose the display fields
3.3. Specify the report master-Specify the report master-detail groupsdetail groups
4.4. Specify the field promptsSpecify the field prompts
5.5. Select a predefined templateSelect a predefined template
Creating a Report Using Creating a Report Using the Report Wizardthe Report Wizard
19Eyad Alshareef
Creating a Master-Detail Creating a Master-Detail ReportReport
Specify the master and detail records on Specify the master and detail records on the Report Wizard Groups pagethe Report Wizard Groups page Detail records remain in Available Fields listDetail records remain in Available Fields list
Masterrecords
Detailrecords
20Eyad Alshareef
Format masks can be applied to:Format masks can be applied to: NUMBER fieldsNUMBER fields DATE fieldsDATE fields
Format masks cannot be applied Format masks cannot be applied to text fieldsto text fields
Using Format Masks in Using Format Masks in ReportsReports
21Eyad Alshareef
Specify report appearance Specify report appearance characteristicscharacteristics
Font sizes, types and colorsFont sizes, types and colors Graphic imagesGraphic images Background shadingBackground shading Page numberingPage numbering Date report is createdDate report is created
Stored in a file with a .tdf extensionStored in a file with a .tdf extension
Report TemplatesReport Templates
22Eyad Alshareef
Applying Templates to Applying Templates to ReportsReports
Use the Report Wizard Templates Use the Report Wizard Templates page to specify:page to specify: The name of a predefined templateThe name of a predefined template The file path specification to a custom The file path specification to a custom
templatetemplate To register a template file as a To register a template file as a
custom template, modify the custom template, modify the Developer global preferences file Developer global preferences file (cagprefs.ora)(cagprefs.ora)
23Eyad Alshareef
The Report Wizard The Report Wizard Templates PageTemplates Page
24Eyad Alshareef
Report Builder WindowsReport Builder Windows
Live PreviewerLive Previewer Shows how report will look when Shows how report will look when
viewed or printedviewed or printed Layout ModelLayout Model
Shows report components symbolicallyShows report components symbolically Data ModelData Model
Shows underlying report data structureShows underlying report data structure
25Eyad Alshareef
Live PreviewerLive Previewer
26Eyad Alshareef
Shows report data componentsShows report data components
Query
Recordgroup
Data ModelData Model
Datalink
27Eyad Alshareef
Record group: set of Record group: set of records with the records with the same column same column headingsheadings
Master-detail reports Master-detail reports have multiple record have multiple record groupsgroups
Default record group Default record group name: name: G_G_first_column_namefirst_column_name
Individual fields are Individual fields are called columnscalled columns
Column
Data Model ComponentsData Model Components
28Eyad Alshareef
Report Column TypesReport Column Types
Database – ScalarDatabase – Scalar Discrete data value retrieved from databaseDiscrete data value retrieved from database
SummarySummary Data value calculated by applying a summary Data value calculated by applying a summary
function to a report columnfunction to a report column FormulaFormula
Data value calculated by applying a user-Data value calculated by applying a user-defined PL/SQL function to a report columndefined PL/SQL function to a report column
29Eyad Alshareef
Shows reports components Shows reports components symbolicallysymbolically
Layout ModelLayout Model