This example shows the steps required to add a new category field to the Customer table. The field in this example is called Category 3.
1) Open Table Designer, then add a custom table with fields to store the Category codes and descriptions.
Navigator > Setup > Table Designer > Table Designer > Fields tab
Add the following fields to your new Custom Table.
Field 1 |
|
Name |
Code |
Type |
String |
Domain |
Z_ARCategory3Code |
Size |
8 |
Lookup |
True (selected) |
Required |
True (selected) |
Upper |
True (selected) |
Field 2 |
|
Name |
Description |
Type |
String |
Domain |
Short Description |
Size |
30 |
Description |
True (selected) |
Note: You will need to type in the Domain name Z_ARCategory3Code. as it will not be in the drop-down list. When you are adding a new field, you need a unique domain name starting with Z_, to allow the field in the custom table to be set as a Lookup field. You can later add this field to other tables, by selecting this domain name.
2) Add an index to the table.
Navigator > Setup > Table Designer > Table Designer > Keys tab
Key 1 |
|
Name |
Category |
Unique |
True (selected) |
Primary |
True (selected) |
Parts |
Code |
3) Save the table as ARCAT3.ADB. The table will be registered in the Table Register automatically on save.
4) To create a grid based maintenance form add a shortcut to the Navigator:
Navigator > Setup > Table Designer > Table Register >
Add Form To Navigator button > Script Shortcut Editor will open.
Shortcut Type |
TD Custom Table Form |
Table Name |
ARCAT3.ADB |
Form Caption |
AR Categories 3 Maintenance |
Available in Navigator |
True (selected) |
Tab Name |
Maintain |
Action Name |
Accounts Receivable\Categories 3 |
Navigator Order |
131 (beneath Categories 2) |
Save the shortcut. You will now have a new shortcut: Navigator > Maintain > Accounts Receivable > Categories 3.
5) To maintain new categories go to Navigator > Maintain > Accounts Receivable > Categories 3.
6) To add the Category 3 Code field to an existing table, open Table Designer, then load the Customer table.
Navigator > Setup > Table Designer > Table Designer > Fields tab > Load
Note: Changes to the Customer table require exclusive access. Backup before making changes to Accredo files.
7) Add the new category to your customer table as a custom field, go to the end of the field list (Ctrl + End), press the down arrow key to add a new line:
Field |
|
Name |
Z_Category 3 (Z_ will appear automatically) |
Type |
String |
Domain |
Z_ARCategory3Code |
Size |
8 |
Upper |
True (selected) |
Custom |
True (selected) |
8) Add a custom index to the table on the category from Navigator > Setup > Table Designer > Table Designer > Keys tab.
(Ctrl + End), arrow down to add a new line:Key |
|
Name |
Z_Category 3 |
Parts |
Z_Category 3 |
Custom |
True (selected) |
9) Save changes to ARCUST.PDB (requires exclusive access). Close Table Designer.
10) Open AR Customer Maintenance to set Category 3 codes for customers: Navigator > Maintain > Accounts Receivable > Customers > Custom tab.
11) Category 3 on Customers can be: