Creating an initial MMT session

  1. Create an MMT header session.
    1. Start the Create a New Infor LN Software Component wizard. Select File > New > New LN Component.
    2. On the first page of the wizard, specify the LN Studio activity in which you create the new component and the Component Type. The component type must be Session. To continue, click Next.
    3. On the second page of the wizard, provide the new session with a valid Name. Use the code of an existing package and module and a new session number not already in use.
    4. On the second page of the wizard, fill in the other session properties as follows:
      • Select the Multi Main Table Window Type.
      • For the MMT header session, specify a Details Session as Synchronized Dialog. For example, specify the Order Header details session as synchronized dialog for the Order MMT header session. Users can start this session through the Details command in the MMT header session.
      • In the Label of Object field, select the label to be used in the header session's menu items.

        See Label of object.

    5. To create the session and exit the wizard, click Finish.
  2. Customize the MMT header session.
    1. Edit the form of the MMT header session. Only include fields that are required for entering a new record. All other relevant properties are specified in the Synchronized Dialog in a separate window.
    2. Ensure the MMT session fits into Web UI. Web UI supports 1024x768, but because the sessions are hosted within Web UI, they should be smaller. Try your session in Web UI to see if it fits. To maximize a session within Web UI, press ALT+F11. This allows you to see the full session screen.
    3. The fields specified in the dynamic form of the MMT header session are displayed in the upper part of the MMT session, above the satellite tabs. By default, these fields should be read-only. They should only be accessible when a new record is inserted in the header session. To achieve this, use 'add.set' in the program script.

    To edit forms, use the Session Editor's Form Definition tab.

    See Form Definition tab.

    For details on program scripts, see the Infor ES Programmers Guide (Infor Customer Portal KB2924522).

  3. Define the Label of Object for each satellite.
    Edit the properties of each satellite session in the Session Editor. In the Label of Object field, select the label to be used in the satellite's tab description and menu items.

    See Label of object.

  4. Link satellites to the MMT Header session.
    To link the desired satellites to the new MMT header session:
    1. Open the MMT header session in the Session Editor.
    2. Go to the Satellite Sessions tab and specify the satellites to be linked.

      You can only link sessions that have the List Window window type.

      Per satellite, enter the field relations used to synchronize the MMT header session with the satellite session. To enter a field relation, specify the name of the relevant field in the header's main table, followed by the name of the corresponding field in the main table of the satellite. For example, specify the Order Number field from the Order Headers table and the Order Number field from the Order Lines table.

  5. Create or modify program scripts and DAL scripts.
    The MMT header session and satellite sessions are separate sessions. Therefore you must define a program script (UI script) for each of them, and optionally modify the DAL scripts of the corresponding tables. Other session components, such as Reports, Text fields and Indices must be defined per session.

    When a satellite tab is activated for the first time, the corresponding session is started and its startup-sections, before.program, after.form.read, init.group.1, are called.

    The program script of the satellite session can run in two modes:

    Stand-alone mode This is the ‘normal’ mode; used when the session is executed as stand-alone session.
    Satellite mode This is the special MMT mode. Use the is.mmt.satellite() statement to check whether a session is running as an MMT satellite session. You can program different behavior for the satellite mode if required.

    In the satellite mode you can perform the following actions:

    Hide fields Hide certain form fields since they are not relevant in the satellite mode. However, there is only one form for both modes. You must define all fields you want to use in either one of them, in the form.
    Enable/disable satellite Enable or disable a satellite within an MMT session in a particular case. The tab of a disabled satellite is still visible in the MMT session, but cannot be selected or accessed. To disable a satellite, use the disable.satellite() function. To enable it, use enable.satellite(). Call these functions from the global after.form.read section in the header session's program script.
    Hide/unhide satellite Hide a particular satellite using the satellite.invisible() function. With this, you can still make the satellite visible at runtime. For example, you can check authorizations and hide/unhide satellites for specific users. You cannot hide/unhide satellites dynamically based on the availability of data in a satellite.

    For details on program scripts and DAL, see the Infor ES Programmers Guide (Infor Customer Portal KB2924522).