Editing a Reusable Function

You may need to edit a reusable function. To edit it, double-click it in the tree.

Note: Functions stored in Know-how libraries can return a value whose type is defined by the user. This value must be provided in a specific ToReturn parameter in the function body.


Before you begin: You must have created a reusable function.
See Also
Adding a Reusable Function to a Know-how Library
Creating a Know-how Library
  1. Double-click the function in the tree.
    The EKL Function Editor appears.

    • 1: List displaying the functions and enabling you to navigate functions in a library. The list appears in the dialog box if there is more than one function.
    • 2: Type of the returned value for a function returning a value. It is the type of the ToReturn parameter in the above script body.
    • 3: When selected, indicates that the current function is a method. A method can be called on the type of the first method argument.
    • 4: For each argument, indicates whether it is an input or an output of the function.
    • 5: For optional arguments, specifies a default value (can only be NULL for objects).
    • 6: Lets you define if the argument is optional or not.
    • 7: Lets you reorder the arguments.
  2. Define the type returned by the function clicking ... next to the Returned type dialog box.
  3. Define the first argument. To do so, do the following:
    1. Double-click the name cell and enter the name.
    2. Double-click the Type cell and select the type from the scrolling list.
    3. Double-click the In/Out cell to determine if the argument is an input or an output.
    4. Optional: Double-click the Optional cell to determine if the argument is optional (Yes) or mandatory (No).
    5. Assign a value to the argument if need be.
    Repeat the above step for the other arguments.
    Tip: You can reorder the arguments in the list using the up or down arrows. When you reorder arguments, optional and mandatory arguments are reordered separately to keep optional arguments at the end.
  4. Click OK when done to validate and save your work.

Note: If you want to edit a reusable function after creating it and closing the tab, do one of the following:
  • Click Load All Know-how Libraries from Database to load the libraries you created and select the library you want to edit from the list.
  • Click Load Know-how Libraries from Database to enter the name you want to edit in the Chooser and access it.