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.
| Permission | Button it enables |
|---|---|
| Add Segments | New |
| Edit Segments | Modify |
| Delete Segments | Delete |
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.
| Button | What it does |
|---|---|
| New | Opens an empty Edit Segment window for a new segment. Dimmed without the permission Add Segments. |
| Modify | Opens the Edit Segment window for the selected segment. Dimmed if no segment is selected, or without the permission Edit Segments. |
| Delete | Asks "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.
| Column | Content |
|---|---|
| Name (segments table) | The segment name. |
| Latin name (segments table) | The segment's Latin name. |
| Code (elements table) | The element code. |
| Element Name | The 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.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Name | The segment name. | Yes | For example Color. The program trims spaces at both ends. Not the same as another segment's name. |
| Latin name | The segment's Latin name. It shows in the English interface. | No | For example Color. Not the same as another segment's Latin name. |
| Digits count | The number of characters each element code must have. | No | A number from 0 to 8. 0 means no length is forced. With 2 every code must have two characters, such as 01. |
| Segments Elements | The table of the segment's elements. Type new elements in the last row. | Yes, at least one element | See the next table. |
Columns of the elements table. An empty row at the bottom lets you add a new element:
| Column | Description | Required | Values and rules |
|---|---|---|---|
| Code | The element code. It becomes part of the combination code, after the material code and a dash. | Yes | For example 01. Not repeated among the segment's elements. Must match Digits count if you set it. |
| Element Name | The element name. It becomes part of the combination name. | Yes | For example Red. Not repeated among the segment's elements. |
| Latin name | The element's Latin name. | No | For 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.
| Button | What it does |
|---|---|
| Save | Checks 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. |
| Close | Closes 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:
| Message | Why it appears |
|---|---|
| Name field cannot be empty | You did not type Name. |
| Digits count must be positive and less than 9, or left zero cause the digits count is not forced | Digits count is outside 0 to 8. |
| Element Code characters must equal Digits Count | You set Digits count and an element code is longer or shorter. |
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Cannot duplicate Segment Name and Latin name | Name 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 elements | The 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 Management | You 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 Combinations | The segment's elements are used in a group's combinations. | Delete those group combinations first. |
| Cannot delete elements used in Material Combinations | The segment's elements are used in a material's combinations. | Delete those combinations first. |
| Segment is being used | The 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 operation | The 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.
Related
This page applies to alameen ERP 10, version 10.1.79.764.