uc-apx edit column
Edit an existing column <NAME> ( ... ) inside an interactiveGrid,
classicReport, or interactiveReport region. Common rewrites:
- switch a varchar2/number column to a selectList backed by an LOV;
- add a PL/SQL function-body default (e.g. return v(‘APP_USER’));
- flip the column to read-only.
Each —flag corresponds to a single property or block. Combine flags to apply multiple changes in one shot; the column is re-parsed after the edits to fail-fast on a broken splice.
uc-apx edit column [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--avatar-css-classes | string | Avatar column: settings.cssClasses, e.g. u-color-13. | |
--avatar-icon | string | Avatar column: settings.icon (when —avatar-type icon). | |
--avatar-image-column | string | Avatar column: settings.image.urlColumn (when —avatar-type image). | |
--avatar-initials-column | string | Avatar column: settings.initials (when —avatar-type initials). | |
--avatar-type | string | Avatar column: settings.type (image, initials, or icon). Implies —type avatar. | |
--badge-icon | string | Badge column: settings.icon (a column → &COL., or a static fa-* class). | |
--badge-label | string | Badge column: settings.label (static text or column). Implies —type badge. | |
--badge-state-column | string | Badge column: settings.state (column driving the badge color). | |
--badge-value-column | string | Badge column: settings.value (the column to render as the badge). Implies —type badge. | |
--column | string | Column id (NAME) to edit [required] | |
--default-plsql | Set default.type: functionBody + plsqlFunctionBody: <body>. Body is wrapped in a `plsql code block. Accepts @path/to/file.plsql to read from disk; @@ escapes a literal leading @. | ||
--default-static | string | Set default.type: static + staticValue: <value>. | |
--dry-run | Print the rewritten file content to stdout without writing | ||
--help-text | string | Set help.helpText to this text. Pass an empty string (—help-text "") to remove the help block. | |
--lov | string | Set lov.type: sharedComponent + lov: @<alias>. Strip a leading @ if present. | |
--lov-sql | string | Set lov.type: sqlQuery with the given SELECT (must return (display, return) pairs). Accepts @path/to/file.sql to read from disk; @@ escapes a literal leading @. | |
--lov-static | string | Set lov.type: staticValues with entries “Display1;Return1,Display2;Return2”. | |
--null-display-value | string | Set lov.nullDisplayValue. Only meaningful when the column uses an LOV. | |
--page | string | Target page (numeric ID, alias, or name) [required] | |
--query-only | Set source.queryOnly: true so APEX’s auto-DML / auto-row-processing skips this column on insert/update (canonical for identity-generated PKs; required to avoid ORA-32795). Pass —query-only=false to remove the property — e.g. for a writable natural-key PK. | ||
--readonly | Add readOnly { type: always } so end-users can’t edit the cell. | ||
--region | string | Parent region id on the page [required] | |
--type | type: | Rewrite top type: property. Accepts kebab-case (select-list, number, text, date, hidden, display-only, textarea, switch, radio-group, checkbox-group, rich-text) or the raw apexlang token (selectList / numberField / textField / …). |
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 |
Examples (from help)
Section titled “Examples (from help)”uc-apx edit column --page 50 --region my-predictions \ --column MATCH_ID --type select-list --lov @matches-lov \ --null-display-value '- Select Match -'
uc-apx edit column --page 50 --region my-predictions \ --column USERNAME --default-plsql "return v('APP_USER');"