如何以表为数据源导入成为List_item的数值

发表于:2007-06-22来源:作者:点击数: 标签:
假设有表: create table department (id varchar2(4) primary key, name varchar2(20)); insert into department(id,name) values ('D001','财务部'); insert into department(id,name) values ('D002','人事部'); insert into department(id,name) values

   
  假设有表:
  
  create table department
  (id varchar2(4) primary key,
   name varchar2(20));
  
  insert into department(id,name) values ('D001','财务部');
  insert into department(id,name) values ('D002','人事部');
  insert into department(id,name) values ('D003','保安部');
  
  commit;
  
  本文描述,如何以此department表为数据源,做下如下的下拉项效果:
  

 如何以表为数据源导入成为List_item的数值(图一)


  实施步骤:
  
  步骤1:先建立一个可重复使用的程序单元set_up_list:
  
 如何以表为数据源导入成为List_item的数值(图二)

  步骤2:建立一个叫department_record_group 的记录组:
  
 如何以表为数据源导入成为List_item的数值(图三)

  步骤3:在画布上建立一个list_item,起名为DEPARTMENT_ID
  
 如何以表为数据源导入成为List_item的数值(图四)

  步骤4:建立一个forms级的when-new-forms-instance trigger
  
 如何以表为数据源导入成为List_item的数值(图五)

  成功了! 运行结果如下:
  
如何以表为数据源导入成为List_item的数值(图六)

原文转自:http://www.ltesting.net