一键导入
bulk-widget-updates
Bulk Widget Property Updates — SHOW WIDGETS discovery and UPDATE WIDGETS dry-run/apply across pages and snippets
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Bulk Widget Property Updates — SHOW WIDGETS discovery and UPDATE WIDGETS dry-run/apply across pages and snippets
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Mendix MDL authoring, project navigation, and Docker app lifecycle — entities, microflows, pages, security, navigation, OQL, REST, testing, linting, and migration. Load when working in any Mendix codebase.
MDL Agent Documents — CREATE MODEL, CREATE KNOWLEDGE BASE, CREATE CONSUMED MCP SERVICE, CREATE AGENT syntax and calling agents from microflows
ALTER PAGE / ALTER SNIPPET — SET, INSERT, DROP, REPLACE widget operations on existing pages and snippets
Migration Assessment — structured investigation of non-Mendix projects for migration planning across technology stack, data model, business logic, UI, integrations, and security
Assess Mendix Project Quality — automated linting, catalog queries, naming conventions, security, maintainability, performance, and architecture review with scored report
Browse Integration Services and Contracts — SHOW/DESCRIBE OData, REST, business event, and database connection services; query MDL CATALOG integration tables; import external entities
| name | bulk-widget-updates |
| description | Bulk Widget Property Updates — SHOW WIDGETS discovery and UPDATE WIDGETS dry-run/apply across pages and snippets |
| compatibility | opencode |
MDL bulk widget editor — discover and modify widget properties across pages and snippets in bulk.
EXPERIMENTAL: These commands are an untested proof-of-concept. Always use
dry runfirst and backup your project before applying changes.
Widget commands require a full catalog build:
refresh catalog full;
<show_widgets>
-- Show all widgets
show widgets;
-- Filter by module
show widgets in MyModule;
-- Filter by widget type (case-insensitive LIKE)
show widgets where widgettype like '%combobox%';
-- Filter by name
show widgets where Name = 'myGrid';
-- Combine filters
show widgets where widgettype like '%DataGrid%' and Name like '%Overview%' in MyModule;
| Column | Description |
|---|---|
| NAME | Widget name (may be auto-generated) |
| WIDGET TYPE | Full widget type ID (e.g., com.mendix.widget.web.combobox.Combobox) |
| CONTAINER | Page or snippet qualified name |
| MODULE | Module name |
| Pattern | Matches |
|---|---|
%combobox% | ComboBox widgets |
%datagrid% | DataGrid2 and related widgets |
%textbox% | TextBox widgets |
%dropdown% | DropDown widgets |
%gallery% | Gallery widgets |
</show_widgets>
<update_widgets>
update widgets
set 'propertyName' = value [, 'propertyName' = value ...]
where condition [and condition ...]
[in module]
[dry run];
Always preview changes first:
update widgets
set 'showLabel' = false
where widgettype like '%combobox%'
dry run;
Output shows:
found 5 widget(s) in 3 container(s) matching the criteria
[dry run] The following changes would be made:
Would set 'showLabel' = false on combobox1 (combobox) in MyModule.OrderForm
Would set 'showLabel' = false on combobox2 (combobox) in MyModule.CustomerPage
...
[dry run] Would update 5 widget(s)
run without dry run to apply changes.
Remove dry run to apply:
update widgets
set 'showLabel' = false
where widgettype like '%combobox%'
in MyModule;
| Type | Examples |
|---|---|
| String | 'contains', 'above' |
| Number | 4, 100, 3.14 |
| Boolean | true, false |
| Null | null |
-- Hide labels on all comboboxes
update widgets
set 'showLabel' = false
where widgettype like '%combobox%';
-- Set multiple properties
update widgets
set 'showLabel' = false, 'labelWidth' = 4
where widgettype like '%textbox%'
in MyModule;
-- Change filter mode on DataGrid filters
update widgets
set 'filterMode' = 'contains'
where widgettype like '%DatagridTextFilter%';
</update_widgets>
<important_notes>
UPDATE WIDGETS functionality is not fully implemented.
Refresh the catalog to see updated data:
refresh catalog full force;
Open the project in Studio Pro to verify changes
Only primitive properties (string, number, boolean) are supported:
showLabel, labelWidth, placeholderfilterMode, defaultValueNOT supported:
To find the correct property names:
describe page Module.PageName to see widget structure</important_notes>
<workflow_example>
-- 1. Build catalog
refresh catalog full;
-- 2. Discover widgets
show widgets where widgettype like '%combobox%';
-- 3. Preview changes
update widgets set 'showLabel' = false where widgettype like '%combobox%' dry run;
-- 4. Apply changes
update widgets set 'showLabel' = false where widgettype like '%combobox%';
-- 5. Rebuild catalog
refresh catalog full force;
-- 6. Verify
show widgets where widgettype like '%combobox%';
</workflow_example>
<output_rules>Output MDL code only in code blocks. Keep explanations concise.</output_rules>