Altova MapForce 2024 Enterprise Edition

To create the FlexText template:

 

1.Start MapForce, and open a new mapping file.

2.Select Insert | Text file, or click the Insert Text file icon ic-text.

3.Click the "Design graphically new structure ..." button.

Dlg_InsertTextComponent

4.Enter a name for your FlexText template, and click Save to continue (e.g. Flex-tutorial.mft). An empty design, along with the "Open" dialog box are displayed.

flex-tut01

5.Select the Flex-tutorial.txt file in the ...\MapForceExamples\Tutorial folder, and confirm by clicking Open.

flex-tut3

The text file contents are now visible.

Clicking the "Node Text in Design view" icon ic-fl-nodetext, displays the active container contents, in the Sample Text pane.

Activating "Auto-collapse unselected node text" ic-fl-autocollapse , displays the content in the active container, all other containers which contain content, are collapsed.

 

flex-tut4

6.Click the container icon at the top right, and select Split once from the pop-up menu. Two new containers appear next to the Split once container. For more information on the Split once condition, please see: Split once.

flex-tut5

The default settings of the Split once container are visible: fixed length, horizontal and split line=1.

 

The result of these default settings are also visible:

 

The top container contains the first line of the text file, highlighted in the Split once container.

The lower container contains the rest of the text file.

© 2017-2023 Altova GmbH