Adds a single element to a list item.
Built-in Type unrestricted procedure
Enter Query Mode yes
For a base table list with the List Style property set to Poplist or T-list, Oracle Forms does not allow you to add another values element when the block contains queried or changed records. Doing so causes an error. This situation can occur if you have previously used DELETE_LIST_ELEMENT or CLEAR_LIST to remove the other values element that was specified at design time by the Mapping of Other Values list item property setting.
Note: The block status is QUERY when a block contains queried records. The block status is CHANGED when a block contains records that have been either inserted or updated.
/*
** Built-in: ADD_LIST_ELEMENT
** Example: Deletes index value 1 and adds the value "1994" to
** the list item called years when a button is pressed.
** Trigger: When-Button-Pressed
*/
BEGIN
Delete_List_Element('years',1);
Add_List_Element('years', 1, '1994', '1994');
END;