4D v13.4Component installation and compatibility |
|||||||||||||||||||||||||||||||||||||
|
4D v13.4
Component installation and compatibility
Component installation and compatibility
To install a component in a 4D database, simply copy the structure file of the matrix database into a Components folder available for the host database. You can put the Components folder in two places:
For more information about this, refer to Location of PlugIns and Components folder. 4D looks for matrix databases of the .4db (interpreted matrix database), .4dc (compiled matrix database) or .4dbase (package type matrix database) types in the Components folder. Other elements, in particular data files or user structure files (.4DA), are ignored. You can use aliases or shortcuts to these matrix databases. This can be particularly useful during the development phase of a component since any changes made in the matrix database are immediately passed on to all the host databases. The Components folder can contain any custom files or folders that are necessary for the operation of the component (xliff, pictures, and so on). On the other hand, it cannot contain plug-ins or Components subfolders. If either of these items are present, they will be ignored by 4D. The plug-ins used by the components must be installed in the host database or in 4D itself. A host database running in interpreted mode can use either interpreted or compiled components, in Unicode mode or not. It is possible to install both interpreted and compiled components in the same host database. However, if several compiled components are present, they must be executed in the same Unicode mode. A host database running in compiled mode cannot use interpreted components. In this case, only compiled components can be used. Similarly, the Unicode mode must be the same for host databases and components. The following table summarizes the component use possibilities:
(*) If several compiled components are installed, they must operate in the same Unicode mode. Notes:
For more information about inter-component and host database-component exchanges, refer to Interaction between components and host databases. An interpreted component developed under Mac OS can be installed in a Windows environment and vice versa. Components installed in the server database are automatically transferred to the client machines via a mechanism resembling that of plug-ins. We do not recommend modifying a component in client/server mode since the changes are stored locally and the component will not be updated on the server machine. The components are loaded when the host database is opened.
Unlike other shared objects (see Shared and unshared objects), shared project methods have a “physical” existence in the database and are not simply created by code execution. Consequently, naming conflicts can occur when a shared project method of the component has the same name as a project method of the host database. In this case, when the code is executed in the context of the host database, it is the host database method that is called. This means that it is possible to “mask” a component method with a custom method (for example to obtain a different functionality). This masking will be indicated by a warning in the event of compilation of the host database. Note: If two components share methods having the same name, an error is generated when the host database is compiled. |
PROPERTIES
Product: 4D |
|||||||||||||||||||||||||||||||||||