...
Code Block | ||
---|---|---|
| ||
module.exports = [
{ api: "defineDisplay", name: "display", file: "./mydisplay.json", config: {
rrnFields: {
sfl1: 'rrn1',
sfl2: 'rrn2'
}
} },
{ api: "defineTable", name: "myfile", config: { read: true, keyed: true } },
{ api: "include", file: "myprototypes.js" },
{ name: "field1", config: { type: 'char', length: 10 } },
{ name: "field2", config: { type: 'char', length: 20 } }
] |
Each entry would specify a definition api
, such as “define”, “defineDisplay”, “defineTable”, “definePrinter”, “defineProc”, or “include”. If the api
property is not specified, “define” is assumed. The entry can also specify the following:
...
The “include” api
brings in other definition files, which can export another array of definitions or provide Profound.js code to executethat defines fields, files, or procedures.
Benefits of external definitions
...