uc-apx create dynamic-action set-value
Splice a dynamicAction with a single setValue action (static source).
Pick exactly one trigger: —trigger-button @<id> — event defaults to click —trigger-item @<id> — event defaults to change (omitted in when block)
v1 supports —source static only. Future: plsqlExpression, itemValue, etc.
uc-apx create dynamic-action set-value [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--dry-run | Print rendered dynamicAction to stdout without writing | ||
--name | string | Display name (default: “Set Value of <target-items>“) | |
--page | string | Target page (numeric ID, alias, or name) [required] | |
--sequence | int | execution.sequence (default: max existing dynamicAction sequence + 10) | |
--source | string | static | Value source kind (v1 supports ‘static’ only) |
--target-items | string | CSV of item ids to set the value on [required] | |
--trigger-button | string | Button id (selectionType: button, event: click) | |
--trigger-event | string | Override the trigger event | |
--trigger-item | string | Page item id (selectionType: items) | |
--value | string | Static value to set [required] |
Global Flags
Section titled “Global Flags”| Flag | Type | Default | Description |
|---|---|---|---|
--app-dir | string | . | Path to the APEX application directory |
--json-pretty | Output in pretty-printed JSON (human-readable) instead of minified JSON | ||
--toon | Output in TOON format (human-readable, token-efficient) instead of JSON |
Example Generated APEXlang
Section titled “Example Generated APEXlang”Using --dry-run to preview the generated construct (no files are written):
uc-apx --app-dir examples/brookstrut create dynamic-action set-value --page 46 --name Set Default Store --trigger-button @reset --target-items P46_STORE_NAME --value ALL --dry-runGenerated APEXlang
dynamicAction set-value-reset ( name: Set Default Store execution { sequence: 20 } when { event: click selectionType: button button: @reset }
action native-set-value ( action: setValue settings { value: ALL } affectedElements { selectionType: items items: P46_STORE_NAME } execution { sequence: 10 } )
)