| Using the Designer > Data Formats > Application Data in Flat Files for ILOG JViews Diagrammer |
Application Data in Flat Files for ILOG JViews Diagrammer |
INDEX
PREVIOUS
NEXT
|
You can import application data from a flat file into the Designer.
As an example, Code Sample 5.3 and Code Sample 5.4 show the initial Arizona data files for nodes and links respectively as loaded in Loading Data From a Flat File. (The data is shown with spacing for readability.)
A flat file is a text file containing the same number of values on each line. The values are separated by a separator character. The separator characters supported by the Designer are comma, semicolon, space, and tab. You can request autodetection of the separators. If a flat file contains values exported from Microsoft Excel, it is sometimes referred to as a CSV (comma-separated values) file.
In a flat file, the first line must contain the names of the data properties and each subsequent line must contain the property values for an object, with the properties in the same order as on the first line.
Nodes and links must be loaded from separate files.
You must define a mapping between the data properties in the file and the properties proposed by the Designer in the New Diagram Wizard. Some data properties may be unmapped and therefore not used in the diagram.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |