In this task you will learn how to make mandatory a searchfield in a dialog box. This is available in the GN4 version 2.5 or newer. |
You will be able to perform this task only if: •You can access the configuration files such as *_config.xml and be familiar with the editing methods. |
1.In Visual Studio, open appropriate configuration file *_config.xml and then locate the appropriate <searchObjectUI name="xxxx". 2.Locate the line that start with <ui mode="... 3.On the end, add required="true" as in this full line example <ui mode="Normal" labelPosition="Above" required="true"> 4.Save changes and import them in database as explained in TASK: Save changes and import them in database. 5.When required is true, an asterisk is displayed following the label or search control if no label is displayed. The asterisk will be displayed in red if the user attempts to perform the search without entering the required search criteria. |