Navigator > Setup > Memory Table Builder
You can use the Memory Table Builder to generate MaxBasic code that will build a memory table based on a file schema. Use the generated code in your scripts wherever you need to create the memory table.
Designing memory tables is a specialised task. For more information, contact your Accredo QSP.
Input Format |
Select the format of the input file. Note: If your file contains embedded line-feed characters within fields, as can occur in CSV files saved from MS Excel, you should select User Delimited with the default delimiter
|
|||||||||||||
Input File |
The name of the memory table import file. |
|||||||||||||
Separator |
Select the character that separates fields in the file. |
|||||||||||||
Terminator |
The character to signify the end of the record. |
|||||||||||||
Excel Worksheet
|
Used for Excel Worksheet files, select the worksheet to input from. Note: Do not use apostrophes (') in worksheet names, as this can cause problems. |
|||||||||||||
First Line Contains Header |
Selected, input file contains a Header line. |
|||||||||||||
Memory Table Name |
Enter a meaningful name for the memory table. |
|||||||||||||
|
Add Fields |
Adds fields from the Input File to the list of fields. You will be prompted to enter which line number contains the header line. |
||||||||||||
Fields Tab |
||||||||||||||
No. |
The ID number of the field, and the field's position on the memory table. |
|||||||||||||
Name |
The name of the field on the memory table. May be entered with spaces, these will be stripped for the field name and retained for the default display label. |
|||||||||||||
Display Label |
An override for the label to be displayed for the field, leave blank to use the field name as entered. |
|||||||||||||
Type |
The type of data stored in the field affects the disk storage each field occupies. See Table Field Types for field types available. |
|||||||||||||
Domain |
Select from:
If an existing Domain (excluding Custom) is selected, the Type, Size and Upper fields use the existing data (read-only). The field and the data have the usual Accredo rules, for example, GL Account codes must be formatted ####.###. If the Custom Domain is selected, the Size and Upper fields can be specified. To add a new Domain for a new Lookup field, a unique domain name called Z_{tablename} is required. The unique domain name will not be in the drop down list, so must be keyed in. When the table is saved, the table must be saved as {tablename.adb}. The Lookup field must be Selected when a custom domain is entered. A Domain is required when a field in a custom table will be used as a Lookup field in other tables. A Domain is required for all fields with type String. |
|||||||||||||
Size |
You can set the maximum number of characters allowed in String and Variant Type fields. The maximum field size is based on the number of characters, 1 character = 1 byte. |
|||||||||||||
Width |
The width of the field in characters. The digit 0 is used as the standard width character. If the field contains all upper case characters, set it wider than the number of characters to see all the data in the field. |
|||||||||||||
Required |
Selected, a field value is required before saving. Clear, a record can be saved if the field is empty. |
|||||||||||||
Visible |
Selected, the field will be shown in the memory table. Clear, the field will not be visible in the memory table. |
|||||||||||||
Grid Toolbar |
||||||||||||||
|
Expand Toolbar |
Expand the toolbar to give access to all toolbar options. Press |
||||||||||||
|
Insert |
Insert a new field at the selected line. |
||||||||||||
|
Move |
Select a field and reorder the list. |
||||||||||||
|
Delete |
Delete the selected field. |
||||||||||||
Buttons |
||||||||||||||
|
Generate |
Generates the MaxBasic code to build the memory table based on the selections, and opens in the MaxBasic Script Editor. |
||||||||||||
View Data... |
Formatted data from the input file displays in the grid. You can check the format validity against the data. |
|||||||||||||
|
Table Schema |
Load a custom table or an Accredo table schema. |
||||||||||||
|
Load... |
Loads options for an existing memory table, to use or edit. |
||||||||||||
|
Save... |
Saves the memory table builder options. Saved files can be loaded into the Form Designer Memory Table Designer. |
||||||||||||