Handling Read-Only Pages
This document describes the consistency rules that have been defined for functions that were switched from version 6 to read-only pages mode. It only lists the normalization rules, and assumes that the purpose of the switch is to display the data exactly as it existed in version 6. Make sure you carefully read the instructions given in the dedicated section of this documentation before developing the code that performs the switch from version 6 to version 7.
The table below summarizes the recommendations when building representations corresponding to version 6 functions.
Rule | Details | Function access | The menu items giving access to read-only pages must open the page in the same tab, and not create a new tab. |
---|---|
Search policy | Carefully define the entities in which a search is useful, and avoid indexing too many properties. Usually, only codes and descriptions are indexed. Indexing a date or an amount is possible, but it should be done as an exception. |
Query facet | Columns defined in a query:
|
Detail facet |
|
Lookup facet | This facet is not mandatory if it is not used in another Edit facet. |
The following rules have been defined to ensure a normalization of the classes that will replace version 6 objects. The naming conventions are as follows:
Element | Naming rules | Examples, if relevant |
---|---|---|
Class name | Use the code of the main table of the object. | The BPC object is replaced with the BPCUSTOMER class. |
Child classes linked to a secondary table. | Use the table's abbreviation. | In the BPCUSTOMER class, the BPARTNER embedded instance is coded BPR . |
Properties of the class present in the table. | Use the column name in the table to ensure the automatic transfer. | - |
Collections for array properties that are not child class collections. | No normalization rule. Use the most meaningful names, and avoid unnecessary prefixes. | DIMENSIONS can be used to define a collection of dimension codes and dimension types. |
The Supervisor manages additional services for the development partner. It reduces the number of lines a development partner will have to write if the recommendations provided are followed.
Issue | Recommendation |
---|---|
Display pictures | The display of binary data such as pictures is managed by the Supervisor if you follow the corresponding rules. |
Quantity linked to unit | The handling quantity linked to units is managed by the Supervisor. It only requires to reference the unit at the quantity field level. |
Links on properties | The links management for properties that reference other classes is managed automatically by the Supervisor if the data type dictionary is filled. You can also refer to the links definition section. |
References | Use references when a property in a class is the key of another instance of another class (for example, when a field is a link to another object in version 6 terminology). This is done by creating a dedicated data type associated with the right class. In this case:
You will have to read the table record manually if additional information from the referenced record has to be displayed. Caution: Do not over-use embedded classes to manage the automatic reading of columns in the linked table record. This can be disastrous from a performance point of view. |