@cplace/test-mcp-server 1.3.7 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/widget-specifications/cf.cplace.platform.tableWidget/_implementation.md +11 -0
- package/dist/widget-specifications/cf.cplace.platform.tableWidget/columns.md +16 -0
- package/dist/widget-specifications/cf.cplace.platform.tableWidget/displayOptions.md +12 -0
- package/dist/widget-specifications/cf.cplace.platform.tableWidget/multiSortColumns.md +16 -0
- package/dist/widget-specifications/cf.cplace.platform.tableWidget/search.md +21 -0
- package/dist/widget-specifications/cf.platform.embeddedSearchAsTable/_implementation.md +1 -1
- package/dist/widget-specifications/cf.platform.embeddedSearchAsTable/columns.md +1 -1
- package/dist/widget-specifications/cf.platform.embeddedSearchAsTable/search.md +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
**Configuration Modes**:
|
|
2
|
+
- `search`: Query pages via embedded search (most common)
|
|
3
|
+
- Requires: `search` attribute with `cplaceJson` value from `cplace_search_pages`
|
|
4
|
+
- `connectedWidget`: React to selection from another widget on the page
|
|
5
|
+
- Requires: `connectedWidgetId` pointing to the source widget
|
|
6
|
+
|
|
7
|
+
**Typical Configuration Workflow**:
|
|
8
|
+
1. Configure `search` (and optionally `connectedWidgetId` for master-detail)
|
|
9
|
+
2. Define visible columns via `columns` attribute
|
|
10
|
+
3. Optionally configure sorting (`multiSortColumns`), filtering (`filters`), and grouping (`groupColumn`)
|
|
11
|
+
4. Configure display options via `displayOptions` multi-enum
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
**Warning**: Every column must reference an attribute that actually exists on the **target type** being displayed in the table. Before configuring columns, use cplace MCP tools to look up the target type's actual attributes and verify that each column attribute name exists. Never assume or reconstruct attribute names. Columns referencing non-existent attributes will fail silently or produce errors.
|
|
2
|
+
|
|
3
|
+
**JSON Format**:
|
|
4
|
+
```json
|
|
5
|
+
[
|
|
6
|
+
{"name": "'cf.cplace.myType.attributeName'", "visible": true},
|
|
7
|
+
{"name": "'cf.cplace.myType.otherAttribute'", "visible": false},
|
|
8
|
+
{"name": "name", "visible": true}
|
|
9
|
+
]
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
**Important**:
|
|
13
|
+
- **Custom attributes** require single quotes around the attribute name: `"'cf.cplace.myType.attributeName'"`
|
|
14
|
+
- **Builtin attributes** (e.g., `name`, `createdAt`, `creator`, `modifiedAt`, `modifier`, `owner`) are specified without quotes: `"name"`
|
|
15
|
+
|
|
16
|
+
**Note**: Order in array determines column display order. Hidden columns (`visible: false`) can still be used for sorting/filtering.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
**Multi-select enum** controlling table display behavior. Selected values enable the corresponding feature.
|
|
2
|
+
|
|
3
|
+
**Available options**:
|
|
4
|
+
- `showToolbar`: Show the toolbar with action buttons
|
|
5
|
+
- `showQueryBar`: Show the query/filter bar above the table
|
|
6
|
+
- `showColumnHeader`: Show column headers
|
|
7
|
+
- `showStatusBar`: Show the status bar (pagination) below the table
|
|
8
|
+
- `showLinksInNameColumn`: Make entity names clickable links
|
|
9
|
+
- `showNewButton`: Show the "Create New" button
|
|
10
|
+
- `displayRowsInCompactMode`: Display rows in compact/single-spaced mode
|
|
11
|
+
|
|
12
|
+
**Note**: When a new widget is created, default display options are applied automatically. The defaults include all options except `displayRowsInCompactMode`.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
**JSON Format**:
|
|
2
|
+
```json
|
|
3
|
+
[
|
|
4
|
+
{"sortColumn": "'cf.cplace.myType.attribute1'", "sortOrder": "asc", "sortingPriorityIndex": 1},
|
|
5
|
+
{"sortColumn": "'cf.cplace.myType.attribute2'", "sortOrder": "desc", "sortingPriorityIndex": 2},
|
|
6
|
+
{"sortColumn": "name", "sortOrder": "asc", "sortingPriorityIndex": 3}
|
|
7
|
+
]
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
**Valid sortOrder values**: `"asc"`, `"desc"`
|
|
11
|
+
|
|
12
|
+
**Important**:
|
|
13
|
+
- **Custom attributes** require single quotes around the attribute name: `"'cf.cplace.myType.attributeName'"`
|
|
14
|
+
- **Builtin attributes** (e.g., `name`, `createdAt`, `creator`, `modifiedAt`, `modifier`, `owner`) are specified without quotes: `"name"`
|
|
15
|
+
|
|
16
|
+
**Note**: `sortingPriorityIndex` determines which sort applies first (lower = higher priority).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
**Warning**: Do not manually construct search JSON!
|
|
2
|
+
|
|
3
|
+
**Correct Usage**: Use the cplaceJson field from cplace_search_pages response
|
|
4
|
+
|
|
5
|
+
**Workflow**:
|
|
6
|
+
1. Call cplace_search_pages with your desired filter
|
|
7
|
+
2. Take the cplaceJson field from the response
|
|
8
|
+
3. Use that value for the search configuration
|
|
9
|
+
|
|
10
|
+
**Relative Filters** (e.g., "show items referencing current page"):
|
|
11
|
+
|
|
12
|
+
When using `relativeReference` filters, you MUST provide a real page UID as context:
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
cplace_search_pages(
|
|
16
|
+
search_filter: [{"relativeReference": {"attribute": "myType.refAttr", "operator": "embeddingCustomEntity"}}],
|
|
17
|
+
embeddingEntityUid: "page/abc123" // ← Real page UID required!
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Without a concrete `embeddingEntityUid`, the relative filter won't be included in the returned `cplaceJson`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
**Configuration Modes**:
|
|
2
2
|
- `search`: Query pages via embedded search (most common)
|
|
3
|
-
- Requires: `search` attribute with cplaceJson from `cplace_search_pages`
|
|
3
|
+
- Requires: `search` attribute with `cplaceJson` value from `cplace_search_pages`
|
|
4
4
|
- `connectedTable`: Display data from another table widget on the page
|
|
5
5
|
- Requires: `connectedTableWidgetId` pointing to the source widget
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
**Warning**: Every column must reference an attribute that actually exists on the type being displayed in the table. Before configuring columns,
|
|
1
|
+
**Warning**: Every column must reference an attribute that actually exists on the **target type** being displayed in the table. Before configuring columns, use cplace MCP tools to look up the target type's actual attributes and verify that each column attribute name exists. Never assume or reconstruct attribute names. Columns referencing non-existent attributes will fail silently or produce errors.
|
|
2
2
|
|
|
3
3
|
**JSON Format**:
|
|
4
4
|
```json
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
**Warning**: Do not manually construct search JSON!
|
|
2
2
|
|
|
3
|
-
**Correct Usage**: Use the cplaceJson field from cplace_search_pages response
|
|
3
|
+
**Correct Usage**: Use the `cplaceJson` field from cplace_search_pages response
|
|
4
4
|
|
|
5
5
|
**Workflow**:
|
|
6
6
|
1. Call cplace_search_pages with your desired filter
|
package/package.json
CHANGED