This section describes how custom data entry pages are created.
What does this section cover?
Create Custom Data Entry Pages
For an introduction to data entry pages, go to Data Entry Pages.
Create New Data Entry Pages
To create a new data entry page, you need to create two XML files: a layout file and a definition file under <custom_project>/web/WebContent/pages/dataEntry/<module_name>.
The custom data entry definition file for the new page must have a unique file path.
The custom data entry layout file for the new page must follow this naming convention: <definition_page_filename>layout.xml. More than one layout files can exist per data entry definition page. In such cases, a default data entry layout file per database must be defined in templates properties file (templates.properties)
As you can see in the example above, for the name, alternative code and log information components, generic components were used. For more information on generic components and how to use them, go to Use Generic Components.
Customise Existing Data Entry Pages
To extend the system's release functionality, by adding new components to an existing data entry page, both custom data entry definition and layout files must be created. To extend the system's release functionality, by just changing the layout of the existing components, only a custom data entry layout file must be created. Both definition and layout files must be created under <custom_project>/web/WebContent/pages/dataEntry/<module_name>.
The custom data entry definition file must follow this naming convention: <release_definition_page_filename>Custom.xml and include the new components ONLY.
The custom data entry layout file must have a unique file path, include ALL sections and components that need to be displayed and be defined in templates.properties file.
Templates Properties File
The templates properties file (templates.properties) is used for defining the default data entry layout file, generally or per unit, when more than one layout files exist per data entry definition page, and must be created under <custom_project>/web/WebContent/pages/dataEntry.
To define the default layout of a data entry page, you have to add the following line to templates.properties file: <definition_page_file_path>~mp~default=<directory_name>/<layout_filename>.xml
To define the default layout of a data entry page for a specific unit, you have to add the following line to templates.properties file: <definition_page_file_path>~channeltypes~<unit_id>=<directory_name>/<layout_filename>.xml
Note that .xml is omitted from definition_page_file_path.
If no default layout page is specified for a specific unit, the default layout page will be used by the system. If no default layout page is specified either, the release layout page will be used.
For a full list of data entry page attributes, go to Data Entry Pages Documentation