How to use data block and non database item checkbox together [message #608230] |
Mon, 17 February 2014 18:18 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/d95ba29724bfef54ba5c7e2b5655a94d?s=64&d=mm&r=g) |
desmond82
Messages: 6 Registered: February 2014
|
Junior Member |
|
|
I have a data block and a non database checkbox at the same block. I want to get the value of the checkbox. If the checkbox selected, i want to insert the related company to another table. Please help,thanks
Here is my code:
declare
p_company varchar2(10);
p_control number;
begin
go_block('T1');
execute_query;
first_record;
loop
go_item('T1.company');
p_company := :T1.company;
go_item('T1.control);
p_control := :T1.control;
if p_control = 1 then
--insert another table the value of p_company
end if;
exit when :system.last_record = 'TRUE';
next_record;
end loop;
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
|