I recently needed to create a new text / string field that could store information in a particular table, like "Customers" table.
- First we need to create the data type. Open AOT - Navigate to Data Directory - Extended Data Types (EDT) - Right Click, Create New String
- Fill the basic information in field properties, Name, Label, Help Text for users, String Size in characters. In my case, I wanted a tax reg. number storage field for both vendors and customers. So I named it VATRegID and labelled it VAT Registration Number, string size 15 char. On saving, it will synchronize.
- Now to make it available to store customer and vendor data, AOT - Data Directory - Tables - Custtable - Fields, drag the extended data type into the fields. Then to have it appear under a particular fieldgroup (SalesTax is the fieldgroup I wanted it under), drag the field onto salestax fieldgroup. Save the changes to custtable. It should now appear in customer setup menu under salestax.
- Did the same thing for vendors. Dragged the EDT under AOT - Data Directory - Tables - Vendtable - Fields.
- Synchronize the tables and compile the application.
Comments
Post a Comment