There is no direct way to connect to a database with FrameMaker ExtendScript. It is possible to write C++ code to interact with scripts, so you could write some kind of connector in C++ that would work with ExtendScript. ExtendScript can work with XML files, so another alternative would be to export your data from the database to XML and use ExtendScript to parse and import it to FrameMaker.
I would take a serious look at FrameScript. FrameScript has built-in ODBC support so you can connect directly to your database and use SQL queries to get your data into FrameMaker. It also has ActiveX support, so you can use ADODB technology to get data from your database. I have done database import in a bunch of my scripts over the years. Please let me know if you have any questions or comments. --Rick
Thanks, Rick. I should mention that this would not be a "one-and-done" import of data. Specifically, each time we publish the IPC, our current product's publishing engine merges the data from the database with the document to produce the output. The code would have to be executed each publishing run. Can FrameScript handle that?
Absolutely. You would either have to specifically run the script whenever the data changes, or you could have the script automatically run when you open a particular document.
Great. Thanks, Rick.
If you are interested in doing a no-cost, no-pressure consultation about this project, please let me know. We can meet via GoToMeeting and I can give you some ideas for putting it all together. Thanks. Rick
Another route that you might want to consider is Datazone's Miramo Personal Edition. This tool was designed just for this type of operation.
I use it to create catalogs, directories and all sorts of other database driven publications.
You might want to also see this thread for additional info: http://forums.adobe.com/thread/1380660?tstart=0