--- title: "EDI Output - Lasernet Form Editor 9 - XHTML, CSV, EDI, XML, JSON" slug: "edi-output-lasernet0form-editor-training" description: "An output can be created in the EDI format. In this exercise, you are proposed to create a structure of the output in the EDI format." tags: ["EDI", "Form Editor", "Lasernet 9 "] updated: 2026-03-06T07:38:19Z published: 2026-03-06T07:38:19Z canonical: "kb.lasernetgroup.com/edi-output-lasernet0form-editor-training" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.lasernetgroup.com/llms.txt > Use this file to discover all available pages before exploring further. # EDI Output **Applies to:** Lasernet 9 An output can be created in the EDI format. The Form Engine retrieves data from the input grab file, processes it, maps it to fields in the output, and automatically converts the result to EDI. In this exercise, you are proposed to create a structure of the output in the EDI format. > [!NOTE] > Note > > This article describes a software version that is no longer supported. Although the software will no longer receive updates or technical support, existing documentation, such as this article, will be retained for reference purposes but will no longer be updated. If you have any questions, contact [Lasernet Support](https://support.lasernetgroup.com/new-ticket). ## Exercise Download and import the attached configuration called **04. EDI Output in Lasernet Developer 9**. Afterward, navigate to the **Forms** section and open the **Sample** form. Start by opening the template based on which you create the output. Then, follow these steps: 1. On the toolbar, click **Open Template**. 2. In the **Open Template** dialog displayed, select a template, and then click **Open**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1627471676219.png) It is the right time to add patterns and rearranges and edit their formats. To make adding patterns and rearranges to the input possible, switch to the **XML** tab in the output. 1. Use the **Rearrange** tool to add rearranges to the following elements in the input: - **** - **** - **** - **** - **** - **** ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1627471677087.png) 1. Edit a format for the rearrange added to the **** element. To this end, double-click the rearrange. 2. In the **Edit XML Rearrange** dialog displayed, switch to the **Formats** tab. 3. From the **Format category** drop-down box, select **Date**. 4. Switch to the **Input format** tab, and then select the **Override form input format** check box. 5. Click the **Add** button. 6. In the dialog displayed, select **dd-MM-yyyy** from the **Regional profile** drop-down box, and then click **Ok**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1627471676470.png) Once you are done, click **Ok** in the **Edit XML Rearrange** dialog to confirm changes. 1. In the input, add a pattern to the <**Body_CustInvoiceTrans**> element by using the **Pattern** tool available on the Developer toolbar. As a result, the pattern is added to each <**Body_CustInvoiceTrans**> element available in the input. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1627471675513.png) 1. Afterward, use the **Rearrange** tool available on the Developer toolbar to add rearranges to the following elements under the <**Body_CustInvoiceTrans**> one: - **** - **** - **** - **** - **** As you can see, rearranges are added under each <**Body_CustInvoiceTrans**> element available in the input. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1627471674831.png) Once you have added rearranges, edit a format for the rearrange added to the ****, ****, and **** elements. For all of them, set the Number format category. Additionally, for the rearrange added to the **** element, select the **Override sheet output format** check box on the **Output format** tab of the **Edit XML Rearrange** dialog, and then type **0** in the **Number of decimals** text box. For the rearranges added to the **** and **** elements, select the **Override sheet output** **format** checkbox on the **Output format** tab available on the **Formats** tab of the **Edit XML Rearrange** dialog. 1. In the output on the **XML** tab, right-click the **** node, and then click **Expand All** on the context menu that appears. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1627471676841.png) 1. Double-click a node in the output to edit its properties. 2. Select the **Use default value if no rearrange data is provided** checkbox. Once you are done, click **Ok**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1627471677482.png) Do it for every single node available in the output. As a result, you can see that a value in each node is not dimmed anymore and is shown in black. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1627471676652.png) It is the right time to connect the pattern and rearranges you have added to the input with elements in the output, one by one, in a sequence they are available in the input using any of two possible options: either dragging a pattern/rearrange from the input to the required element in the output or selecting the required element of the output by tagging its path. For more information, see [CSV Output](https://kb.lasernet.online/docs/csv-output-lasernet-form-editor-training). ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1627471675785.png) Add a script to the output. To this end, follow the steps listed below: 1. On the Developer toolbar, click **Text**. 2. When a pointer becomes a cross, click the node in the output as it is shown in the following image: ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1627471677265.png) 1. At the mouse release, the **New Insert Text** is shown as a node value. Double-click it. 2. In the **Edit XML Rearrange** dialog, switch to the **Objects** tab. 3. Select **Script** from the **Object type** drop-down list. 4. In the Script Editor box, type **Line + 1**; to insert a counter in the LIN segment. The **Line** variable is a Form Engine script variable. It contains the pattern's line number on which the rearrange is placed. The **Line** variable starts with the line number set to 0 (zero). Once you are done, click **Ok**. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1627471675211.png) 1. Preview your final document by clicking the **Preview** button on the toolbar. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/1627471676025.png) ## Attachments - [04.-EDI-Output.lnconfigx](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/04.-EDI-Output.lnconfigx)