在Forms开发中,很多时候都会用到List提供特定的值给用户进行选择。
而本文讨论的是 如何动态的添加List的值。
原理就是通过record group
具体可参考官方文档:POPULATE_LIST Built-in
POPULATE_LIST Built-in
Description
Removes the contents of the current list and populates the list with the values from a record group. The record group must be created at runtime and it must have the following two column (VARCHAR2) structure:
Column 1: Column 2:
the list label the list value
Syntax
PROCEDURE POPULATE_LIST(list_id ITEM, recgrp_id RecordGroup);
PROCEDURE POPULATE_LIST(list_id ITEM, recgrp_name VARCHAR2);
PROCEDURE POPULATE_LIST(li