Table of contents



Official Content

Defines the programming interface for an external resource from the Knowledge Base as if it were just another object.

The external resources can be native classes of the language, assemblies (.dll) if they are developed in .NET, or classes (.class) in the case of Java. Also, they can be Enterprise Java Beans (EJB), Stored Procedures (SP), or Web Services (WS).

Creation

You can define external objects in two ways: manually or using a Wizard/Inspector.

  • Manual definition:

    You can create an EO manually from the New Object dialog and define the following according to your needs:

    • Properties: This is information such as characteristics or attributes. 
    • Methods: They are functionalities that the EO provides and can be called from other GeneXus objects. Methods can be used to perform specific operations, interact with the EO, or process data according to the needs of the application.
    • Events: These are actions or events that can trigger specific responses in the application. These events can be used to notify the application about state changes, errors, or any other type of activity. 
    • Types: They are a characteristic that facilitates the definition of generic and adaptable data structures. This allows a dynamic adaptation to different data types without the need for case-specific definitions. This means that the same type can be used with different data types. For more information check External Object Types Node.

Depending on the type of EO you will be able to define properties and/or choose certain Wizards that you can use to create EOs. The types of EOs are the following:

Use

Once an EO has been defined based on the properties related to the external resource you wish to use, the EO will be available just like any other type of data in the Knowledge Base, and you can use it from any of the objects you have. This is done in the same way as with any extended data type: by defining a variable of that type and then calling the methods and/or setting the properties you need.

Notes

External objects aren't intended for the following cases:

Availability

Types are available as Beta since GeneXus 18 Upgrade 10.

Subcribe to this category's changes
Sub CategoriesAdd a new subcategory in this category
PagesAdd a new page in this category
Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant