Naming rules for messages
Internal message names need to follow certain rules and depend on how the message is used.
- Menu item
menu_NAME
where NAME — is the name of the function called when clicking on this menu item, also this value matches the contents of the node tag describing this menu item.
- Interface header
title
all tables and forms have titles, in addition, you can declare a title_new message for a form, which will be used if the form is opened to create a new element (there is no elid tag in the data)
- Table column
NAME
the name of the text message must match the internal name of the column (name attribute of the col tag)
- Toolbar button
short_NAME
Short caption displayed below the button, NAME is the internal name of the button (name attribute of the toolbtn tag).
hint_NAME
Tooltip displayed when the mouse cursor is over the button, where NAME is the internal name of the button (name attribute of the toolbtn tag).
hint_NAME_disabled
Tooltip displayed when the mouse cursor is over an inactive button, where NAME is the internal name of the button (name attribute of the toolbtn tag).
msg_FUNC_NAME
Operation confirmation message, required for buttons with group type. NAME is the internal name of the button (name attribute of the toolbtn tag), FUNC is the name of the function (name attribute of the metadata tag). When the message is displayed, a list of selected items (the value is taken from the key field) separated by ", ' (comma and space) will be added at the end, and a question mark "?" will be added at the end of the message.
- Form page
NAME
Form page title, NAME internal page name (name attribute of the page tag)
- Form field
NAME
Message to the left of the data entry field, where NAME is the internal name of the field (the name attribute of the field tag).
hint_NAME
Tooltip displayed when the mouse cursor is over a field, where NAME is the internal name of the field (name attribute of the field tag).
- Error messages
msg_error_NAME
The message displayed when an error with code 8 occurs (arbitrary text messages). NAME corresponds to the obj attribute of the error tag. The message may contain the _param_ macro, which will be replaced by the contents of the error tag.
- Drop-down list values
NAME
Messages in dropdown lists described by the msg tag, NAME matches the contents of the msg tag describing the item in the dropdown list.
- Data columns values
COL_NAME
Messages displayed in tables when a column (col) has type (attribute type) msg. COL — column name (name attribute of the col tag), NAME — contents of the tag with data for this column.
- Icon tooltips in the data table
hint_p_NAME
Tooltip displayed when the mouse cursor is over an icon in the table, where NAME is the internal name of the field (name attribute of the field tag). The contents of the tag with data, if it exists, is added to this message.
Internal message names need to follow certain rules and depend on how the message is used.