Add a new file type definition to settings.agconf
Modify the settings.agconf file to include a new file type based on the 4dbx database schema file type.
Before you begin: Ensure you have made a copy of the template set.
- Open the settings.agconf file in your template directory.
-
In the Code Structure, find the Database section.
Notice that there is a File element defining the 4dbx
file type.
<File extension="4dbx" isManaged="true" >
- Copy and paste this File element so that you have an additional File element in your Database element.
-
Modify the extension attribute to use your own database extension, for example
4dbz;
<File extension="4dbz" >
-
Save your files.
The code should look similar to the structure below:
<?xml version="1.0" encoding="UTF-8" ?> <AGSettings version="5"> <Form> </Form> <BusinessRecord> </BusinessRecord> <BusinessApplication> </BusinessApplication> <Database> <File extension="4dbx"> <DynamicProperties> <DynamicProperty name="widget" type="ENUM" label="Widget" initialValue="Edit" description="Associated widget" editorInfo="contains:ButtonEdit|CheckBox|ComboBox|DateEdit|Edit| FFImage|FFLabel|Field|Phantom|ProgressBar|RadioGroup|Slider| SpinEdit|TextEdit|TimeEdit"/> <DynamicProperty name="label" type="TEXT" label="Label" initialValue="" description="Associated label when generating form"/> </DynamicProperties> <Items> <Item nodeName="column" dynamicProperties="widget;label"/> </Items> </File> <File extension="4dbz"> <DynamicProperties> <DynamicProperty name="widget" type="ENUM" label="Widget" initialValue="Edit" description="Associated widget" editorInfo="contains:ButtonEdit|CheckBox|ComboBox|DateEdit|Edit| FFImage|FFLabel|Field|Phantom|ProgressBar|RadioGroup|Slider| SpinEdit|TextEdit|TimeEdit"/> <DynamicProperty name="label" type="TEXT" label="Label" initialValue="" description="Associated label when generating form"/> </DynamicProperties> <Items> <Item nodeName="column" dynamicProperties="widget;label"/> </Items> </File> </Database> </AGSettings>