Академический Документы
Профессиональный Документы
Культура Документы
FORM_PATH
4.tnsname.ora
);
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
windows
remove the existing window,canvase , datablacke
create canvas
name jcanvas
sub_class : canvas
datablack
-----------
create a view on the table
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();