how to pass 2 parameters from one form to other in oracle
applications?



how to pass 2 parameters from one form to other in oracle applications?..

Answer / fahad

declare

rec_grp recordgroup;
col1 groupcolumn;
col2 groupcolumn;
col3 groupcolumn;
col4 groupcolumn;
col5 groupcolumn;
col6 groupcolumn;
col7 groupcolumn;
col8 groupcolumn;

pl_id paramlist;
i number :=1;
begin
rec_grp := find_group('emp_rec');
if not id_null(rec_grp) then
delete_group(rec_grp);
end if;
rec_grp := create_group('emp_rec');
col1 := add_group_column('emp_rec','Empno',CHAR_COLUMN,100);
col2 := add_group_column('emp_rec','Ename',CHAR_COLUMN,300);
col3 := add_group_column('emp_rec','job',CHAR_COLUMN,300);
col4 := add_group_column('emp_rec','Mgr',CHAR_COLUMN,100);
col5 := add_group_column('emp_rec','Hiredate',DATE_COLUMN,100);
col6 := add_group_column('emp_rec','Sal',CHAR_COLUMN,100);
col7 := add_group_column('emp_rec','comm',CHAR_COLUMN,100);
col8 := add_group_column('emp_rec','Deptno',CHAR_COLUMN,100);


loop
go_block('emp_r');
go_record(i);

add_group_row(rec_grp,i);

set_group_char_cell('emp_rec.empno',i,:emp_r.empno);

set_group_char_cell('emp_rec.ename',i,:emp_r.ename);
set_group_char_cell('emp_rec.job',i,:emp_r.job);
set_group_char_cell('emp_rec.mgr',i,:emp_r.mgr);

set_group_date_cell('emp_rec.Hiredate',i,:emp_r.Hiredate);
set_group_char_cell('emp_rec.sal',i,:emp_r.sal);

set_group_char_cell('emp_rec.comm',i,:emp_r.comm);

set_group_char_cell('emp_rec.deptno',i,:emp_r.deptno);

i := i + 1;
exit when :system.last_record='TRUE';

end loop;

pl_id := get_parameter_list('para1');

if not id_null(pl_id) then

destroy_parameter_list(pl_id);
end if;
pl_id := create_parameter_list('para1');

add_parameter(pl_id,'Q_EMP',DATA_PARAMETER,'emp_rec');
add_parameter(pl_id,'paramform',text_parameter,'no');

run_product(REPORTS,'D:\ora\daily.RDF',synchronous,runtime,filesystem,pl_id,NULL);


end;

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More Oracle Forms Reports Interview Questions

A query fetched 10 records How many times does a PRE-QUERY Trigger and POST-QUERY Trigger will get executed ?

2 Answers  


What is a predefined exception available in forms 4.0?

1 Answers  


How do you reference a Parameter?

1 Answers  


What are the display styles of an alert?

1 Answers  


Can any one send me oracle form and reports tutorials from which i may get help.contact me on my mail cse_kashif@hotmail.com.

0 Answers  






What is term? What is use of term?

1 Answers  


What is difference between open_form and call_form?

2 Answers  


What are the various methods of performing a calculation in a report ?

1 Answers  


What are modalless windows?

1 Answers  


what is bit map and character mode

1 Answers  


how to pass 2 variables from one form to other form

1 Answers  


Where do u define the select statement of the parameter? is it followed by the & variable ?

2 Answers   Zensar,


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)