Documente Academic
Documente Profesional
Documente Cultură
Oracle Applications
Technical Consultant
Prepared By,
N.S.Anjaneyulu
2
Click on next.
4
Click on next.
7
Click on next.
10
Click on next.
11
Click on next.
12
Click on finish.
13
Click on ok.
16
Click on ok.
22
SQL query is
>SELECT EMPNO, ENAME, SALJOB, DEPTNO FROM EMP
Where deptno= :p1
Click on ok.
33
Double click on the deptno field and give the source: Deptno
Then after press f3
Select “user parameter” and press f4
Data type: Number
Click on list of values,
Select the “select statement”.
Press f3.
Select the “user parameter” and name is “P_EMPNO_SAL”.
Click on ok.
47
Double click on the deptno field and give the source: Deptno
Run the report,
Click on ok.
53
Double click on the dname field and give the source: Dname
Double click on the deptno field and give the source: Deptno
After press f3
Click on user parameters and give the name is
P_FROM_DEPTNO.
Again click on user parameters and give the name is
P_TO_DEPTNO.
Select the report triggers
Double click on the after parameter form and write the following
code,
Click on ok.
59
Double click on the job field and give the source: job
Double click on the deptno field and give the source: Deptno
Press f3
Click on report trigger
Double click on the before parameter form and write the
following code,
Function beforepform return Boolean is
Begin
srw.message (10,'Before parameter form trigger is firing');
Return (TRUE);
End;
Double click on the after report trigger and write the following
code,
Function after report return Boolean is
Begin
srw.message (50,'After report trigger is firing');
Return (TRUE);
End;
63
Click on ok.
70
Press f3.
Co to report trigger
Double click on the before parameter form and write the
following code,
Function before Form return Boolean is
Begin
srw.message (10,'Enter the deptno');
Return (TRUE);
End;
Double click on the before report and write the following code,
Function before Report return Boolean is
Begin
srw.do_sql ('create table employee2 as select *from TEMP');
srw.message (13,'Table Created Successfully');
Return (TRUE);
End;
73
Click on ok.
79
Double click on the deptno field and give the source: Deptno
Press f3
Click on system parameters
Again Lick on SQL button and write the SQL query is,
>SELECT *FROM DEPT
Click on ok.
85
Again Lick on SQL button and write the SQL query is,
>SELECT *FROM CUST
Click on ok.
86
Click on the data link button and given the following link
between the EMP and dept tables
EMP.DEPTNO=DEPT.DEPTNO
Then automatically system will be generated the dept table with
deptno1 column.
Again click on the data link button and given the following link
between the dept and cust tables
DEPT.DEPTNO=CUST.CUSTDEPT
87
Click on ok.
102
Click on connect.
103
Select the formula column button from left side of the menu bar
in data model and place on the cursor with in the data model.
105
Click on ok.
110
Select the placeholder button and place on the with in the data
model name is “CP-DNAME”.
Again Select the placeholder button and place on the with in the
data model name is “CP-LOC”.
Select the formula column button and place on the with in the
data model name is “CF-1”.
113
Right click on the CF-1 and select the PL/SQL Editor and write
the following code,
> Function CF_1Formula return Number is
X dept.dname%type;
Y dept.loc%type;
Begin
Click on the SQL button from the left side of the menu bar and
write the SQL query,
Double click on the summary column field and give for the
properties,
Function: COUNT
Source: EMPNO
122
Select the text item and right click on that and select the PL/SQL
Editor and write the following code,
Right click on the empno field and write the following code,
Right click on the Sal field and write the following code,
>Function F_1FormatTrigger return Boolean is
Begin
If (: Sal>2000) then
srw.set_text_color ('blue');
srw.set_font_face ('courier new');
srw.set_font_size (16);
srw.set_font_weight (srw.bold_weight);
srw.set_font_style (srw.plain_style);
End if;
Return (true);
End;
133
Click on ok.
136
Click on next.
142
Press f4.
Select the user parameter and from left side (+) this symbol is
enabled automatically click on that + symbol and name is,
P_TABLENAME
Double click on the P_TABLENAME and give the properties,
Data type: Character
Select the parent frame of EMP layout
Place cursor between two fields of EMP layout.
Press f4.
Go to format trigger and double click on that and write the
following code,
> Function R_1FormatTrigger return Boolean is
Begin
If: P_TABLENAME='EMP' then
Return (TRUE);
Else
Return (false);
End if;
End;
Click on ok.
148
Then after save the report in any local disk or desktop and close
the report.
Click on ok.
153
Select the “BUTTON” from left side of the menu bar in layout
model and adjust the layout and place the button inside the
repeating frame like this,