Skip to main content

Define Segments

A segment is one dimension of a material, such as colour or size. Its elements are the values it can take, such as red and blue. In the Define Segments window you define segments and their elements once, and each material then picks what suits it when you define its combinations. A segment defined here is not used by any material until you choose it in Materials Segmentation Management.

Opening the window​

From the ribbon: Systems > Segments > Define Segments. The Segments group appears when the material dimensions (segments) feature is in your licence. You also need the permission Define Segments on the Operations page of Users Management. The window opens over the main window and has a maximize button.

The buttons of the window depend on the permissions of the section Segments on the Operations page. The section appears in Users Management once at least one segment is chosen in Materials Segmentation Management.

PermissionButton it enables
Add SegmentsNew
Edit SegmentsModify
Delete SegmentsDelete

The Define Segments window​

At the top is a row of buttons, and below it two tables: the segments, and the elements of the segment selected in it. The first segment is selected when the window opens, and the second table changes when you select another segment. Segments and elements are listed in the order they were created. The Close button closes the window.

ButtonWhat it does
NewOpens an empty Edit Segment window for a new segment. Dimmed without the permission Add Segments.
ModifyOpens the Edit Segment window for the selected segment. Dimmed if no segment is selected, or without the permission Edit Segments.
DeleteAsks "Are you sure you want to delete?" and then deletes the segment and its elements. Dimmed if no segment is selected, or without the permission Delete Segments.

Right-click a segment to see Delete and Modify. They work like the buttons.

ColumnContent
Name (segments table)The segment name.
Latin name (segments table)The segment's Latin name.
Code (elements table)The element code.
Element NameThe element name.
Latin name (elements table)The element's Latin name.

After a delete or a save the program reads the segments again and selects the first one.

The Edit Segment window​

It opens with New or Modify, and its title is Edit Segment in both cases. It cannot be resized.

FieldDescriptionRequiredValues and rules
NameThe segment name.YesFor example Color. The program trims spaces at both ends. Not the same as another segment's name.
Latin nameThe segment's Latin name. It shows in the English interface.NoFor example Color. Not the same as another segment's Latin name.
Digits countThe number of characters each element code must have.NoA number from 0 to 8. 0 means no length is forced. With 2 every code must have two characters, such as 01.
Segments ElementsThe table of the segment's elements. Type new elements in the last row.Yes, at least one elementSee the next table.

Columns of the elements table. An empty row at the bottom lets you add a new element:

ColumnDescriptionRequiredValues and rules
CodeThe element code. It becomes part of the combination code, after the material code and a dash.YesFor example 01. Not repeated among the segment's elements. Must match Digits count if you set it.
Element NameThe element name. It becomes part of the combination name.YesFor example Red. Not repeated among the segment's elements.
Latin nameThe element's Latin name.NoFor example Red. Not repeated among the segment's elements when filled.

Right-click an element to see Delete. It removes the selected row from the table without asking, and the element is removed from the file only when you save.

ButtonWhat it does
SaveChecks the segment, saves it and closes the window. Dimmed until the name and the digits count are valid, something has changed, the table has at least one element, and every element has a code and a name.
CloseCloses the window. After any change the button text becomes Cancel, and the program asks "Do you want to ignore the inputs and close the window?".

On Save the program asks "Are you sure you want to complete saving?" for a new segment, or "Are you sure you want to save changes ?" for an existing one, and then checks for repeats. The questions appear if the warning on save or on modify is on in Program Options. The program numbers the elements by the order of their rows, and gives a new segment the number after the last segment.

When you save an existing segment, the program rebuilds the codes and names of the combinations in the materials that use its elements, from the new element codes and names. So if you change an element's code or name, the code and the name of every combination that uses it change too.

Rules on the fields​

These rules put an error mark beside the field, and Save stays dimmed until you correct it:

MessageWhy it appears
Name field cannot be emptyYou did not type Name.
Digits count must be positive and less than 9, or left zero cause the digits count is not forcedDigits count is outside 0 to 8.
Element Code characters must equal Digits CountYou set Digits count and an element code is longer or shorter.

Messages​

MessageWhy it appearsWhat to do
Cannot duplicate Segment Name and Latin nameName or Latin name is the same as another segment's. Shown on Save.Change the name.
Element Code is duplicated …A code is typed in more than one element. One message appears for each repeat, and the repeated code follows the text.Change the code.
Element name is duplicated …A name is typed in more than one element.Change the name.
Element Latin name is duplicated …A Latin name is typed in more than one element.Change the name.
Cannot delete used elementsThe save failed because you deleted from the table an element that a material or group uses.Put the element back, or delete the combinations that use it first.
Cannot delete segments used in Material Segmentation ManagementYou deleted a segment that you chose in Materials Segmentation Management.Remove the segment from that window and save it first.
Cannot delete elements used in Group CombinationsThe segment's elements are used in a group's combinations.Delete those group combinations first.
Cannot delete elements used in Material CombinationsThe segment's elements are used in a material's combinations.Delete those combinations first.
Segment is being usedThe segment could not be deleted because it is used elsewhere in the file.A used segment is not deleted.
An internal error occurred while executing operationThe segments could not be read when the window opened or after a save.Close the window and open it again. Tell your system administrator if it repeats.
Are you sure you want to delete?You clicked Delete.Delete to continue, or Cancel.
Do you want to ignore the inputs and close the window?You closed the Edit Segment window after a change.Close Window or Cancel.

The confirmation questions are explained in Messages and callouts.

This page applies to alameen ERP 10, version 10.1.79.764.