Custom fields
Custom fields are extra fields that the administrator defines to keep data that the cards and documents of alameen ERP 10 do not hold, such as a material's licence number or a device's inspection date. You define the fields in a group, then link the group to one or more windows. The fields then appear on the Custom Fields page inside those windows. This page describes every definition and link window, the page inside a card, and where the values are used.
Opening the window
Open it from File > Program Options > the Custom Fields page. How to open the options is in Program Options.
All of these conditions must hold for the page to appear:
- Your licence includes custom fields. You see the Custom Fields icon among the feature icons in File > Info (File tab: Info).
- A company file is open. The page is saved in the file, so the groups apply to every computer and user.
- You have the permission Custom Fields in the Users permissions window, on the Operations page under the group Options (Permissions).
Three more permissions control the buttons of the page. You find them on the Operations page under the group General, and they appear only with the custom fields licence: Custom Fields - Add, Custom Fields - Modify and Custom Fields - Delete.
If you open this page in Program Options and then click Ok or Apply, the program turns custom fields on for this session in reports and condition lists. The next time the file is opened they turn on by themselves as long as the file has at least one custom field. See Where the values are used.
How custom fields work
- Define a group of fields: a name and a list of fields, each with a type. The group is saved when you click Ok in the group card.
- Click Link and choose, for each window, the group whose fields appear in it (link window). A window shows no fields until a group is linked to it.
- Open the card or document. On its Custom Fields page the user types the values, and the program saves them with the record (the page in the card).
The program keeps the values of each group in a table of its own inside the file, one row per record. It adds a column when you save a new field, drops the column when you delete the field, and drops the whole table when you delete the group. If you link the same group to more than one window, the values of all those windows go to the same table and the program tells them apart by the window.
Deleting a field or a group deletes the values stored in them for good. Changing the group of a window makes the program ask about its values before it deletes them. Read Deleting a group and the link window before you change anything in a file that holds data.
The Custom Fields page in Options
The page lists the field groups defined in the file, one group per row. With an Arabic interface it shows the group name. With any other interface it shows the Latin name if there is one, otherwise the name. Six buttons sit above the list.
| Button | What it does | When it is disabled |
|---|---|---|
| New | Opens an empty group card. | Without the permission Custom Fields - Add, or in a file that is a replication subscriber. |
| Modify | Opens the selected group's card for editing. | With no group selected, without Custom Fields - Modify, or in a replication subscriber file. |
| Delete | Deletes the selected group. See Deleting a group. | With no group selected, without Custom Fields - Delete, or in a replication subscriber file. |
| Preview | Opens the preview of the selected group. | With no group selected. |
| Copy | Opens a new group card that carries the name and fields of the selected group. See Copying a group. | With no group selected, without Custom Fields - Add, or in a replication subscriber file. |
| Link | Opens the link window. | When the list is empty, without Custom Fields - Modify, or in a replication subscriber file. |
Changes to groups are saved in the file as soon as you click Ok in the group card, not when you click Ok in Program Options. So Cancel in the options does not undo a group that you created, edited or deleted.
Copying a group
Copy opens a new group card with the original group's name, Latin name and all its fields, with their types, default values and multiple values. Because that name already exists, the message "Duplicated Name" appears when you click Ok, until you change the Name, and the Latin Name too if it is not empty. The copied fields get new columns. The values saved in cards are not copied.
Deleting a group
- Select the group and click Delete.
- The program asks you to confirm the deletion, as described in Messages and errors.
- If the group is linked to a window, even if the link was released while keeping the values, the message "Cannot delete the selected custom fields group (…) because it is linked to one of the windows" appears and the group stays. Set the Group to
< Without >in the link window and delete the values, then try again. - If it is not linked, the program deletes the group's fields, the group and its values table in one operation. If the operation fails, "Deleting process failed" appears and the group stays.
Custom Fields Group Card
The window title is Custom Fields Group Card. It holds the group name and a grid for its fields.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Name | The group name in Arabic. | Yes | Up to 256 characters. Not repeated in another group. If left empty, the message "Empty Field" appears. |
| Latin Name | The group name in English or another non-Arabic interface language. | No | Up to 256 characters. Not repeated in another group when it is not empty. |
| Fields grid | The group's fields, one field per row. | Yes, at least one row | Up to 100 rows. Its columns are in the fields grid. |
| Button | What it does |
|---|---|
| Ok | Checks the name and the grid, then saves the group and its fields together and closes the window. If saving fails, "Saving failed" appears and nothing is saved. |
| Close | Closes the window without saving. If you changed something and the warning option on Cancel is on, the program asks before it discards the changes. |
When you click Ok the program checks in this order: a repeated group name (Arabic, then Latin), with the message "Duplicated Name" under the title "Invalid value". Then an empty name. Then the grid (what the grid checks).
The fields grid
The grid has one row per field. The fields at the top appear first on the page, and they are saved in the order of the rows. Choose the Type first in each row, because it decides the other cells.
| Column | Description | Values and rules |
|---|---|---|
| Name | The field's label as it appears on the page. | Text. It cannot be emptied after the field is saved: "Field name cannot be empty" appears. |
| Latin Name | The label in non-Arabic interfaces. | Text. If empty, the Name is used. |
| Type | The field type. | A list: Types. |
| Format | How the field is displayed. | A list that depends on the type. It fills itself when the type has one format, and you must choose it for Text and for group rows. |
| Mandatory | Whether a value is required. | A list: No and Yes. Empty and not editable on a group row. |
| Default Value | The value that appears in a new record. | Depends on the type, see Types. Empty and not editable on a group row. |
| Unique value | Whether the same value is refused in two records. | A list: No and Yes. Empty and not editable on a group row. |
Choosing Yes in Unique value makes the program refuse to save if the same value exists in another record of the same window. An empty value or zero does not count as a repeat. For invoices and vouchers the program compares only records of the same form type.
Drop-down lists open when you click the cell. In the Default Value cell of a Multiple field, the first item (New/Modify) opens the Multiple Values window.
The row and corner menus
The grid adds the items Move up and Move down to the row-number menu. Clear in the corner menu is dimmed. The details are in Extra menus in grids.
Deleting a row
Deleting the row of a field that was never saved removes the row without a question. For a saved field the program asks: "Deleting this field will lead to losing the related data. Are you sure to delete?". If you click Yes the row is hidden, and the field, its column and its values are really deleted when you click Ok in the card. If you close the card with Close, nothing is deleted.
Field types
| Type | Format | What appears on the card page | Default value | Notes |
|---|---|---|---|---|
| Text | Text or Large Text | A text box of up to 255 characters. Large Text is a box of four lines with a scroll bar. | Any text. | Large Text fields gather at the end of the page. |
| Integer | Integer | A whole-number box. | A whole number. Anything non-numeric becomes 0. | An empty value is saved as 0. |
| Price | Price | A number box with price decimals. | A number, shown with two decimals in the grid. | An empty value is saved as 0. |
| Quantity | Quantity | A number box with quantity decimals. | A number, shown with two decimals in the grid. | An empty value is saved as 0. |
| Date | Date | A date box. | A list: < Without >, Beginning Period, Ending Period, Today's Date and Beginning of Month. | Beginning Period and Ending Period are the start and end dates of the file's accounting period. Beginning of Month is day 1 of the current month. |
| Multiple | Multiple | A drop-down list that does not accept typing, with the values you entered. | A list of the multiple values. The first item (New/Modify) opens the values window. | The text of the chosen value is saved. |
| Yes / No | Yes / No | A check box titled with the field name. | A list: No and Yes. | |
| Time | H:M | A time picker with hours, minutes and AM or PM. | A time in the form H:M. | |
| Side-title Group | Columns Count: 1 to Columns Count: 6 | Not a field. It starts a section of the page whose field labels sit beside their boxes. | None. | See Group rows. |
| Top- title Group | The same Columns Count items | Starts a section whose field labels sit above their boxes. | None. |
On a new record the default of a Date field becomes today's date, for both < Without > and Today's Date. The default of a Yes / No field does not change the check box on a new record: it stays unchecked. The preview uses the field types and formats but not the default values.
Group rows
The rows Side-title Group and Top- title Group divide the page into sections. Every field after such a row, up to the next group row, is arranged in the number of columns you chose in Format. If the group row has a Name, it appears as the section heading, in Arabic, or in the Latin name in other interfaces when there is one. The name of a group row is optional. If the grid has no group row, the fields are arranged in as many columns as the page width allows, about 180 points per column. The width grows when there are more than two fields and one of the labels is longer than seven characters.
What the grid checks
| Check | Message |
|---|---|
| A row has a type and a name but no format. | "Invalid format": "Custom field format not defined on line …". |
| The row of a saved field had its name emptied. | "Invalid name": "Custom filed name not defined on line …". |
| Two equal names in the same section (field rows between two group rows), or two equal names of group rows. | "Duplicated Name" then the name. For a Latin name: "Latin name is duplicated" then the name. |
| A grid with no valid field. | "Please insert at least one custom field to this group". |
Changing the type of a saved field
A field that was never saved accepts any type. A saved field accepts only some conversions, to protect its values. If the change is not allowed, "Cannot change between these two types" appears and the type returns to what it was.
| Current type | Converts to | Converts after a warning |
|---|---|---|
| Text | Text, Multiple | |
| Integer | Text, Integer, Price, Quantity, Multiple | Yes / No: "This conversion will result in replacing all values with one except the zero", with the buttons Ok and Cancel. |
| Price and Quantity | Text, Price, Quantity, Multiple | Integer: "This conversion will lead to missing numbers after comma". And Yes / No as above. |
| Date | Text, Date, Multiple | |
| Multiple | Text, Multiple | |
| Yes / No | Text, Integer, Price, Quantity, Multiple, Yes / No | |
| Time | Text |
When you convert away from Multiple and the field has multiple values, a warning appears: "This conversion will lead to the loss of the default multiple values", with Ok and Cancel. If you click Cancel the type stays Multiple.
Multiple Values window
It defines the values a user chooses from for a field of the Multiple type. It opens from the Default Value cell in the field's row, with the item (New/Modify).
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Default Value | The box where you type the value you add or edit. | No | When you choose a value in the list it appears here. An empty value is not added. |
| Values list | The field's values. | No | Click a value to select it. The program does not prevent a repeated value. |
| Button | What it does |
|---|---|
| Add | Adds the typed value to the list and empties the box. |
| Modify | Replaces the selected value with the typed one. Disabled until you select a value. |
| Delete | Deletes the selected value from the list. Disabled until you select a value. |
| Ok | Closes the window and keeps the list in the field. The values are saved in the file only when you click Ok in the group card. |
| Cancel | Closes the window and restores the list as it was when you opened it. |
After Ok the Default Value cell is empty. Open its list and choose the default from the values you entered.
The program saves the field's values sorted alphabetically. If you change the values after saving, check the default value that is selected.
Linking groups to windows
It decides which group's fields appear in each window. It opens with the Link button. Its title is "Group Card".
The grid has two columns: Window, read only, and Group, a list with < Without > followed by the groups of the file. The rows are fixed in this order:
| Window | Where its fields appear |
|---|---|
| Material Card | The Custom Fields page of the material card. |
| Customer Card | The Custom Fields page of the customer card. |
| Address Card | The customer address window. |
| Group Card | The material group card. |
| Warehouse Card | The warehouse card. |
| Account Card | The account card. |
| Invoices | More... in the invoice, and the sales and purchase orders and their posting. |
| Entries | The vouchers (entries, payment and receipt vouchers). |
| Packing Lists | The packing list. |
| Commercial Papers | More... in the commercial paper. |
| Cost Center Card | The cost center card. |
| Notes | More... in the credit and debit note. |
| Shipping | The shipping form. |
| Maintenance Orders | The maintenance order. |
Orders have no row of their own: they use the Invoices row.
| Button | What it does |
|---|---|
| Ok | Saves the links and closes the window. |
| Close | Closes the window. If you changed something and the warning option on Cancel is on, the program asks before it discards the changes. |
What happens when you change the group
- A row that is not linked yet: choosing a group links it when you click Ok. Choosing
< Without >changes nothing. - A linked row where you choose
< Without >: the program asks "Do you want to keep the data stored in the customized fields for a later use", with Yes and No.- Yes: the link is released and the values stay. The group name shows in grey, and the fields do not appear in the window. Choose the same group later to restore the link and the values without a question.
- No: it asks "This change will result in losing the custom fields values of this window", with Ok and Cancel. After Ok it asks again "Are you sure to perform this operation! All values saved in these customized fields will be lost", with Yes and No. After Yes the program deletes the window's values, and the link itself is deleted when you click Ok in the link window.
- A linked row where you choose another group: the same two last questions appear. If you confirm, the old group's values for this window are deleted when you click Ok, and the row is linked to the new group. If you back out, the old group stays linked.
Nothing is deleted until you click Ok. If you close the window with Close, nothing changes.
One link per window is enough. If you link two windows to the same group, their fields are the same. When you delete a record in any linked window, the program deletes its values automatically.
Custom Field Group Preview window
It opens with the Preview button. It shows the fields of the selected group the way they appear on the card page, with their layout, sections and box types, so the administrator can review them before linking. It has no buttons and saves nothing. It has a vertical scroll bar when the fields are long. Close it with Esc or the close button of its frame.
The preview boxes carry the field types and formats, but not the default values.
The Custom Fields page in a card
The Custom Fields page of a card or window that is linked to a group. It is created only when your licence includes custom fields, even if the window is not linked to a group.
- If the window is not linked to a group, or its group has no fields, the text appears: "This type of cards is not linked with custom fields group. Cards can be connected to a custom fields group through: Options - Custom Fields." The Save button does not appear.
- If the window is linked, the group's fields appear. For invoices, commercial paper types, orders and vouchers, only the fields chosen for the type appear (Choosing the fields of a type).
- Each field's label is its name in Arabic, and in other interfaces its Latin name if there is one, otherwise its name.
- In a new card the group's default values appear. In a saved card its saved values appear, and if it has none the default values appear.
- The values are saved with the record when you save the card with Add or Modify, after the fields are checked. A record's values are deleted when the record is deleted. Each window keeps its own values, and in some windows the Save button saves the values alone.
| Button | What it does |
|---|---|
| Save | Checks the mandatory and unique values, writes the page's values alone into the card's record, then checks them again. If it succeeds, "Saved" appears. If the check fails, nothing is saved. |
Save appears only for a saved record, and some windows hide it.
Box types and checks
| Type | Box | Check on save |
|---|---|---|
| Text | A text box, limited to 255 characters. | Mandatory: it cannot be empty. |
| Integer, Price, Quantity | A number box. | Mandatory: it accepts neither an empty value nor 0. |
| Date | A date box. | Mandatory: it cannot be empty. An empty field that is not mandatory is saved without a date. |
| Multiple | A drop-down list that does not accept typing. | Mandatory: a value must be chosen. |
| Yes / No | A check box. | The mandatory setting is not checked. |
| Time | A time picker. | The mandatory setting is not checked. |
When a mandatory field is not filled, the message "Empty Field" appears, then "Please insert the field value : " and the field name, and the cursor moves to the field. For Unique value, if the value exists in another record, "Field is Duplicated" appears, then "Value is previously entered for field:" and the field name. An empty value and 0 do not count as repeats.
Choosing the fields of a type
For invoices, commercial paper types, orders and vouchers, the page shows the fields that you ticked on the Custom Fields page of the type window, not all the fields of the group. For invoices it is described in Invoice form settings.
The windows that show the page
| Link | Window |
|---|---|
| Material Card | Material card |
| Group Card | Group card |
| Warehouse Card | Warehouse card |
| Account Card | Account card |
| Cost Center Card | Cost center card |
| Invoices | More information, Sales order, Orders posting |
| Packing Lists | Packing list |
| Notes | Credit and debit note |
| Shipping | Shipping |
| Customer Card, Address Card, Entries, Commercial Papers, Maintenance Orders | Their windows in the other guides. |
The page container
A frame inside the page carries the field boxes. It has vertical and horizontal scroll bars when the fields exceed the page.
Where the values are used
| Place | What appears |
|---|---|
| Report fields | The custom fields are added to the fields of the linked table when a report offers the fields of: accounts, commercial papers, invoices, cost centers, vouchers, shipping types, materials, customers and orders. They carry the field's label. They appear for this session after Ok or Apply in Program Options, and afterwards as long as the file has a custom field. |
| Search and report conditions | The custom fields of invoices, customers, materials, orders, vouchers and packing lists appear among the fields a condition is built on, in the conditions windows. |
| Customer and material smart lists | The fields appear as columns, and you can edit their values in the list itself. |
| Printing invoices and vouchers | The values are read to be printed with the invoice or voucher, and a Yes / No value is printed as text: Yes or No. |
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Duplicated Name | The group name (or its Latin name), or a field name inside a section, is repeated. | Change the name. |
| Empty Field | Name is empty in the group card, or a mandatory field is empty on the page. | Type the value. |
| Custom field format not defined on line … | A row has no Format. | Choose the Format on the row. |
| Custom filed name not defined on line … | A saved field had its Name emptied. | Type the name again. |
| Please insert at least one custom field to this group | The grid has no valid field. | Add a field. |
| Field name cannot be empty | You tried to clear the name of a saved field. | Change the name instead of clearing it. |
| Cannot change between these two types | You changed a saved field to a type that is not allowed. | See Changing the type of a saved field. |
| Saving failed | Saving to the file failed. | Try again, and tell the system administrator if it repeats. |
| Deleting process failed | Deleting the group in the file failed. | Try again. |
| Cannot delete the selected custom fields group (…) because it is linked to one of the windows | The group is linked in the link window. | Release the link and delete its values, then delete the group. |
| Please insert the field value : … | A mandatory field is empty. | Type a value. |
| Value is previously entered for field: … | The value of a Unique value field is used in another record. | Type a different value. |
| Saved | Save on the page succeeded. | Nothing. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.