Вы находитесь на странице: 1из 3

1.

FORM_PATH

Start>run > regedit


Search for forms_path variable
Open and append the new path
c:\forms

2. Copy the pll&plx files from oracle server


AU_TOP/resource forlder

3. Copy 3 seeded forms files (FMB)


AU_TOP/
Template.fmb
appsstand.fmb
apstand.fmb

4.tnsname.ora

Open the tnsname.ora file


---------------------
go to form builder
delete the existing module
---------------------------

CREATE TABLE j_course(cid NUMBER(5) primary key


,cnum VARCHAR2(20)
,cname varchar2(20)
,cdate date
,cfee varchar2(10)
,created_by VARCHAR2(20)
,creation_date DATE
,last_updated_by VARCHAR2(20)
,last_update_date DATE
,last_update_login VARCHAR2(20)

);
CREATE TABLE j_student (sid NUMBER(5)
,sno VARCHAR2(20)
,sname varchar2(20)
,jdate DATE
,pfee varchar2(10)
,dfee varchar2(10)
,created_by VARCHAR2(20)
,creation_date DATE
,last_updated_by VARCHAR2(20)
,last_update_date DATE
,last_update_login VARCHAR2(20)
,cno references j_course(cno)

);
Two tables are created.
Register the tables in oracle
TO this we have to usd
BEGIN
AD_DD.Register_table('PO','J_COURSE','T',10,80,20);
commit;
END;

BEGIN
AD_DD.REGISTER_COLUMN('PO','J_COURSE','CID',1,'VARCHAR2',10,'Y','Y');
END;
BEGIN
AD_DD.REGISTER_COLUMN('PO','J_COURSE','CID',2,'VARCHAR2',10,'Y','Y');
END;
BEGIN
AD_DD.REGISTER_COLUMN('PO','J_COURSE','CDATE',3,'DATE',10,'Y','Y');
END;
like do for all columns

----------
File open template
and save as with diff name

Name of the template

windows
remove the existing window,canvase , datablacke

Create new once

Window > j_courcewindow


sub_class : window

create canvas
name jcanvas
sub_class : canvas

datablack

-----------
create a view on the table

CREATE or REPLACE view J-Cource_v as


SELECT * FROM j_course;
create or replace view j_student_v as select * from j_student;

Create sequence;
CREATE SEQUENCE j_course_s START WITH 1 increment by 1
create sequence j_student_s start with 1 increment by 1

Go to from
form name
all items are display items

Triggers
free form trigger
remove the block name and give the window name
when new form instacne
give the template naem

program units
package bdy app_custom
give the name of the window

attach calander
right click on the date column and property palette
list of values column
select list lamp

trigger
>smarttrigger :
key listval
calendar.show();

who columsn

pre-insert
select J-course_s.nextval
INTO :J_COURSE_V.CID --block name
FROM DUAL;
fnd_stanard.set_WHO();

Вам также может понравиться