In this task you will learn how to make mandatory a field in a dialog box. The standard Edit article dialog box contains the Credit field that is not mandatory, so you can leave it empty. In this task you will learn how to make it mandatory. This example affects the editArticle dialog box in ted4_config.xml. |
You will be able to perform this task only if: •You can start Ted4, display a listing of articles on the Articles or Shell main tab, and then display the properties of the article. |
1.In Visual Studio, open ted4_config.xml and then search for the <objectUI name="editArticle". 2.Expand the code so you can see the tabs structure and then expand also the credit attribute: 3.Change the definition line to become: <ui tab="titleTab" mode="Normal" forceRequired="true"/> 4.Save changes and import them in database as explained in TASK: Save changes and import them in database. 5.Close and run again Ted4, reopen the Edit article dialog box and then try to close it without typing something in the Credit field - the red bullet appears next to the field and the dialog won't close - you need to enter something. |