Official Content

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

 

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