4D v16.3Using references in static text |
||
|
4D v16.3
Using references in static text
Using references in static text
You can use the current values of fields and variables as well as table and field names in your static labels in order to set up dynamic interfaces. You can insert these dynamic labels into the following types of static text:
Note: Dynamic references based on XLIFF (XML) architecture, particularly suitable for interface translation, can also be used in these labels, as well as menu and button labels. For more information, refer to Appendix C: XLIFF architecture. In the Form editor, you can choose the version of the labels to display by selecting either Show Name or Show Resource in the Object menu. You can embed field names or variable names in static text areas. When the text area is displayed or printed, the values of the fields or variables from the current record are substituted. Use embedded fields and variables to create mail-merge documents and in report headers and footers. You can embed the field or variable name by inserting it between the < > symbols.
You can specify how an embedded field or variable is displayed by inserting a semicolon followed by a display format directly after the field or variable name. For example, the embedded variable <vTotal;$###,##0.00> calculates the amount of the person’s total pay for the month and displays it in a dollar format. For more information about display formats, refer to Display formats. For an example of mail-merge documents using embedded fields and variables, refer to Creating mail-merge documents. You can use a pop-up menu to insert a field reference into a block of static text:
You can insert dynamic table and field names into your forms (as static text). When you place dynamic table or field names in your forms, they are automatically updated throughout your database when you modify the table or field name in the Structure editor or when the 4D SET TABLE TITLES and SET FIELD TITLES commands are called. This feature is particularly useful for translating the structure of the application that is visible to the user.
Remember that since field and table numbers correspond to their creation order, it is possible to add or rename tables and fields without affecting the system of dynamic references. Note: Dynamic field names are available as an option on the Options page of the Form Wizard (refer to Creating a form using the Form Wizard).
See also
|
PROPERTIES
Product: 4D
HISTORY
TAGS structure virtuelle ARTICLE USAGE
4D Design Reference ( 4D v16) |