KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Multiple levels of components
PRODUCT: 4D | VERSION: 11.3 | PLATFORM: Mac & Win
Published On: March 4, 2009

Installing components to a host database is a pretty straightforward process. All you need to do is put the component inside the "Components" folder and it is ready to be used. But what happens when the component uses a component, acting as both a component database and host database?

Putting a sub-component into the component database's "Components" folder does not work. 4D returns a syntax error when trying to execute a method from a sub-component: "The method is not found".

There can be only one level of "Components" folders, but a component database in that folder can access methods of all the other components in the same folder. Therefore, to avoid this problem, all sub-components must be included into the host database's "Components" folder.

Commented by Charlie Vass on April 15, 2009 at 7:47 AM
Leaving a component in the components folder of a component does not create a error just by being there, however it adds "weight" to the install. Remove any sub-components to reduce the size of files that have to be from Server to Client or downloaded by customers.