/kx-dashboards-knowledge:kx-datafilterfrom kx-dashboards-knowledge
Generates KX Dashboards DataFilter (visual filter builder) and QueryBuilder (visual kdb+ query constructor) components. Use for filter panels, AND/OR filters, or query builders on grids/charts.
Ships in kx-dashboards-knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Also read kx-dashboard-core for: envelope, screen/widget wrapper, data sources, ViewState, binding patterns, actions, notifications, and the pre-flight checklist.
kdbString must be a ViewState reference — never an empty string. Set it to { "_dashboardsType": "viewstate", "value": "<filterStrViewState>" }.queryModel must be initialised as "{\"operator\":\"AND\",\"children\":[]}" — not "".Items[].propertyName must exactly match the kdb+ column name.definitionId is "48" (not "101" — that is an older value; always use "48").key: "DataFilter" · definitionId: "48" · version: "v2.19.0"
The DataFilter works via a three-part wiring:
DataFilter ──(reads schema from)──▶ rawDataSource (plain select)
DataFilter ──(writes filter to)───▶ filterStr ViewState
filteredDataSource ──(reads VS)───▶ .dfilt.apply[select from <Table>; s]
Datagrid ──(reads from)─────────▶ filteredDataSource
Any component responding to the filter must bind to filteredDataSource, not rawDataSource.
Set componentType: "datafilter".
| Field | Description |
|---|---|
dataSource | Raw data source name (for schema discovery) |
filterItems | Array of { column, dataSource?, items?, fieldSummaryThreshold? } |
bindings | Array of { key, viewState } |
useViewStates | Boolean — use ViewState bindings for filter values |
clearIfNotInSource | Boolean — clear filters when source changes |
"<filterStrViewState>": {
"_viewType": true,
"_type": "string",
"_default": ""
}
"<rawDataSource>": {
"_dataType": "query", "_dataSource": "kdb",
"_connection": "<connection-name>",
"_queryString": "select from <Table>",
"_queryParams": [],
"_autoExecute": true, "_autoExec": true,
"_subscriptionType": "static"
}
"<filteredDataSource>": {
"_dataType": "query", "_dataSource": "kdb",
"_connection": "<connection-name>",
"_queryString": "{[s]\n .dfilt.apply[select from <Table>;s]\n}",
"_queryParams": [
{
"name": "s", "index": 0, "type": "string",
"value": "<%<filterStrViewState>%>",
"IsKdbParam": true, "isViewState": true
}
],
"_autoExecute": true, "_autoExec": true,
"_subscriptionType": "static"
}
.dfilt.apply is a KX Dashboards server-side function available on any kdb+ process running the KX Dashboards backend.
{
"id": "<uuid>", "key": "DataFilter",
"containerId": null, "components": [], "widgets": [],
"definitionId": "48", "hasOnSettingsChange": true,
"options": {
"version": "v2.19.0",
"Basics": {
"Name": "<filter panel name>",
"data": { "_dashboardsType": "data", "value": "<rawDataSource>" },
"queryModel": "{\"operator\":\"AND\",\"children\":[]}",
"kdbString": { "_dashboardsType": "viewstate", "value": "<filterStrViewState>" },
"UseViewStates": false,
"clearIfNotInSource": false
},
"Bindings": [],
"Items": [
{ "propertyName": "<column1>", "data": "", "items": [], "FieldSummaryThreshold": 5 },
{ "propertyName": "<column2>", "data": "", "items": [], "FieldSummaryThreshold": 5 }
],
"Actions": [],
"Style": {
"advanced": "", "cssClasses": "",
"HistogramBuckets": 50,
"HistogramColor": "#0071cd"
},
"Alignment": {},
"format": { "SortListBySelected": false }
}
}
Key fields:
"data" (lowercase) — raw data source for schema discovery"queryModel" — initialise as the empty AND tree string above"kdbString" — ViewState reference (string type), NOT an empty string"clearIfNotInSource": false — prevents filters being wiped on source change"Items" — one entry per filterable column; propertyName must exactly match the column nameThe Datagrid (or any linked component) binds to the filtered source:
"Data": { "_dashboardsType": "data", "value": "<filteredDataSource>" }
// ViewState
"filterStr": { "_viewType": true, "_type": "string", "_default": "" }
// Data sources
"carsData": {
"_queryString": "select from Cars",
"_queryParams": [],
"_autoExecute": true, "_autoExec": true,
"_subscriptionType": "static"
}
"carsDataFiltered": {
"_queryString": "{[s]\n .dfilt.apply[select from Cars;s]\n}",
"_queryParams": [
{ "name": "s", "index": 0, "type": "string",
"value": "<%filterStr%>", "IsKdbParam": true, "isViewState": true }
],
"_autoExecute": true, "_autoExec": true
}
// DataFilter → data source: carsData (schema)
// DataFilter → kdbString: filterStr (publishes filter)
// Datagrid → Data: carsDataFiltered
key: "QueryBuilder" · definitionId: "10254"
Direction: "Left-Right" | "Top-Down"
DialogPlacement: "Pop-up" | "Inline"
"Basics": {
"Name": "",
"Data": { "_dashboardsType": "data", "value": "<resetDataSource>" },
"Connection": "<connection-name>",
"Selected": { "_dashboardsType": "viewstate", "value": "<selectedNodeViewState>" },
"JSON": { "_dashboardsType": "viewstate", "value": "<queryJsonViewState>" },
"qIPC": { "_dashboardsType": "viewstate", "value": "<kdbStringViewState>" },
"Theme": "Dark", "ReadOnly": false,
"Direction": "Left-Right", "DialogPlacement": "Pop-up",
"AutoSave": false, "UseViewStates": false, "ForceSelection": false
}
Moved. Full Dataform documentation (generate.js config, Basics, form fields, field types, style) is in the kx-dataform skill. Read that skill for any Dataform (
key: "Dataform",definitionId: "27") generation.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
32 skills in this plugin
/kx-accordionUse this when the user wants collapsible or expandable sections in a KX Dashboards layout. Use it for section-based content organization; use kx-tabs for tabbed switching and kx-flex-panel for non-collapsible flexible layout containers./kx-actionsUse this alongside a component skill when adding KX Dashboards interactions such as clicks, hovers, row selection, navigation, or data-source re-execution. It defines how actions are attached and triggered, not the base component itself./kx-basiccomponents-containersUse this for KX Dashboards layout containers and navigation primitives such as panels, navigation menus, and overlay drawers. Use it for structural layout needs; use kx-tabs for tabbed switching, kx-accordion for collapsible sections, and kx-flex-panel for fixed-plus-flex layouts.npx claudepluginhub kxsystems/kx-skills --plugin kx-dashboards-knowledgeOther plugins' skills for the same job