Scot,
The only method provided within the Cloverleaf toolset to maintain a lookup table is via the GUI (manually).
However, when faced with the challenge of very dynamic tables what I have done is to export the information from the source (typically a DB but sometimes a spreadsheet) in a CSV file.
That exported file is then either FTP’d to the Cloverleaf platform or picked up via FTP from the source system (using Cloverleaf Fileset/FTP protocol).
Once placed on Cloverleaf, the Tcl proc is executed and it makes a new copy of the table (making a backup of the old Table). Thus it is essential the exported CSV file be a full dump of the source information.
Once the new table is built, either a purge caches must be done or the process/processes using the table stopped and started to refresh the Table in the Cloverleaf engine memory.
Another potential is if you have ODBC (or perhaps JDBC) then you can actually (via Tcl) query a DB at the inbound TPS, or pre-route UPoC or even within the Xlate itself to get the information real time (not using the Cloverleaf Lookup Table but the actual ‘system of truth’). There are issues associated with this kind of usage so be sure to do the appropriate brainstorming if you think you would like to go this way.
If you think you would like a copy of the Tcl procedure that builds a new copy of a table from a CSV file, email me and I will send it to you along with user doc. You can use it for an example or if it fits, as is.
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.