Skip to content

uc-apx create dynamic-action execute-plsql

Splice a dynamicAction with a single executeServerSideCode action.

Pick exactly one trigger: —trigger-button @<id> — event defaults to click —trigger-item @<id> — event defaults to change (omitted in when block)

—code accepts inline PL/SQL or @path/to/file.plsql to slurp from disk. —items-to-submit CSV of items submitted before execution. —items-to-return CSV of items populated from bind variables after execution.

uc-apx create dynamic-action execute-plsql [flags]
FlagTypeDefaultDescription
--codestringPL/SQL body, or @path/to/file.plsql [required]
--dry-runPrint rendered dynamicAction to stdout without writing
--items-to-returnstringCSV of items to return (populate) after execution
--items-to-submitstringCSV of items to submit before execution
--namestringDisplay name (default: “Execute PL/SQL on <trigger>“)
--pagestringTarget page (numeric ID, alias, or name) [required]
--sequenceintexecution.sequence (default: max existing dynamicAction sequence + 10)
--trigger-buttonstringButton id (selectionType: button, event: click)
--trigger-eventstringOverride the trigger event
--trigger-itemstringPage item id (selectionType: items)
FlagTypeDefaultDescription
--app-dirstring.Path to the APEX application directory
--json-prettyOutput in pretty-printed JSON (human-readable) instead of minified JSON
--toonOutput in TOON format (human-readable, token-efficient) instead of JSON

Using --dry-run to preview the generated construct (no files are written):

Terminal window
uc-apx --app-dir examples/brookstrut create dynamic-action execute-plsql --page 46 --name Log Navigation --trigger-button @reset --code null; -- log nav here --dry-run
Generated APEXlang
dynamicAction execute-plsql-reset (
name: Log Navigation
execution {
sequence: 20
}
when {
event: click
selectionType: button
button: @reset
}
action native-execute-plsql-code (
action: executeServerSideCode
settings {
plsqlCode:
```plsql
null; -- log nav here
```
}
execution {
sequence: 10
}
)
)