DynamicCall External Object

Official Content
This documentation is valid for:

Allows setting the call options to a dynamically called object.

DynamicCallEXO_KBExplorer DynamicCallEXO_Structure

Scenario

When calling an object, you can configure how the object will be called by setting the object's CallOptions.

For example:

MyPanel.CallOptions.Type = CallType.Popup
MyPanel()

However, when the call is dynamic –that is, the object's name is in a variable–, you cannot use this approach. That's where the DynamicCall External Object comes in.

Methods

SetOption

Sets the specified call option value to the dynamic object.

Parameters:

  • ObjectName: Character – The object name for which the call option will be set.
  • CallOption: DynamicCallOption, GeneXus.Common – The option to set.
  • Value: Varchar – The value to set in the given call option.

Example:

&dynObject = "MyPanel"
DynamicCall.SetOption( &dynObject, DynamicCallOption.Type, "Popup" )
Call( &dynObject )

Domains

DynamicCallOption

Enumerated domain with the valid call options to set dynamically.

Values:

Scope

Generators: Android, Apple

Availability

Currently in Beta channel, expected to be released in GeneXus 17 Upgrade 1.