Home » Developer & Programmer » Forms » Check box selection for 2 blocks (Forms 6i)
Check box selection for 2 blocks [message #578674] Sun, 03 March 2013 10:10
arif_md2009
Messages: 732
Registered: May 2009
Location: United Arab Emirates
Senior Member

I have two tables with relation and i created master detail form and my requirement is i have two fields thats needs to get automatically updated when i choose select all check box, its happening in first master block when i am clicking on the select all check box the field apd_comp_yn_num , but when i press the ref button on main block to enter the second block ot_act_dtl_ref , i need the value of apr_comp_yn_num check box there in that block to be checked automatically as well also. i have prepared the test case and attached the form what i did.


create table ot_act_dtl (apd_id number,apd_pm_cd varchar2(12), apd_qty number , apd_comp_yn_num number);

create sequence apd_id start with 1 increment by 1 cache 20

select apd_id.nextval from dual

ALTER TABLE ot_act_dtl ADD (
  CONSTRAINT AP_pk
 PRIMARY KEY
 (APD_ID))

insert into ot_act_dtl (apd_id,apd_pm_cd,apd_qty,apd_comp_yn_num) values ( apd_id.nextval,'A',1,null);

insert into ot_act_dtl (apd_id,apd_pm_cd,apd_qty,apd_comp_yn_num) values ( apd_id.nextval,'B',1,null);

COMMIT;


create table ot_act_dtl_ref (apr_apd_id number , apr_id number, apr_pm_code varchar2(12),apr_qty number,apr_comp_yn_num number);

ALTER TABLE ot_act_dtl_ref ADD (
  CONSTRAINT APr_pk
 PRIMARY KEY
 (APr_ID))
 
 
ALTER TABLE OT_act_dtl_ref ADD (
  CONSTRAINT APr_FK
 FOREIGN KEY (APr_apd_ID) 
 REFERENCES OT_ACT_DTL (APd_ID)); 

create sequence apr_id start with 1 increment by 1 cache 20

insert into ot_act_dtl_ref (apr_apd_id , apr_id , apr_pm_code ,apr_qty ,apr_comp_yn_num ) values ( 3,apr_id.nextval,'C',1,NULL)

insert into ot_act_dtl_ref (apr_apd_id , apr_id , apr_pm_code ,apr_qty ,apr_comp_yn_num ) values ( 4,apr_id.nextval,'D',2,NULL)

Commit;

Previous Topic: file upload faild ora-06509:PL/SQL:ICD vector missing for this package ora-06512 at "test.ult_raw",
Next Topic: Updating NOT inserting
Goto Forum:
  


Current Time: Tue Apr 23 23:31:50 CDT 2024