Creating a Function Import

This section provides instructions to create a Function Import.

Context

To create a Function Import proceed as follows:
  1. Select Function Import under Objects in the pallete, press and hold down the left mouse button, drag the object onto the OData Model Editor.
  2. Drop the object by releasing the mouse button. A graphical representation of the entity type object is created in the graphical editor.
    Alternatively, you can also click on Function Import in the palette and click inside the OData Model Editor to create a complex type.
    Note The new Function Import will be created with a unique name by default.
    The context pad of the complex type has the following menus:
    • Delete - Choose to delete the function import from this model.
    • Add Parameter - Choose to add a new input parameter to the Function Import.
    • Add Simple Return Type - Choose to add a simple return type.
    • Add Complex Return Type - Choose to add a complex type. Ensure that you have created a complex type. the drop-down list displays all the available complex types.
    • Add Entity Return Type - Choose to add a entity type. Ensure that you have created a entity type. the drop-down list displays all the available entity type in the model.
  3. Do the following to complete the function import definition:
    • Select the function import and navigate to the properties view.
    • Click the drop-down list in the Type field and select an entity type.
  4. Right click and select Delete in the resulting menu to select an element.

    The Delete key from the keyboard can also be used to delete an element.

    On selecting Delete, the Confirm Delete window appears.

  5. Click Yes to delete the entity type.