Release Notes
08 May 2026: ver. 4.0.7 Beta
Controller/AutoOpenandController/PagingToolsbased on model'sIsLargeflag- A Reference field whose target Model has
IsLarge: Truerenders as a searchable lookup popup
Form Date / Time / DateTime — no more spurious rule errors during typing
kxForm.notifyFieldChange(view, field, this)accepts an optionaltriggerElargument: when the input fireschangewhile the user is still typing a date segment (years with fewer than 4 digits, partialHH:MM), the whole notify cycle is aborted client-side and never reaches the server- Other date / time / datetime-local inputs on the same form that hold a partial value are also omitted from the POST body, so the server preserves the record's existing value for those fields instead of binding an out-of-range TDateTime
- Matches the Kitto1 behaviour where
AfterFieldChangerules ran only when the user left the field with a complete value - The same logic was previously fixed only on grid filters (
DateSearch/TimeSearch/DateTimeSearch,hx-trigger="change[...]") — the form-side fix is now centralized inkxForm._isCompleteDateTimeInputand applies to every editor that callsnotifyFieldChange. See Form — partial date / time values during typing
Date / Time / DateTime AsString — formatted instead of raw Double
TKField.AsStringon aDate,TimeorDateTimefield now returns a formatted value (01/07/2026) instead of the raw TDateTime Double (46204)- Affected any code path that displayed
Field.AsStringto the end user: rule error messages, log output, debug strings, template panels - Root cause:
TEFDateDataType.ValueToString(and itsTime/DateTimesiblings) inSource/EF/EF.Tree.pashad thetry / DateToStr / exceptblock commented out for years, leaving only theEFVarToStrfallback — for a VariantvarDouble(produced when aTDateis assigned to a Variant —TDate = type Doublein Delphi) that fallback stringifies the raw float - Fix: the
try / exceptblock is restored withVarToDateTime(AValue)normalization, so any internal representation (varDate,varDouble,varInteger,varString) is formatted viaDateToStr/TimeToStr/DateTimeToStrusing the currentFormatSettings(UserFormats/Date,UserFormats/TimefromConfig.yaml).EFVarToStrremains as a safety net for non-convertible Variants
Date / Time / DateTime — spurious raises along the variant pipeline
TEFDataType.ValueToDateandTEFDataType.ValueToTimeinSource/EF/EF.Tree.pasused an uninitialized localTFormatSettingsrecord: onlyShortDateFormat/DateSeparator(or their time counterparts) were set, the other fields (TwoDigitYearCenturyWindow,TimeSeparator, …) contained stack garbage. The same defect was fixed inValueToDateTimein r163 but the two siblings had been missed. Now both initialize the record viaTFormatSettings.Create('en-US')before the targeted overrides.ValueToDatealso now callsStrToDate(it's a date-only parser, not datetime) on the string variantTEFDateDataType.ValueToString/TEFTimeDataType.ValueToString/TEFDateTimeDataType.ValueToStringare formatters, not parsers, but they were callingVarToDateTime(AValue)even when the Variant already held a string: on a non-en-US locale (e.g. it-IT, whereShortDateFormatisdd/mm/yyyy) an ISO string like'2026-05-12', or any non-date string, raisedEVariantTypeCastError/EConvertError. The exception was caught by the surroundingtry/exceptbut Delphi's debugger pauses on every raise. Added anelse if VarIsStr(AValue) then Result := VarToStr(AValue)short-circuit before thetry: string variants are already a textual representation and are passed through unchanged. Thetry ... VarToDateTime / DateToStr ... exceptbranch stays for numeric variants (varDoubleproduced byDateToValue, orvarDate), preserving the r225 intent of formatting46204as2026-05-12- Net effect: no more raises along the Date / Time / DateTime variant pipeline when the value is already a string, regardless of server locale
JWT / ACL hardening
Auth: JWTno longer emits the legacy<AppName>session-id cookie norkx_db— the JWTsidanddbclaims carry the same info- Server-side ACL enforcement on every
HandleKX*route (view/data/save/delete/form/lookup/blob/upload/tool/detail*/wizard) - New auth gate in
DoHandleRequestreturns 404 on protected routes for unauthenticated requests (public views excluded) - Toolbar Add/Edit/Delete/Dup stay
disabledfor ACL-denied users - Per-thread JWT context cache uses
TObjectDictionary<TThreadID, ...>
IDE / wizard
- New RAD Studio IDE plugin gallery:
KittoXIDE.bplregisters 4 entries under File > New > Other > KittoX Projects (Standalone .exe / Desktop .exe / ISAPI .dll / Apache .dll) - Three paths to scaffold a new app: KIDEX standalone, the new IDE gallery, and
MCP-KittoX project_create_app - New project default:
Auth: TextFilewith a ready-to-useHome/FileAuthenticator.txt(admin/admin demo accounts) so the generated app authenticates out of the box, no users table required. JWT envelope kept as default.AccessControldefault switched toNullto avoid deny-all post-login on a brand-new project.DB.FD.yamltemplate now setsODBCAdvanced: TrustServerCertificate=yesso SQL Server ODBC Driver 17/18 connects on first try - Model Wizard
Beautify namesoption now also handles DB names with spaces (Northwind-style:Quarterly Orders→QuarterlyOrders,Sales by Category→SalesByCategory); the original name is preserved inPhysicalNamefor the SQL layer
MCP-KittoX
- New tool
models_create_from_db— the headless equivalent of the Model Wizard. AI agents (Claude Desktop, Claude Code, Codex, …) can reverse-engineer Models from a database connection conversationally: defaults todry_run: true(preview only); passdry_run: falseto commit. Output is byte-identical to what the visual wizard writes - 9 tools now implemented (was 8)
- Better error reporting from MCP tools: errors are now propagated verbatim to the JSON-RPC client (class name + message) instead of being replaced by a generic fallback
Setup / tooling
- Setup installer ships
MCPKittoX.exealongsideKIDEX.exesharing OnGuard license Tools/SetVersion.ps1now also bumps the 12 dprojs of the 3 official examples (HelloKitto, TasKitto, KEmployee — 4 deployment variants each), and inserts<VerInfo_Release>and other VerInfo tags when the .dproj has them stripped (Delphi removes VerInfo tags whose value is 0)
01 May 2026: ver. 4.0.6 Beta
- New
Auth: JWTwrapper authenticator (signedkx_tokencookie, sliding expiration, programmatic key registration) - New
AccessControl: JWTreading grants fromkx_aclclaim snapshotted at login, with optional DB fallback - Updated examples to JWT Auth (TasKitto / HelloKitto / KEmployee)
- Updated TasKitto example with three-tier ACL (
admin/user/viewer) - Multi-database support on TasKitto and HelloKitto: SQL Server / PostgreSQL / Firebird
- Cross-dialect macros:
%DB.TRUE%/%DB.FALSE%,%DB.DATEDIFF,%DB.DATETIME_FROM - Login form with optional "Environment" combo for multi-database apps (
Auth/DatabaseChoices) - Native boolean types on the three sample DBs (
BIT/BOOLEAN); Firebird setup is now SQL-script-only - Firebird Activity Dashboard views translated from the SQL Server originals
- TasKitto SQL Server DDL split (tables / views in separate scripts because of T-SQL batch rules)
- New
Tools/SetVersion.ps1: one-shot version bump across constant, dproj, README and Inno Setup - New
Projects/BuildAllPackagesD{10_4,11,12,13}.ps1wrappers: rebuild Core + Enterprise per Delphi version - YAML metadata files included in every
.dproj(visible in Project Manager, KIDEX highlighting) EF.Logger.TextFileactive out-of-the-box for the standalone Indy hosts
23 Apr 2026: ver. 4.0.5 Beta
Architectural refactor: DB connection ownership unified in TKConfig
- New public API
TKConfig.DatabaseFor(Name) CreateDBConnectionmoved frompublictoprotected- New public API
TKConfig.CreateStandaloneDBConnection(Name) ClearDatabaseandDestroyInstancenow clear both**FDatabaseandFDatabasesInDBConnection/InDBTransactionhelpers
22 Apr 2026: ver. 4.0.4 Beta
- Manual column resize in grids
- Tooltip on truncated grid cells (only when actually truncated)
- Fix: in-memory lookup popup closing on resize
- Tooltip on TreePanel menu nodes
- Multi-column sort in grids
- Multi-page form validation
- Edit-mode accent border for combobox and other non-text-editable fields
- SunEditor readonly rendering
- Checkbox styled like other form inputs
- DetailTables Style (Tabs/Bottom/Popup)
- Added CSS
.disabledclass
23 Apr 2026: ver. 4.0.3 Beta
- Editing-mode field borders
- Form toolbar anchoring
- DateTime field fixes
- Fixed KittoEmailSenderSrvc
- Grid keyboard navigation
- SunEditor theming and resize
- Dialog focus
- DetailTables Style (Tabs/Bottom/Popup)
- ExportExcel / ExportFlexCel
- Fixed Date/time filters SQL conversion
- Date/time filter trigger
- Error dialog consistency
Controller: Windowrestored backward-compatibility
19 Apr 2026: ver. 4.0.2 Beta
- Simplified Apache/IIS deployment: static resources served internally, no RewriteRule needed
- New deployment mode: Windows Service + reverse proxy (nginx/Apache/IIS) with install/uninstall scripts
- Fixed ViewMode to EditMode save bug in master-detail forms
- Implemented Apply*Rules event chain (EditRecord, NewRecord, Duplicate, AfterShowEditWindow)
- Master-detail: "Confirm" button (save-cache) and "Save All" only visible in ViewMode
- HTTP error feedback (htmx:responseError) with Retry/Reset dialog
- Updated Italian localization (.po/.mo) with all KittoX strings
- Extensive documentation updates (deploy, proxy, localization, form state machine, routing)
- Added DDL and DML script for Example databases
09 Apr 2026: ver. 4.0.1 Beta
- Fixed Field Rules client-side (ForceUpperCase, ForceCamelCaps, MinValue/MaxValue)
- Fixed PackageGroup
- Fixed modal lookup for Reference fields
- Fixed Example for Apache modules
07 Apr 2026: ver. 4.0.0 Beta (first public release)
First public release of Kittox, the fourth generation of the Kitto framework. Complete rewrite of the client-side from ExtJS to HTMX + AlpineJS + TemplatePro, with a new modular server architecture.
Architecture
- HTMX + AlpineJS client: server-generated HTML fragments with partial page updates via AJAX. No heavy JavaScript framework.
- Attribute-Based Routing (RTTI): URL routing via Delphi custom attributes, inspired by MARS/WiRL. Resource classes register in
initializationsections; the framework discovers them via RTTI. Dependency injection for request context ([TKXContext]). Dynamic JS/CSS injection viaTKXScriptRegistry. - Open Core licensing: Core (Apache 2.0), Enterprise modules (AGPL-3.0 / Commercial), KIDEX (Commercial only). Separate packages:
KittoXCore.dpkandKittoXEnterprise.dpk. - Server-Side Store: persistent in-session data stores with record state tracking (
rsNew,rsClean,rsDirty,rsDeleted), transactional master-detail saving (INSERT/UPDATE/DELETE in a single DB transaction), blob lazy-loading, and store lifecycle management (save/cancel/close/timeout).
Controllers
- List (grid with CRUD toolbar, server-side paging, sorting, column layouts, row colors, grouping)
- GroupingList (collapsible group headers)
- Form (data-aware editing with field pages, detail tabs, ViewMode/EditMode state machine)
- Wizard (multi-step data-aware with Back/Next/Finish, per-step validation)
- BorderPanel, TabPanel, FlexPanel, TreePanel, TilePanel, HtmlPanel, StatusBar, ToolBar
- Enterprise: ChartPanel (Chart.js), CalendarPanel (EventCalendar), GoogleMap (Google Maps JS API), Dashboard (auto-refresh)
- Card View: List controller with
TemplateFileNamefor custom HTML card layouts with full CRUD - Desktop Embedded Mode: KittoX app inside a WebView2 (TEdgeBrowser) VCL window
Data & Database
- Database agnostic: pluggable via FireDAC (preferred), DBExpress, ADO
- Master-detail transactional save: master + all detail stores persisted in one transaction
- Detail CRUD in memory: add/edit/delete detail records without DB round-trips until final Save All
- Record state after Load: records loaded from DB correctly marked as
rsClean - Server-Side Store cache: blob lazy-load from session store, store released on save/cancel/close/timeout
Forms & Editing
- Form State Machine: ViewMode (Edit / Save All / Close) and EditMode (Save / Cancel) with CSS-based button toggling
- Save-cache endpoint: saves master to memory without DB persistence, enables Save All workflow
- Detail tables: lazy-loaded tabs, auto-built views, FK pre-fill on Add, transactional cascading save
- Unified Editor Factory (
Kitto.Html.Editors): centralized HTML input generation shared between Form and FilterPanel - Help button: configurable via
Defaults/Help/HRefin Config.yaml, appears in forms (first button) and list toolbar (after Refresh)
Mobile Support
- Automatic mobile detection: user agent + screen size cookie
- Fullscreen dialogs on mobile:
IsModal+Maximizedforced for all fragment views/forms viaAdjustControllerForContext - Panel properties:
IsModal(dialog overlay),Maximized(fullscreen viewport),AllowClose(X button and Close button) - Width/Height getters: return 0 when Maximized is True (original values preserved for restore)
kxApp.openView: single JS function for view opening from menus (TreePanel and TilePanel use identical logic)body.kx-mobileCSS class: forces dialog and login fullscreen on mobile devices- TilePanel: tile-based menu controller for mobile home pages, with touch support (
role="button",touch-action: manipulation) - Home view selection:
HomeTinyView(phone),HomeSmallView(tablet),HomeView(desktop)
UI & UX
- Toast notifications: shown after save ("Data saved") and delete ("Data deleted"), auto-dismiss 3 seconds
- Error handling: DB errors (EEFDBError) non-fatal with clean messages (driver prefixes stripped). Session-level errors trigger reload.
- Draggable dialogs: all message boxes and error dialogs draggable by title bar via
kxMakeDraggable - Refresh button: in CRUD toolbar (visible by default, hidden with
PreventRefreshingor on read-only controllers) - Column sorting: click to sort ascending, click again for descending, sort arrows via CSS pseudo-elements
- Double-click to open: automatic edit/view form from grid rows
- Session lost detection: fatal error dialog with reload on server restart
- Timeout handling: configurable
AjaxTimeoutfor both HTMX and fetch channels, Retry/Reset dialog
Filters
- Filter Panel with:
FreeSearch,List,DynaList,ButtonList,DynaButtonList DateSearch,TimeSearch,DateTimeSearch,NumericSearch,BooleanSearch- Layout with
ColumnBreakandLabelWidth
Custom Layouts
- Custom Layout for Grid and Form
- Grid Layout with Column position, alignment
- Form Layout "multipage", with collapsible regions
Authentication & Access Control
- Pluggable authenticators:
DB,DBCrypt,TextFile,DBServer,OSDB,Null - Pluggable access controllers:
DB,Null - BCrypt password hashing, Google OTP (TOTP) two-factor authentication, QR code generation
- Session abstraction:
IKXSessionProviderwithTKXCookieSessionProvider(JWT-ready for future)
Tools
- CSV export (
ExportCSVTool), Excel export via ADO (ExportExcelTool), SQL tool, file download/upload - FlexCel integration (commercial, Enterprise edition)
- ReportBuilder integration (commercial, Enterprise edition)
- DebenuQuickPDF for PDF merging
Deployment
- Standalone (VCL desktop or Windows service with embedded Indy HTTP server)
- Desktop Embedded (WebView2 inside VCL window)
- Console (headless server)
- IIS (ISAPI DLL via WebBroker)
- Apache (module via WebBroker)
KIDEX (Visual IDE — Enterprise)
- RTTI-based property discovery (replaced 215 MetadataTemplate YAML files)
- 6 custom YAML attributes:
YamlNode,YamlRequiredNode,YamlContainer,YamlSubNode,YamlChildType,YamlEnumValue - SVG icon support (Material Design Icons)
- Database reverse engineering (model creation from DB schema)
- Project wizard, validators, tree editors
Examples
- HelloKitto: simple party/invitation manager (Parties, Girls, Dolls, Invitations)
- TasKitto: activity tracking with dashboard, charts, calendar, projects, customers
- KEmployee: employee/customer management with master-detail, card views
Supported Delphi Versions
Available from Delphi 10.4 to Latest (Win32 or Win64 platforms).

Related links: www.embarcadero.com - https://learndelphi.org
