Skip to content
Advertisement

execute a SQL or PL/SQL code after html insert action in APEX

i have a region in apex that contains a list of options to select

how can i get back the select value(s) and execute an SQL insert action for each one

Advertisement

Answer

As you use Apex, why don’t you use its Select List item (and allow multiple choices)?

Doing so, values you select would be colon-separated (e.g. 10:20:30).

In order to insert those values into a table, a simple option is to create a button and a process which fires when that button is pressed. As button submits the page, selected value(s) are stored into session state and process sees them.

If that select list item’s name is P1_LIST, process would be e.g.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement