Defining Query Form Labels

Labels for your query type definition are defined in a properties file in the common configuration layer. Open configuration-root/com/escenic/framework/ui/Datasource.properties (or create it if it does not exist), and add label definitions as follows:

datasource.field.field-name.label=field-label

where:

  • field-name is the name of a field in one or more of your query type definitions

  • field-label is the label to be displayed next to this field

You can also define placeholders for fields in a similar way:

datasource.field.field-name.placeholder=placeholder-text

(A placeholder is the dummy text ("Please type your name", for example) sometimes displayed in a text field before the user has entered a value.

To define a label for the query itself, enter:

datasource.query.query-name.label=query-label

If two of your query definitions contain fields with the same name, then they will share the same label/placeholder definitions in Datasource.properties. If you want them to have different labels, then you must give them different names.