Home >Online Product Documentation >Table of Contents >Modifying Existing Definitions
In addition to creating new definitions, you can also modify existing definitions in an EDI Structure. For example, you can add an element reference to an existing composite. When you modify an existing definition, Stylus Studio imports a local copy of this definition from the EDI repository and places it in your EDI to XML conversion. Imported definitions are displayed in bold in the EDI Structure pane in the EDI to XML editor. See Ways to Customize an EDI Standard for more information on this topic.
Other examples of modifying existing definitions include creating:
You can also modify an existing definition by changing one of its properties. See Modifying Definition Properties for more information.
You modify an existing definition by adding or inserting another definition to it.
To add a definition, choose Add from the shortcut or Stylus Studio menu.
To insert a definition, choose Insert After or Insert Before from the shortcut or Stylus Studio menu.
You can create a segment reference for a message or a group. You can reference an existing segment or create a new segment and reference that.
Alternative: Select EDI > Add > Segment Reference from the Stylus Studio menu.
The Add Segment Reference dialog box appears.
You can create a group for a message or another group. You can use an existing segment for the group's loop trigger or create a new segment and use that.
Alternative: Select EDI > Add > Group from the Stylus Studio menu.
The Group Definition dialog box appears.
You can create an element or composite reference for a segment, composite, repetition, variation, or another element or composite reference. You can use an existing element or composite for the element or composite reference, or create a new element or composite and use that.
Alternative: Select EDI > Add > Element or Composite Reference from the Stylus Studio menu.
The Add Element or Composite Reference dialog box appears.
You can create a repetition for a segment, composite, segment or composite reference, or another repetition. A repetition is created as a child of the definition. It is given the label REPEAT in the EDI Structure.
Alternative: Select EDI > Add > Repetition from the Stylus Studio menu.
The repetition is added to the definition.
You can create a variation for a segment or a composite. A variation results in the cloning of the segment or composite on which it is based. The original definition is given the label in the EDI Structure of # Base; the first variation is labeled #1. Subsequent variations are labeled #2, #3, and so on. The first # is the symbol for the tree node, and not part of the name.
Alternative: Select EDI > Add > Variation from the Stylus Studio menu.
The variation is added to the definition.
You can add a code to an element, an element reference, a code list, or another code. You can create a single code (99, for example) or a range of codes (AA to AZ, for example).
Alternative: Select EDI > Add > Code from the Stylus Studio menu.
The Code Definition dialog box appears.