reports 6i tut
TRANSCRIPT
-
8/8/2019 Reports 6i Tut
1/29
Oracle Reports Tutorial
Report Builder Features
A query builder with a visual representation of the specification of SQL statements to obtain report data
Wizards that guide you through the report design process
Default report templates and layouts that can be customized to meet your reporting needs
The ability to generate code to customize how reports will run
A Live Pre-viewer that allows you to edit report layouts in WYSIWYG mode
An integrated chart builder that helps you to graphically represent report data
Web publishing tools that dynamically generate web pages based on your data
Other standard report output formats like HTML, PDF, PCL, Postscript, and ASCII
Starting Report Builder
1. Make sure PC Xware is running
2. Telnet Pegasus by typing telnet pegasus.rutgers.edu or connect to pegasus from the SSH client (make sure X11 Tunneling is
enabled in SSH preferences)
3. start oracle Report Builder by typing rwbld60
Using Wizards
Report Builder has a Report Wizard, Data Wizard, and Web Wizard to automate the creation of reports. Most often, you can create a report by
starting with one of the wizards, and then refining the report that the wizard creates using the data model view and the layout view.
To create a report using report wizard
1. If the Welcome dialog box appears (the following screen), click Use the Report Wizard and click OK.
-
8/8/2019 Reports 6i Tut
2/29
If the Welcome dialog box does not appear, choose File->New->Report. ClickUse the Report Wizard and clickOK.
2. You will receive the following screen unless you selected not to display it in the future previously. Click next
-
8/8/2019 Reports 6i Tut
3/29
3. Select Report type; this will affect report layout. you can see the different layouts by clicking their corresponding buttons and
looking at the sample layout on the left. After you select the type you want clicknext
-
8/8/2019 Reports 6i Tut
4/29
4. The data presented in the report is the result of a query. If you are not connected, you need to connect as shown in the following
screen.You can create that query by one of three methods: (1) writing a SELECT statement (2) Building the query using the Query
By Example (QBE) interface, (3) importing the query.
-
8/8/2019 Reports 6i Tut
5/29
5. Select the fields you would like to display in the report in the order you want as shown in the next screen. Then clicknext
-
8/8/2019 Reports 6i Tut
6/29
6. Apply aggregate functions to the fields if you want by selecting the field then the aggregate function. Then clicknext
-
8/8/2019 Reports 6i Tut
7/29
7. Change Field names and their width as shown in the next screen then clicknext
-
8/8/2019 Reports 6i Tut
8/29
8. Select a template then clicknext
-
8/8/2019 Reports 6i Tut
9/29
9. On the last page of the Report Wizard, clickFinish.
-
8/8/2019 Reports 6i Tut
10/29
10. A report is created and appears in the Live Previewer.
-
8/8/2019 Reports 6i Tut
11/29
11. From the Live Previewer, you can edit the report as desired. Note that the Live Previewer is one of several report views that are
available in the Report Editor. Using the View menu or the toolbar, you can switch to other report views to
Report Editor
In the Report Editor, you can view information about a report in four different ways. You can switch between these views using the View menu
or the toolbar icons. You will work in each of the following Report Editor views as you create the sample reports in this tutorial:
Live Previewer
-
8/8/2019 Reports 6i Tut
12/29
Data Model view
Layout Model view
Parameter Form view
Live Previewer
This view displays your report as the end user will see it. If you are using existing data, the Live Previewer will update the report as data
changes. Any modifications that you make to the report in the Live Previewer are reflected immediately. To display your report in the Live
Previewer, select View menu then Live Previewer.
Data Model view
This view displays your report data as data model objects so that you can see the relationships between queries, groups, columns, parameters,
and links. To display your report in the Data Model view, select View menu then select Data Model.
Layout Model view
This view displays the attributes of your report as objects so that you can see the attribute types and relationships. You can edit layout objects,
such as frames, repeating frames, fields, boilerplates, anchors, and graphics in this view in order to change the appearance of the report. To
display your report in the Layout Model view, select View menu then select Layout Model.
Parameter Form view
This view lets you create aRuntime Parameter Form for your report. When a user runs your report, the user enters values for parameters in this
form to determine how the report will execute. Otherwise, the user may accepts the defaults. If you do not define a Runtime Parameter Form in
the Parameter Form view, Report Builder displays a default Parameter Form at runtime. You can select which system and user parameters to
use for your form using the Parameter Form Builder, or you can create your own from scratch. To display the Parameter Form view, select
View menu then select parameter form.
Modifying Report Format
To apply changes to any column, click anywhere in that column. Report Builder will select all the rows in that column to indicate that changes
will apply to all the rows. You can select multiple columns and items by holding shift and clicking on those columns or report items.
-
8/8/2019 Reports 6i Tut
13/29
-
8/8/2019 Reports 6i Tut
14/29
The Conditional Formatting is a great way to apply formatting exceptions to your layout objects. (For example, you can make a fields value
Red when it exceeds a specified maximum value). If you are familiar with Excel, there is a similar feature there. The Conditional Formatting
dialog box alone may satisfy your requirements for creating a formatting exception without the need to edit the corresponding trigger.
However, once you directly edit a Format Trigger for an object, you should not go back and use the Conditional Formatting dialog box to make
more modifications.
To apply conditional formatting to an item:
1. select that item, then select property palate from Tools menu. Or right click that data item and select property palate.
2. Under the general layout section, select Conditional Formatting as show in next screen. you will get the conditional formatting
dialog box.
-
8/8/2019 Reports 6i Tut
15/29
3. ClickNew
4. Apply a condition by selecting an operator such as Less than orBetween then put the values for the condition. You can have a
complex condition (multiple conditions connected by AND or OR) by clicking radio button in the next line. The AND/OR will be
enabled (on the right).
-
8/8/2019 Reports 6i Tut
16/29
5. Then Apply the format you want when that condition is met by changing the font face, color, fill color, etc. You can also select to
hide the data item.
" gd s t x bqhbptp tx ft a`bp wtwgd 0tschwhts q3tr`wwhsfch qtfat hwg wgd 3tr wd dhts
hwwdshs0qhbpBp wtd hw
-
8/8/2019 Reports 6i Tut
17/29
Creating Data Model
6swghdbwhtstx hqqqd sgt bd`wd ` rxqwhqdxd c`w`rt cdq First, you will create two queries. Then you will create
a break group for the first query. Finally, you will link the two queries.
1. In the Data Model view, click the SQL icon (on the left) then click anywhere inside the data model screen. You will get SQL
Query Statement screen as show below. Write a query or build it by the query builder or import an SQL query from an existing
SQL file.
-
8/8/2019 Reports 6i Tut
18/29
2. You will get the a drawing representing the query as in the next screen
-
8/8/2019 Reports 6i Tut
19/29
At dd wwgd `rd wd`f hs wtaxhqc`stwgdxd @`pd xd wtg`yd C8 38 dq whtsadwdds
wgd wt w`aqdhs wgd wt xdhd
-
8/8/2019 Reports 6i Tut
20/29
Fdqdbwwgd qhspwttqvwt tydq`hsf bhbqdu0qhbpts tsd te wgd ehdqchswgd dq whts`sc c`f wt wgd
twgdehdqchs te wgd dq whtshs wgd twgdw`aqdRtx hqqfdwwgd etqqthsf bdds
-
8/8/2019 Reports 6i Tut
21/29
! 0d wd` ad`p ftx a c`ffhsf ehdqcadwd ds wgd xd s`r d `sc wgd ehdqcqhw gt s adqt
-
8/8/2019 Reports 6i Tut
22/29
6. fdsd`wd ` cde`xqwq`txwa xsshsf wgddtwh`c etr wgdGttqvrdsx Rtx hqqfdwwgd ehww`ate wgd h `c vFwqdu
Atwhbdwg wwghdqdbwhtshdq wdcwtwgd ` tx hqqtf`shd wgd cheeddsw`wte wgd dtww wghthswt x
g`yd wt w aqd`sc ` ad`phsfftxAtwhbd wg wwgd g`yd sd s`r d vhswgd bdds `atydu3t d` rqd
dr qt dd hst 4X3A@2 Fdqdbw4tx atyd
-
8/8/2019 Reports 6i Tut
23/29
# 6swgd ftx `fd dqdbw4X `sc bqhbp`btdqdbw4X1A @2 `sc bqhbpbtwgds dqdbw4X3s`rd
`sc bqhbp1t s Ggdd axwwtsvbt1t s dwbuhschb wdgt wgddtwhqqad ehqqdcx3t d` rqd
btrd`s ehqqgthtsw qqct s rd`s ydwhb qqbt1t s rd`s gthtsw qwgds ydwhb q
-
8/8/2019 Reports 6i Tut
24/29
Fdqdbwwgd ehdqct x `sw wtchq`Rtx r ` stwsddc qqehdqchetrd ehdqc`d dd`wdc xbg `1 AB
`sc FHC2EFFA
-
8/8/2019 Reports 6i Tut
25/29
$ Fdqdbw` 9`adq`sc ehdqchcwg etdyd ehdqc
-
8/8/2019 Reports 6i Tut
26/29
% Fdqdbw` Gdr q wdRtx r` stwfdwwgd d `bw qhwtewdrq wd`sc gdsbd stwwgd rd ` wgd dtw
qtbpGgds bqhbp3hshg
-
8/8/2019 Reports 6i Tut
27/29
Rtx gtxqcfdwtrdwghsf hrhq wtwghAtwhbdwg wdyd cd`wrdswgt hs ` d` wd`fdRtx
b`s dd twgd`fd a bqhbphsfwgd t hswgd wttqa tbg`sfhsf wgd `fd sxra d hs wgd wttqa
qt
-
8/8/2019 Reports 6i Tut
28/29
At t x b`s bg`sfd etr wwhsfwtqtbp wgd ` t x ` sw hw
-
8/8/2019 Reports 6i Tut
29/29