Official Content

Many GeneXus commands and functions support dynamic execution of objects (see Call command, Link command, etc. for details). This article describes how dynamic execution interacts with Module object properties.

Dynamic execution of Private objects

Even though it isn't a recommended technique, you _can_ dynamically execute an object that you cannot execute statically.

Say, for example, that object X is private to the Module M (see Object Visibility property) and object Y (out of module M) tries to execute it.

If Y uses a static call:

M.X()

It gets an error message "Validation of Procedure 'CallPrivate' failed. error: Program 'X' does not exist." when saving Y, or at specification time. However, if Y uses a dynamic call:

&MX = "M.X"
Call( &MX)

There will be no errors either at specification or execution time, related to object privacy.

Modules and Expand dynamic calls property

When dynamic calls are expanded, objects that are not accessible by the caller (i.e. private to other modules) are not included.





Last update: November 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant