In oracle Apex when you want to delete from a collection :
Item Name : P101_DELETE_ID
In Link add the code :
javascript:getID(&SEQ_ID.)
Link Text :
<span class="fa fa-trash-o"></span>
Add the function at "Function and Global Variables" -
function getID(val)
{
apex.item("P101_DELETE_ID").setValue(val)
}
At Dynamic Action :
BEGIN
IF :P101_DELETE_ID IS NOT NULL THEN
APEX_COLLECTION.DELETE_MEMBER (P_COLLECTION_NAME => 'WEMP',
P_SEQ => :P101_DELETE_ID);
END IF;
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
Add another True Action :
Refresh Region.
Tags:
Oracle Apex