External Objects (EO) allow you to access external resources from the KB as if they were just another object. These 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, they can be Enterprise Java Beans (EJB), Stored Procedures (SP), or Web Services (WS).

Creation

We can create an EO manually from the New Object dialog, indicating each property/method, or we can use a Wizard/Inspector to make our work easier.

The properties and/or Wizards that we can use to create the EOs vary based on the type of EO. The types of EOs are the following:

To create an EO through Wizards/Inspectors, under the Tools/Application Integration menu we have the following options:

Use

Once an EO has been defined based on the properties related to the external resource we wish to use, the EO will be available just as any other type of data in the Knowledge Base and we can use it from any of the objects we 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 we need.

Note

External objects aren't intended for the following cases:

  • To interact with external Data (data on tables maintained by other applications), use Data Views. That is, create a Data View object or let the Database Reverse Engineering Tool do the work for you.
  • To interact with external jscript, take a look at User Controls' target='_blank'>4940' target='_blank'> User Controls.

{{{Table of contents:GeneXus objects}}}




Subcribe to this category's changes
Sub CategoriesAdd a new subcategory in this category
PagesAdd a new page in this category