In this task you will learn how to add a new field to a dialog box, using the default style. In this example you will modify the simpleNewArticle objectUI, by adding to it the notes field, that is not present in the original dialog box. |
You will be able to perform this task only if: •You are able to run Ted4. |
1.In Visual Studio, open ted4_config.xml and then search for the <objectUI name="simpleNewArticle". 2.Expand the root code so you can see the structure, that contains only two attributes, still collapsed but we can read the names: they are 'name' and 'folderRef'. 3.Click after the </attribute> in the folderRef line and press Enter to make an empty line. 4.Type: <attribute name="notes"> <ui mode="Normal" /> </attribute> 7.Now, the code looks like: 8.Save changes and import them in database as explained in TASK: Save changes and import them in database. 9.Run Ted4, and then on the File menu, click New article while holding the SHIFT key: the new field is there. |
About locating available attributes
When you want to change the configuration by adding in it a new attribute, the first question is "how to know the name of the attribute to add", and the second question is "which style is suitable for the new attribute"?
Both questions can be solved by looking into the schema. See Review the schema in EdAdmin4 for the instructions how to open the schema and locate the available attributes.