|
|
发表于 2012/12/25 18:57:00
|
显示全部楼层
Try below Sample Code:
-------------------------------- declare
- number_of_records number;
- where_am_i number;
- begin
- go_block('dept');
-
- -- calculate last record number (to know the exit point)
- last_record;
- number_of_records := :system.cursor_record;
-
- -- now duplicate checked records
- first_record;
- loop
- exit when :system.cursor_record = number_of_records + 1;
-
- if name_in('dept.first_item')= '03' then
- SET_ITEM_INSTANCE_PROPERTY('<block_name>.<item_1_name>', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_FALSE);
- SET_ITEM_INSTANCE_PROPERTY('<block_name>.<item_2_name>', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_FALSE);
- ...
- SET_ITEM_INSTANCE_PROPERTY('<block_name>.<item_n_name>', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_FALSE);
-
- -- go back and check another record
- go_record (where_am_i + 1);
- else
- next_record;
- end if;
- end loop;
- end;
复制代码 |
评分
-
查看全部评分
|