...
Code Block |
---|
%hash = ( SampleTable => [ { Email => { header => 'Email Address', display => 'key,header,text', value => [""] }}, { Name => { header => 'Name', display => 'header,text', value => [""] }}, { Age => { header => 'Age', display => 'header,text', value => [""] }}, { Married => { header => 'Married', display => 'popup', value => ["true", "false"] }}, { Children => { header => 'Children', display => 'popup', value => [0,1,2,3,4,5,6,7,8,9,10,11,12,"Many"] }}, ] ); |
SampleTable => [ | Is the name of the table, this should match the name, e.g. Table-SampleTable.nmis |
---|---|
{ Email => { header => 'Email Address', display => 'key,header,text', value => [""] } }, | Each Column in the table is defined with an entry like this. In this case the column is called Email To define each column necessary fields are:
|
{ Married => { header => 'Married', display => 'popup', value => ["true", "false"] } }, | This field would not be displayed as a textbox in the main view but instead would contain a select list (drop down) to select true or false from. |
Display Options
Possible values for display are:
Value | Description | NMIS Version |
---|---|---|
header | NMIS 8.1.1 | |
key | NMIS 8.1.1 | |
readonly | ||
text | ||
Adding a New Table to NMIS
...