Major Features
This FrameMaker API has three distinct advantages over the standard FrameMaker table functions:
With the addition of the Table API, imported tables may have much more sophisticated table format than tables imported directly through the normal FrameMaker method, as well as more sophisticated paragraph formatting. For example, customized ruling and shading, headings, footings, and titles, and cell straddling may all be stored in the table format. This is accomplished by using the reference pages to store table formats, which the API uses as templates. Character formatting is accomplished by inserting markup symbols into the text file.
The Refresh Tables feature of this API allows you to update all the tables in a document or a book file at once. This reduces the chance of data entry error and saves an enormous amount of time.
Processing Overview
When user selects a table to insert, the Table API gathers information from three sources: the ASCII text file containing table data, the current FrameMaker document, and the initialization file, which it uses to create a finished table in the document.
The Table API first uses the filename extension of the ASCII text file and uses it to find the table format in the initialization file. (See Chapter 3.) It then searches the reference pages of the current document for a table using the same format.
If the appropriate format is found, it is copied to the body page and used as a template into which the imported data is copied. If a table with the appropriate format is not found on the reference pages, a new table is created using the Frame table format name from the table catalog.
The API then reads the ASCII text and inserts it into the table, formatting the text according to the rules in the initialization file and markup symbols in the text. The finished table appears in the document.
When the user selects the Refresh Tables option, the API searches for imported tables, deletes them, and reinserts the tables using any updated information in the ASCII text files. This can be applied to a single document or an entire book file.
Reference material
Additional reference material may be found in the following documentation: