anonymousLog in-Register  
Groups

Modules - Dynamic calls

Same page but  with a 'rename safe' link (used for external links)

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?s

Dynamic execution of Private objects

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

Say, for example, that object X is private to 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.

 

 
Created: 2 July 2013 07:39 PM by gp Last update: 13 May 2014 07:01 PM by rodrigol