Duplicate an Infor LN Software Component

Use this wizard to make a copy of an LN Studio component in your local workspace. The copy is an exact duplicate, with the exception of the name of the component. In the wizard, you must specify this name. Make sure you enter a new, unique name.

The wizard saves the copied component on the file system and, if applicable, adds it to source control.

You can only duplicate a component if you are authorized to do so:

  • You cannot duplicate components that were automatically generated by LN Studio, such as a label with the Session, Table or Report Description context when you create a new session, table or report.
  • You cannot duplicate components from an LN Studio Activity that has been re-assigned to another user. After an LN Studio Activity has been re-assigned, you loose the ownership of the activity's components.

Duplicating an LN Studio software component

  1. Start the wizard for an existing component

    In the Activity Explorer view, right-click the LN Studio component you want to duplicate and select Duplicate Component. This starts the Duplicate an Infor LN Software Component wizard.

    The component that is to be copied must be present in the current LN Studio Activity project.

    The Duplicate an Infor LN Software Component wizard displays the following information about the component you selected for duplication:

    Field Description
    Project The current LN Studio Activity in which the component is duplicated.

    The LN Studio Software Project to which this activity belongs is indicated behind the activity name, between square brackets.

    Component Type The type of component, such as Library or Session.
    Source Name The name of the original component that is duplicated. This name is the identifying attribute of the component.
    Source Description The description of the original component that is duplicated.

    All these properties of the existing component are displayed in read-only mode.

  2. Specify properties for the new component

    Specify the following properties for the new component:

    Field Description
    Target Name Specify a unique component name.

    The format of the name is component specific. Most component names must start with the code of the package in which the component is used. Some component names must additionally include the code of the involved module. For more information on the allowed values, see the wizard's messages and the description of the editor of the concerned component.

    After you copied a component, you cannot change the component's name anymore. For existing components, the name is read-only, because the name forms the identifying attribute of the component. Changing a component's name would make it another component.

    Target Description

    Specifying a Target Description is optional. If you do not fill in a description, the component inherits the description of the component from which it is copied. The component description can be any ASCII text with a length of less than 60 characters.

    Note: You cannot specify a Target Description for labels, because the label description is one of the label variants and all label variants are duplicated.
    Program Script This field is only displayed when you duplicate a session.

    Select one of the following options:

    Duplicate Script

    The UI script of the original session is copied. The new UI script is linked to the target session.

    Select this option if the new session must have its own UI script.

    Create Reference to Source Session

    The new session is linked, through a session reference, to the UI script of the original session, so that both sessions share the same UI script.

    See the description of the Session reference field in the online help of the Session Editor.

    DAL options These options are only displayed when you duplicate a DAL script.

    The duplicate wizard copies the selected (source) DAL script to a new (target) DAL script. In addition, the wizard also copies the table, to which the source DAL script belongs, to a new table. The new DAL script contains references to the original table. Use the following options to automatically update these references, so the new DAL script refers to the new table.

    Replace code '<name of the original DAL script>'

    If this check box is selected, the wizard automatically replaces all references to the original table name by references to the new table name.

    If this check box is cleared, the references are not updated, so the new DAL script still contains references to the original table name.

    Replace description '<description of the original DAL script>'

    If this check box is selected, the wizard automatically replaces all references to the original table description by references to the new table description.

    If this check box is cleared, the references are not updated, so the new DAL script still contains references to the original table description.

  3. Duplicate the component

    To duplicate the selected component in your local workspace and to exit the wizard, click Finish. The duplicated component appears in the Activity Explorer view of the Application perspective.

    You can now edit the duplicated component through the corresponding editor. For example, you can edit a duplicated library through the Library Editor.

    Some components have dependent child components, such as forms, scripts, libraries or labels. When you duplicate a component, these child components are copied as well (see remarks in table below).

    Component Remarks
    Session When you duplicate a session, the session's form is also copied. If you select the Duplicate Script option, the UI script is also copied.
    Domain When you duplicate an enumerated domain, the labels used for the enumeration are also copied.
    Label When you duplicate a label, all label variants are duplicated (including the label description).