Creating a function

Use the Function Properties window of the Create a New Infor LN Software Component wizard to initialize and create a new function in your local workspace. This window is the wizard's second dialog box.

For more general information about the wizard, see Create a New Infor LN Software Component wizard.

Note: Before you use the new function in an LN application, build the function in LN Studio. If the auto-build preference is switched on, the function is built automatically.

Creating a function

  1. Start the wizard and select the component type.
    1. Start the wizard.
    2. Specify the software development activity for which you want to create the new function. Select Function as the component type.
    3. To go to the Function Properties window, click Next.
  2. Specify the required function properties.

    In the Function Properties window, specify this information:

    Name
    This is a text value. The function name must start with the code of the package and module in which the function is used.
    Description
    The description of the function.

    All fields of the Function Properties window are mandatory. After you created the function, you cannot change its name anymore. You can change the description.

    For more information about the function properties, see Function Editor.

  3. Create the function.

    To create the function in your local workspace and to exit the wizard, click Finish. The created function appears in the Activity Explorer view of the Application perspective.

    The wizard of LN Studio will automatically create some general source code for the new function, including a header with metadata and an empty 'skeleton' function.

    You can now edit the new function in the Function Editor.