Link Records with Documents Types
The program does not attach a document to a record unless the kind of record is linked to a document type. This window links each kind of record, such as the customer card or the material card, to the document types allowed on it. It also opens the Documents Names window, which sets the name the program proposes for a new document. For the working steps see Link records to document types.
Opening the window
In the ribbon choose Systems > Archive System > Tools > Link Records with Documents Types. Tools is a menu button in the Archive System group, and this command is its first item.
- The group appears when your licence includes the archiving feature, which is the only condition for the command to appear. In the same menu a tool that moves the documents of orders to the archive appears if the licence also includes orders; it is outside this page.
- The command checks no permission before it opens the window, and the Users window offers no permission for it.
- The system menu of the window does not carry Save as Default.
- If the window fails to load, the message "An error occurred in archiving system. The reason could be not installing .Net framework version 4.5 or higher." appears and the window closes.
Window layout
The window title is Link Records with Documents Types.
| Item | What it does |
|---|---|
| Record Type list | The kinds of record that can be linked, with an icon and a row for each. The first kind is selected at opening. Choosing a kind shows its links in the other list. See Record types. |
| Search box above the document types | Type part of a document type name to keep only the matching types in the list, so you can choose quickly. It filters at each letter. |
| Document Type list | All the document types defined in the Attached Document Type Card, each with a check box. The ticked ones are linked to the selected kind of record. The list shows the Latin name in the English interface when it exists, and the Arabic name otherwise. |
| Documents Names | Opens the Documents Names window for the selected kind of record. |
| Save | Saves the links of all kinds of record. See Saving. |
| Close | Closes the window. |
Record types
The list shows nineteen kinds in this order. Each is a record that carries the Documents button in its window; the page of that window gives any extra condition.
| Name in the list | The record |
|---|---|
| Journal Entry | The journal entry. |
| Account Card | The account card. |
| Customer Card | The customer card. |
| Material Card | The material card. |
| Cost Center Card | The cost center card. |
| Special Offer Card | The special offer card. |
| Form Card | The manufacturing form card. |
| Production Plan Card | The production plans. |
| Manufacture Operation | The manufacturing operation. |
| Balance Reconciliation | Balance reconciliation. |
| Shipping to Profit Center | Shipping to a profit center. |
| Shipping from Profit Center | Shipping from a profit center, on the same page. |
| Direct Purchase in Profit Center | Direct purchase in a profit center, on the same page. |
| Direct Purchase returns in Profit Center | Direct purchase returns in a profit center, on the same page. |
| Post Order | The sub asset card. This is the name the program shows for it in this list. |
| Credit Note | The credit and debit note. |
| Debit Note | The same page. |
| Shipping | Shipping between warehouses. |
| Contact Card | The contact card. |
Invoices and the other forms are not listed here. Invoice forms are linked to document types from the Documents page of the form settings, as in Invoice forms.
What linking does
- A kind of record linked to at least one document type can have documents attached to its records, and the Documents button in the record window shows them. The conditions that enable the button are in Attached documents.
- The Document Type box of the document window offers only the types linked to the kind of record.
- The program does not delete a document type that is linked to records: remove the link here first. See Attached Document Type Card.
Working in the window
- Choose the kind of record in the list. The program shows the document types, and the ticked ones are linked.
- Tick the document types this kind accepts, and clear the others. The program counts the window as modified, and keeps the changes when you move between kinds of record, without saving.
- Repeat for the other kinds of record.
- Click Save.
Saving
Save first asks "Are you sure you want to complete saving?" (Save and Cancel) when the warning option On save is on. After you confirm, the program writes the links of all nineteen kinds of record together, including those you did not change: it deletes their old links and writes the ones ticked now. No success message appears, the window stays open and it is no longer counted as modified.
When you click Close after a change that is not saved, the program asks "Do you want to ignore the inputs and close the window?" (Close Window and Cancel) when the warning option On cancel is on. Nothing is written before Save.
Documents Names window
It sets how the program names a new document attached to a record of the kind selected in the list. It opens from Documents Names, its title is Documents Names, and it saves the settings of the selected kind only. The program fills the name in the Name field of the document window, and you can change it there.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Activated | Turns on the automatic name for this kind. | No | Not ticked: the program fills no name and the field stays empty. It does not affect the checks of Save. |
| Parts grid | The parts that make up the name, in the order of its rows. | No | See Parts grid. |
| Code Fields Separator | The sign placed between the parts. | Yes | Example: -. Save checks it even if you entered no part. |
| Digits Count | The number of digits of the serial number. | Yes, with Serial Number | A whole number from 1 to 10: the program corrects other values when you leave the field. Enabled when the grid has a Serial Number part. |
| 1st Number | The first number the serial number takes. | Yes, with Serial Number | Example: 0001 with Digits Count 4. Its length must equal Digits Count. Enabled with Digits Count. |
| Preview | Shows an example of the name in the box beside it. | — | The box is read only. See Preview. |
| Save | Checks the settings, then saves them and closes the window. | — | See Saving the names. |
| Close | Closes the window without saving what you changed. | — | — |
Parts grid
Each row has two columns: Field Name and Fixed Value. Click a Field Name cell to choose the part from a list. The name starts with the first row, then the second, and so on.
| Part | Its value in the name |
|---|---|
| User Name | The name of the user who adds the document. |
| Computer Name | The name of the computer it is added from. |
| Database Name | The name of the database of the open file. |
| Serial Number | The number after the last number given to a document of this kind, starting from 1st Number. It keeps the digits of the last number, so it becomes 0001, then 0002. Changing Digits Count or 1st Number restarts the sequence. |
| Text Field | The value you type in Fixed Value. You may repeat this part in more than one row. |
| Document Number | The number of the record the document is attached to, such as the number of the customer, material, account or cost center card. Empty for records that have no number in this link, such as balance reconciliation, the sub asset card, the journal entry, the notes and the contact card. |
| Document Name | The name of the record: the name of the customer, material, account, cost center, form or special offer, or the name of the kind of record itself for a manufacturing operation, a production plan, a balance reconciliation, a shipping to a profit center and the like. It may be empty for other kinds. The Latin name is used when the interface language is not Arabic and the record has one. |
| Document Date | The date of the record, in the format you choose in Fixed Value. Empty for records with no date, such as customer, material, account and cost center cards, special offers and production plans. |
The grid does not offer the Branch part in this window.
- Every part except Text Field appears in the list once: after you use it, the program hides it from the other rows.
- The Fixed Value column accepts typing in a Text Field row, shows a list of formats in a Document Date row, and accepts nothing in other rows. When you choose Document Date the program puts the format
YYYY-MMM-DD. - The date formats are
YYYY-MMM-DD,YYYY-MM-DD,YY-MM-DD,DD,DDD,MM,MMM,YYandYYYY. For the date 5-1-2026:YYYY-MM-DDgives2026-01-05,YY-MM-DDgives26-01-05,YYYYgives2026andDDgives05. - To delete a row press
Deletein a Field Name cell, orCtrl+Deletein any cell of the row.Deletein a Fixed Value cell clears its value. - If the value of a part is empty the separator stays in its place.
Preview
Preview builds an example from the current grid without saving: User Name, Computer Name, Database Name and Document Name each show ABC, Document Number shows 123, Serial Number shows the text of 1st Number, Text Field shows its fixed value, and Document Date shows today's date in the chosen format. The separator you typed goes between the parts.
Example: the first part is Document Name, then Document Number, then Serial Number, the separator is -, Digits Count is 4 and 1st Number is 0001. The preview shows ABC-123-0001. For the first document attached to customer card number 5 named Horizon Co. the program proposes Horizon Co.-5-0001, and for the second Horizon Co.-5-0002.
Saving the names
At Save the program checks in this order and stops at the first message:
- The separator is not empty.
- Every Text Field row has a Fixed Value.
- If the grid has Serial Number: Digits Count is not empty and the number of characters of 1st Number equals Digits Count.
Then it replaces the saved settings of the kind of record with what is on the screen, in the order of the rows, and closes the window without a message. The checks run even when Activated is not ticked.
Because the name of a document does not repeat between documents (see Attached documents), include Serial Number among the parts, or a part that differs from one record to another, so that the name does not repeat.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| An error occurred in archiving system. The reason could be not installing .Net framework version 4.5 or higher. | The link window failed to load or to open from the ribbon. | Check that the framework is installed, then try again. |
| Are you sure you want to complete saving? | Save in the link window, with the warning option On save. | Save to continue, or Cancel. |
| Do you want to ignore the inputs and close the window? | Close after a change that is not saved, with the warning option On cancel. | Close Window or Cancel. |
| Enter separator. | Save in the Documents Names window with Code Fields Separator empty. | Type the separator. |
| Must enter text for text field. | A Text Field row with no Fixed Value. | Type the value. |
| Enter count of digits. | The grid has Serial Number and Digits Count is empty. | Type the count of digits. |
| 1st number must have same digits count. | The number of characters of 1st Number differs from Digits Count. | Correct one of them. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.