About History RecordsHistory records are added to administrative objects as a result of any of the following events:
For each history entry, a persistent record is stored in the database that contains the following information:
For custom history that is explicitly added with the
For create or modify records that the system generates automatically, the descriptive string consists of the first 2,040 characters of the MQL command that creates the change. If the change is made through the business executable, the MQL command that is recorded as the descriptive string is the same as that generated for business scripting.
The MQL
Command-Line Interface for History RecordsThe Business graphical user interface does not support the display of history records. These are available only through the command-line interface. To add a history record with the add command, use the following format: add <admintype> NAME history STRING; To add a history record with the modify command, use the following format: modify <admintype> NAME history STRING; History records are appended to the end of the output for print commands such as: print <admintype> NAME; The output format of print commands for admin objects with history records is as follows: history index:1 type:custom user:creator date:Day Mmm dd, yyyy hh:mm:ss AM/PM ZONE text:xxx
In the above,
The history keyword is not available for user-owned workspace objects, such as the following:
Printing History for Administrative ObjectsThe print command for administrative objects supports a history selectable to request the printing of history records only. This command has the following syntax: print <admintype> NAME select history; The format of the output of such a print command is as follows: history type:custom user:creator date:Day Mmm dd, yyyy hh:mm:ss AM/AM ZONE text:xxx There are no subselects for the history selectable. In other words, it is not possible to select subsets of history records. If history records exist, you can print information about the objects without printing their history using either of these methods:
Adding Multiple History RecordsYou can add multiple history records to the same or different objects in a transaction. Date and time are calculated at the time the history addition is requested. If a transaction involving history addition is aborted, the history record is not written. History with MQL Import/Export CommandsMQL import or export commands read or write, respectively, history records along with any administrative object. Localization of History Text StringsThe text string input for a history record is treated the same way as any other string attribute, specifically:
Extended History RecordsBy default, history records are truncated for description and string attribute changes. You can change this behavior using the following system command:
When
By turning the
Once a history record has been truncated, turning
|