4D v14.3SET TABLE TITLES |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
SET TABLE TITLES
SET TABLE TITLES
SET TABLE TITLES lets you mask, rename, and reorder the tables of your database that appear in standard 4D dialog boxes within the Application environment (when these editors are called using 4D language commands). For example, this command can modify the display of tables in the Query editor in Application mode. The tableTitles and tableNumbers arrays must be synchronized. In the tableTitles array, you pass the names of the tables as you would like them to appear. If you do not want to show a particular table, do not include its name or new title in the array. The tables appear in the order you specify in this array. In each element of the tableNumbers array, you pass the actual table number corresponding to the table name or new title passed in the same element number in the tableTitles array. For example, you have a database composed of the tables A, B, and C, created in that order. You want these tables to appear as X, Y, and Z. In addition you do not want to show table B. Finally, you want to show Z and X, in that order. To do so, you pass Z and X in a two-element tableTitles array, and you pass 3 and 1 in a two-element tableNumbers array. The optional * parameter indicates whether or not custom names defined using this command are used in 4D formulas:
Note: If your application provides access to the formula editor (for example via the Quick report editor), it is necessary to pass the * parameter in order to ensure interface consistency. Use the SET TABLE TITLES command for:
Notes:
You are building a 4D application that you plan to sell internationally. Therefore, you must carefully consider localization issues. Regarding the standard 4D dialog boxes that can appear in the Application environment and your forms that use dynamic names, you can address localization needs by using a [Translations] table and a few project methods to create and use fields localized for any number of countries. //TRANSLATE TABLES AND FIELDS project method At this point, if you execute the following line, you create as many records as needed for a Spanish localization of the tables and fields titles. TRANSLATE TABLES AND FIELDS("Spanish") After this call has been executed, you can then enter the [Translations]Translated Name for each of the newly created records. Finally, each time you want to show your database’s standard 4D dialog boxes or forms with dynamic titles using the Spanish localization, you execute the following line: LOCALIZED TABLES AND FIELDS("Spanish") with the project method LOCALIZED TABLES AND FIELDS: //LOCALIZED TABLES AND FIELDS global method Note that new localizations can be added to the database without modifying or recompiling the code. |
PROPERTIES
Product: 4D
HISTORY
Modified: 4D v11 SQL SEE ALSO
Get last table number ARTICLE USAGE
4D Language Reference ( 4D v12.4) Inherited from : SET TABLE TITLES ( 4D v11 SQL Release 6) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||