Quick Start: Customizing templates / Example 2: Adding a File >> New item |
Modify the settings.agconf file to include a new file type based on the 4dbx database schema file type.
<?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>