In this task you will learn how to make a small and simple change of the objectUI configuration, by enabling spell checker on a string field . In this example we choose the Description field of the Edit workstate dialog box in the EdAdmin4 application, defined in the EdAdmin4_Config.xml configuration file. |
You will be able to perform this task only if: •You already opened the edadmin4_config.xml file as explained in TASK: Open for editing one or more files with objectUI elements ordered the view as explained in TASK: Display an ordered view of objectUI elements, located the editWorkstate objectUI and expanded its Description attribute. |
1.On the Description field definition in editWorkstate objectUI, defined in the EdAdmin4_Config.xml configuration file, add a new line as highlighted below (respect the characters case): <attribute name="description"> <ui mode="Normal"> <template kind="MultiLineString" useSpellChecker="yes" xmlns="http://www.teradp.com/schemas/GN4/1/XmlSchemaExt.xsd"> <objectUI> <web maxRows="4"/> </objectUI> </template> </ui> </attribute> 2.Save changes and import them in database as explained in TASK: Save changes and import them in database. 3.Close and run again EdAdmin4 and reopen the Edit workstate dialog box as explained in TASK: Get to know the Workstate entry dialog and recognize its fields. 4.Notice the changes in the dialog box: now, on the right edge of the Description field appeared the spell checker button - write something misspelled, select the word and then click the button - the spell checker suggestion appear. Conclusions Where provided, it is extremely simple and quick to add functionalities to the objectUI dialog boxes. More reading |