>Hi Dragan,
>
>no, the factory operates outside the scope of the form. It's a function that is part of the core framework, not a loader class on the form:
>
>AddObjectX(Thisform, "name", "id")
>
>This function resolves id, determines it needs to add two objects to Thisform: Name and envName. The classes used for these two objects are specified in a separate definition file.
I also had to resort to a function, because of the datasession. The function will operate in the form's own session, whereas a global object such as a factory would create it in its own - which is usually 1.