AMT Help Files

External Interfaces

The External Interface definition type is used to make relations visible between reports that call an external library and the external interface definition.

It is important to note that the actual external library is not being accessed, this object is merely a visual aid to help developers keep track of all the objects where the external library is called.

 

Creating an External Interface Definition

To create a new External Interface Definition, do as follows:

Adjusting an external interface definition

If you double click on an external interface definition, the following options for that external interface definition will appear:


Deleting an external interface definition

An external interface definition can be removed from the repository through the screen "Revision Control".

Using external interfaces

After an external interface has been defined and checked in using the Revision Control, objects that call the external library with the same name as the external interface definition will display a relation to the external interface in the 'Relations' node after being generated.

 

Example:

A report named 'CALLTEST' is calling an external library named CSharpExternalLibrary.dll

si-param := 'This is input for the DLL.'
call ('TestCall.CallHello''CSharpExternalLibrary.dll')
if getlastresult = ''
    sme ('result: 'si-param)
else
    sme ('Error in dll CallTest!')
endif

 

An External Interface object named 'CSharpExternalLibrary' is created, optionally defined and checked in.


After the report has been generated, its 'Relations' node lists the external interface.


And the 'Relations' node of the External Interface lists all the reports where the library is called, with the called routine listed as comment.