Attached Document Type Card
A document type decides what an attached document carries: the fields it shows, the file extensions it accepts with their maximum size, and its security level. Example: the type Contract has five fields and accepts pdf, jpg and docx files. This page explains the whole window. For the steps to create a type see Create an attached document type.
Opening the window
In the ribbon choose Systems > Archive System > Attached Document Type Card. The window title is Document Type Card.
- The Archive System group appears when your licence includes the archiving feature.
- Permissions are set in Users Management, on the Cards tab, in the Tools group, on the row Attached Document Type Card. Its columns are Add, Review, Modify and Delete (see Card permissions). The details are in Permissions and security level.
- The window opens on a new card that carries the next type number. All defined types are loaded at opening so that you can move between them.
- If opening fails, the message "An error occurred in archiving system. The reason could be not installing .Net framework version 4.5 or higher." appears.
Window layout
| Area | Content |
|---|---|
| Top of the window | The Security button, then the navigator. |
| Below them | The Name and Latin Name fields. |
| Middle | Two tabs: Document Fields and Files Settings. |
| Bottom | The buttons Save, New, Delete and Close. See Buttons. |
The program searches for a type by name inside the card itself, as in Search among types.
Security level
A button at the top of the window opens a list with Low, Medium and High, each with an icon. The icon of the button follows the current level. The level is Low in a new type, and the saved level in a saved type.
The level decides who can open, modify and delete the type card: a user whose permission level is lower than the level cannot open it (see Permissions and security level). Changing the level changes the card, and Save saves it.
Navigator
A group of buttons and a number box beside Security. It moves between saved types and resembles the record navigator of the program's cards, but it is a separate navigator. The order of its buttons follows the option Navigation direction in right-to-left languages in Program Options > Language.
| Button | What it does | When it is disabled |
|---|---|---|
| First | Shows the first type. | At the first type, or when no type is defined. |
| Ten back | Goes back ten types; if fewer than ten remain, shows the first type. | Same as above. |
| Previous | Shows the previous type. From a new card it shows the last type. | At the first type. |
| Number box | Shows the type number. A saved type has the sign * before the number; a new card shows the number it takes at saving. Type a number and press Enter to go to its type. | — |
| Next | Shows the next type. | At the last type, and in a new card. |
| Ten forward | Goes forward ten types; if fewer than ten remain, shows the last type. | Same as above. |
| Last | Shows the last type. | Same as above. |
- If the card holds changes you have not saved and you click one of the six buttons, the program asks "Are you sure you want to ignore information entered here and move into a new record?" (buttons Move and Don't Move) when the warning option On cancel is on.
- Going to a number in the box, or with the search keys, does not ask and replaces the card on screen.
- If you type a number that no type has, the message "Item not found" appears. If you type something that is not a valid number, nothing happens.
A type you may not view
If you go to a type whose security level is higher than your Review permission level, the window hides its fields and shows a lock icon of high level and the words "You have no permission" in red. The navigator and the buttons stay visible.
Name and Latin Name
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Name | The name of the document type, for example Contract. | Yes | Up to 250 characters. Not repeated between types. The error shows next to the field: "Missing Name" or "Maximum field characters length is 250". |
| Latin Name | The name in Latin letters, for example Contract. | No | Up to 250 characters. If you type it, it is not repeated. Lists of the program show the Latin name in the English interface when it exists, and the Arabic name otherwise. |
Document Fields tab
A list of all the fields defined in Document Fields, each with a check box. Tick the fields this type carries.
| Item | What it does |
|---|---|
| Field check box | Adds the field to the type or removes it. If a document of this type holds a value for the field, the check box is disabled and you cannot remove it. |
Ctrl with a check box | Click a check box with Ctrl held to give all fields that no document of the type uses the same state as this box: all ticked or all unticked. |
| Up arrow | Moves the selected field one place up in the order. Disabled at the first field or without a selection. |
| Down arrow | Moves the selected field one place down. Disabled at the last field or without a selection. |
- The order of the fields in the list is the order in which they appear in the document. The program saves only the ticked fields, in their list order.
- In a new type no field is ticked until you tick it.
- The internal fields the program uses are not shown.
Files Settings tab
It defines the extensions the type accepts. A document does not accept a file whose extension is not listed here. A new type loads eight ready extensions that you can change freely.
| Button | What it does |
|---|---|
| New | Adds a row at the end of the grid: the first ready extension that is not in the grid, and when all are there, a name such as ext, then ext1 and ext2, with a maximum size of 1,024 KB. |
| Delete | Deletes the current row without confirmation. The Delete key also deletes the current row. |
| Column | Description | Values and rules |
|---|---|---|
| File Format | The extension without a dot, such as pdf. | Up to 10 characters. If you repeat an extension the program does not save (see Messages). You edit it by typing in the cell. |
| Maximum Size (KB) | The largest size of a file with this extension. | A whole number from 0 to 102,400 (100 MB). |
The ready extensions and their sizes in KB: bmp 1,024, doc 1,024, docx 1,024, Jpg 1,024, pdf 5,120, txt 1,024, xls 1,024 and xlsx 1,024.
Buttons
| Button | What it does |
|---|---|
| Save | Saves the new type or the changes. See Saving. |
| New | Empties the card for a new type with the next number, the level Low and the ready extensions. If the card holds changes it asks whether to discard them, as in the navigator. |
| Delete | Deletes the type on screen. Disabled in a new card. See Deleting. |
| Close | Closes the window. If it holds unsaved changes it asks "Do you want to ignore the inputs and close the window?" (Close Window, Cancel) when the warning option On cancel is on. |
Search among types
Type a text in Name or Latin Name, then press a key from the table. The program searches the loaded types, in the field where you pressed the key, and it is case sensitive.
| Key | What it does |
|---|---|
F7 | Shows the first type that matches the text exactly. |
F4 | Shows the first type that contains the text. |
F8 | The next type among the F7 results. |
Shift+F8 | The previous type among the F7 results. |
F5 | The next type among the F4 results. |
Shift+F5 | The previous type among the F4 results. |
If the search finds nothing, or the field is empty, the message "No matching characters found" appears. At the last result the warnings "Search End,There is no next result." or "Search End,There is no previous result." appear. Showing a result replaces the card on screen without asking about its changes.
Saving
At Save the program checks in this order:
- Permission. New type: the Add permission at the level of the security level you chose. Existing type: the Modify permission at the level of the saved level, from before your change. If it is missing, "You have no permission" appears and nothing is saved.
- Content of the card. The program runs all checks and does not stop at the first error, so several messages can follow one another: the name exists and its length is accepted, then the name is not used and the Latin name is not used, then the extensions are not repeated. If all of these pass, it checks the size of each extension. When a check fails, the cursor moves to the field in error.
- Confirmation. The save question for a new type and the modify question for an existing type, when the warning options On save and On modify are on. Their texts are in Confirmation messages.
- Writing. In a new type the program takes the next number. After saving the window stays open on the saved type. No success text appears.
When you modify, the program replaces the saved name, Latin name, level, fields and extensions with what is on the card. If the save fails for a reason other than a repeated name, "Error occurred while saving changes to the database." appears with the error text below it.
Deleting
- Show the type and click Delete. If you lack the Delete permission at the level of the saved level, "You have no permission" appears.
- Confirm the deletion. The delete question always appears (see Confirmation messages).
- The program refuses if attached documents of this type exist: the message "Document type is used in documents".
- It also refuses if the type is linked to records: the message "Document type is related to :" and below it the names of the linked kinds, one per line. The name is the card name as the program shows it, such as Customer Card, or the kind of form followed by its name, such as
Bill Form : Sales, and likewise Entry Form, Commercial Paper Form, Order Form and Transposition Form. Remove the link in Link Records with Documents Types or on the Documents page of the form settings, then delete. - On success the type leaves the card and the next card takes its place; if no type is left, a new card appears.
Permissions and security level
| Operation | The permission the program checks |
|---|---|
| Save a new type | Add on the row Attached Document Type Card, at the level of the chosen security level. |
| Show a type (moving to it) | Review, at the level of its saved level. |
| Save a change | Modify, at the level of its saved level. |
| Delete | Delete, at the level of its saved level. |
A permission works on a type when your level equals the security level of the type or is higher. The levels are explained in Permissions. Do not confuse this level with the permissions of the tabs Documents Types and Documents in Users Management: those control the work on the documents themselves, as in Attached documents. The level of the type here decides who opens the type card.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| You have no permission | Save or Delete without the right permission. | Ask the system administrator for the permission. |
| Missing Name | Name is empty. | Type the name. |
| Maximum field characters length is 250 | The name or the Latin name is longer than 250 characters. | Shorten the text. |
| Document type name is duplicated. | The name is used by another type. | Change the name. |
| Document type Latin name is duplicated | The Latin name is used by another type. | Change it. |
| Repeated Formats: | An extension is repeated in the Files Settings grid. The repeated extensions follow, separated by commas. | Delete the repeated row. |
| Size must be between 0 and 102,400 Kilo Bytes (100 Mega Bytes) | A size above the limit. Below it, "File Format: …" with the extension. | Correct the size. |
| Format is required / Maximum field characters length is 10 / Size must be between 0 and 102,400 Kilo Bytes (100 Mega Bytes) | A value that is not accepted in a cell of the Files Settings grid. | Correct the cell. |
| Document type is used in documents | Delete on a type that documents hold. | Keep the type. |
| Document type is related to : | Delete on a type linked to records. The names of the kinds follow. | Remove the link, then delete. |
| Error occurred while deleting from the database. | The delete failed for another reason. | Try again, and if it repeats, tell support. |
| Error occurred while saving changes to the database. | The save failed. The error text follows. | Try again, and if it repeats, tell support. |
| Item not found | A number with no type in the number box. | Type an existing number. |
| No matching characters found / Search End,There is no next result. / Search End,There is no previous result. | The result of a search with F7, F4, F8 or F5. | Change the text or start a new search. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.