IBM Content Navigator – EDS Configuration Editor
A hands-on look at the EDS Configurator, a small web tool that replaces hand-edited External Data Service JSON files for IBM Content Navigator with a form front end. This post covers what it does, how it is built, how to deploy it on a Windows server, and the pitfalls I ran into on the way.
What this is about
IBM Content Navigator can ask an External Data Service (EDS) for field metadata at runtime: required fields, formats, choice lists and dependent properties. The service reads that metadata from JSON files on the server. In most projects I have seen, those files are maintained by hand in a text editor, directly in the target directory. That works until someone drops a comma, mistypes a symbolicName or overwrites the wrong file.
So I built the EDS Configurator: a Node.js web application that edits these files through a browser form and writes them straight to the configured directory, with a backup before every overwrite. It also has a second tab for a related chore, generating a DB2 UPDATE script for Content Manager 8 reference data.
- Create and manage document classes, and keep
ObjectTypes.jsonin sync - Edit properties in a master/detail view with a filterable field list
- Model dependent properties as variants, with
hasDependentPropertiescalculated automatically - Bulk-load choice lists from Excel paste or CSV
- Maintain language variants (
_de,_ja,_pt_BR…) - Preview the exact JSON before saving; timestamped backups on every write
The EDS file format in two minutes
An EDS directory contains two kinds of files. IBM ships reference examples for both.
| File | Purpose |
|---|---|
ObjectTypes.json | Array of { "symbolicName": "…" } listing every document class for which EDS is active |
<CLASS>_PropertyData.json | Array of property definitions for exactly one document class |
<CLASS>_PropertyData_<locale>.json | Optional localized variant, e.g. Book_PropertyData_pt_BR.json |
A property is a flat JSON object. The attributes the tool supports:
| Attribute | Meaning |
|---|---|
symbolicName | Field name (required). May contain / for OVP sub-fields |
required, hidden, displayMode | Mandatory flag, visibility, readonly or readwrite |
label, value, initialValue, maxLength | Display and default values |
format + formatDescription | Regex and the message shown on mismatch |
validateAs | Name of a server-side validator |
choiceList | displayName plus a list of choices (displayName, value, optional valid) |
dependentOn + dependentValue | Variant that is only active when another property has that value |
hasDependentProperties | Set on a parent as soon as any property references it |
Dependent properties are the part that hurts by hand. The same symbolicName appears several times in the file, and each extra variant says when it applies:
[
{
"symbolicName": "BranchOffice",
"label": "Branch office",
"choiceList": { "displayName": "All", "choices": [ ... ] }
},
{
"symbolicName": "BranchOffice",
"dependentOn": "Region",
"dependentValue": "EMEA",
"choiceList": { "displayName": "EMEA", "choices": [ ... ] }
},
{
"symbolicName": "Region",
"hasDependentProperties": true
}
]
Pitfall: forget
hasDependentProperties: trueon the parent and the dependency silently does nothing. The Configurator sets the flag on every save, so you never maintain it manually.
Architecture
The stack is deliberately boring. An Express server serves a static front end and a small JSON API, and writes files into one directory on the same machine. There is no database, no framework and no build step.
| Component | Role |
|---|---|
server.js | Express server, all /api/* routes, static hosting of public/ |
lib/paths.js | Name and locale validation; safeResolve keeps every path inside the configured base directory |
lib/backup.js | Copies a file to _eds_builder_backups/<file>.<timestamp>.bak before it is overwritten or deleted |
lib/propertyFile.js | Read/write of property files, validation, hasDependentProperties calculation |
lib/objectTypes.js | Read/write of ObjectTypes.json |
lib/sqlEnrichment.js | Turns table rows into the DB2 UPDATE statement |
public/js/*.js | Vanilla JS front end, one script per tab, no CDN, works offline |
Two design decisions are worth explaining:
- Write in place. The tool writes into the directory the EDS actually reads. There is no export/import step, and no second copy to drift out of sync.
- Targeted DOM updates. The editor keeps a state object and updates only what changed, instead of re-rendering on every keystroke. Re-rendering costs you the cursor position, and in a form with dozens of fields that is unusable.
Prerequisites
| Item | Requirement |
|---|---|
| Runtime | Node.js 18 or newer |
| Target directory | The folder your EDS reads, writable by the account that runs the tool |
| Port | 4173 by default; override with the PORT environment variable |
| Windows service (optional) | Administrator rights on the server |
| Network | A trusted internal network (see the security note below) |
Part 1 – Installation and first start
Step 1 – Install and run
npm install
npm start
# Server listens on http://localhost:4173
Step 2 – Set the target directory
On first start no directory is configured, so the settings dialog opens by itself. Enter the folder that holds (or will hold) ObjectTypes.json and the *_PropertyData.json files, press Check, then Save. The value is stored in data/config.json and survives restarts.
Note: do not point the tool at the IBM sample files if you want to keep them pristine. Copy them to a temp folder and use that for experiments.
Part 2 – Working with EDS configuration
Step 3 – Document classes
The class list combines what is in ObjectTypes.json with the property files actually present. Mismatches are flagged: a class that is registered but has no file yet, or a file that exists while EDS is not activated for that class. Creating a class validates the name against the EDS naming convention (letters, digits, ., _, -) and can register it in ObjectTypes.json in the same step.
Step 4 – Edit properties
An early version listed every property as an expanded card, one below the other. With a class that has 60 fields that is a scrolling nightmare. The editor is now split:
- Left: a slim list of
symbolicNamevalues, a filter box, a badge with the variant count and a dot for fields that others depend on. - Right: the full configuration of the selected property: every variant, all attributes and the choice list.
New properties are inserted at the top and selected immediately, with the cursor in the name field. No scrolling to find what you just created.
Step 5 – Dependent properties and choice lists
Add a variant to a property and set dependentOn and dependentValue. Choice lists accept pasted lists from Excel as well as a CSV import, which saves a lot of typing for lists like countries, cost centers or branch offices.
Step 6 – Language variants
Add a locale such as de or pt_BR and the tool creates <CLASS>_PropertyData_<locale>.json. A new variant starts as a copy of the base configuration, so you translate labels instead of rebuilding the file.
Step 7 – Preview and save
The JSON preview shows exactly what will be written. On save, the previous file is copied to _eds_builder_backups/ first:
<target directory>/
Invoice_PropertyData.json
_eds_builder_backups/
Invoice_PropertyData.json.2026-11-14T09-27-26.bak
Pitfall: there is no locking. If two people edit the same file, the last save wins. The backups let you recover, but there is no merge. For a small admin team this has been fine; for a larger one you would want locking.
Part 3 – The SQL enrichment tab
Step 8 – Why it exists
A scheduled task on an IBM Content Manager 8 server runs a DB2 UPDATE that fills missing fields in an item type’s table from a VALUES list embedded in the SQL. Keeping that list current by editing SQL is error-prone. The second tab manages the list in a table and regenerates the whole statement into the .sql file the scheduled task executes.
Step 9 – Guard rails
- Unique keys. The lookup key must be unique per file. Duplicates would make the DB2 subquery return more than one row and fail at runtime, so they are marked red and block saving, both in the browser and on the server.
- Table name. It is inserted directly into the SQL, so it is validated strictly against
^[A-Za-z_][A-Za-z0-9_]*$. - Escaping. Quotes in values are escaped correctly.
- Import. Paste semicolon- or tab-separated rows (straight from Excel), or paste an existing script and let the parser extract the value tuples. That makes the one-time migration of a legacy script painless.
Note: the generated SQL is built on the server (the authoritative version). The browser has a thin copy purely for the instant live preview. If you change the SQL structure, change both.
Part 4 – Running it in production
Step 10 – Deployment package
build-package.ps1 produces a ZIP that already contains node_modules. On the target server you unzip it and double-click start.bat (or run ./start.sh). The only prerequisite is Node.js 18+, so there is no npm install on a locked-down server.
Step 11 – Run it as a Windows service
For permanent operation, install-service.bat (run as Administrator) registers the tool as a Windows service using node-windows. It starts with Windows and restarts after a crash.
net start "ATVANTAGE EDS Configurator"
net stop "ATVANTAGE EDS Configurator"
Pitfall: the service stores the absolute path to
server.js. Do not move the folder after installing. If you must, uninstall the service, move, and install again.
Step 12 – Update an existing installation
Unzip the new package into a separate folder and run:
update-deployment.bat "D:\path\to\existing\installation"
The script verifies that the target really is an installation of this tool, backs up the old code as a ZIP, stops the service (or the running node process, after asking), replaces the application files and restarts. The data folder with your configuration is never touched.
Security: the tool has no authentication. I built a login early on and removed it on purpose, because the intended deployment is a trusted internal network. Anyone who can reach the URL can read and write the configuration, and the process writes with the rights of its service account. Put it behind a VPN or a reverse proxy with access control, and never expose it to the open internet.
Troubleshooting cheat sheet
| Symptom | Likely cause / fix |
|---|---|
| Clicking a class does nothing | The server returned an error, for example 400 for an invalid class name. Errors are shown as toasts; check the name against the naming convention |
| Settings dialog opens on every start | data/config.json is missing or not writable for the service account |
| A dependent field never changes | Parent lacks hasDependentProperties (re-save in the tool), or dependentValue differs in spelling or case from the real value |
| SQL cannot be saved | A duplicate key (red row), or an invalid table name |
| Service will not start | Check the daemon\ folder for the stdout/stderr and wrapper logs |
| Need an old version of a file back | Copy it from _eds_builder_backups/ and remove the .bak and timestamp suffix |
Conclusion
EDS is a powerful way to bring server-side field logic into Content Navigator, but the configuration experience has always been a text editor and a prayer. A form that knows the file format, validates names, handles dependencies and takes a backup before every write removes a whole class of avoidable mistakes. It also lets colleagues who are not comfortable with JSON maintain EDS configuration themselves.
Open points on my list: exact corporate branding, optional locking for multi-user editing, and some form of undo. If you run EDS and have wishes or war stories, I would like to hear them.