Skip to main content

Document Fields

Document fields are data that describe an attached document, such as a contract number or a signing date. You define a field once here, then pick it in any document type of the Attached Document Type Card. This page explains two windows: Document Fields, the list of all fields, and Field Properties, which adds or changes a field. For the working steps see Define document fields.

Opening the window​

In the ribbon choose Systems > Archive System > Document Fields.

  • The Archive System group appears in the ribbon when your licence includes the archiving feature. This is the only condition the program checks to show it.
  • The command checks no permission before it opens the window, and the Users window offers no permission for it.
  • If the window cannot open, the message "An error occurred in archiving system. The reason could be not installing .Net framework version 4.5 or higher." appears.

Document Fields window​

The window lists the fields you defined, in the order you added them: a new field comes last in the grid. The internal fields the program uses to link a document to its record are not shown.

Commands​

ButtonWhat it does
NewOpens the Field Properties window for a new field. Always available.
ModifyOpens Field Properties for the selected field. Disabled until you select a row.
DeleteDeletes the selected field after confirmation, if no document uses it. Disabled until you select a row. See Delete a field.
CloseCloses the window. It is the only button at the bottom.

Double-click a row to open its properties. Right-click a row for the row menu: Modify and Delete, with the same meaning.

Grid columns​

ColumnContent
NameThe field name.
Latin NameThe Latin name, possibly empty.
TypeThe field type: Text, Number, Date, Menu or Yes / No.
Default ValueThe value the field starts with in a new document, as it shows for its type. For example Today for a date field, and Gold for a menu field with a chosen item. Empty when no value is set.
CompulsoryA tick when the field is compulsory.
UniqueA tick when the value of the field cannot repeat between documents.

Delete a field​

  1. Select the field and click Delete. The program always asks before deleting. Click Delete in the confirmation (see Confirmation messages).
  2. If a saved document holds a value for this field, the window refuses and shows "Field is used in a document." The field stays.
  3. If no document uses it, the program deletes it from the database and removes its row from the grid.

The program checks only the use of the field in documents. It does not stop you from deleting a field that is added to a document type when no document holds its value.

Field Properties window​

It opens from New or Modify. Its title is Field Properties. It works on a copy of the field, so nothing changes in the list or in the database before OK.

FieldDescriptionRequiredValues and rules
NameThe field name as it appears in the document.YesUp to 250 characters. Not repeated between fields. Example: Contract No.. The error shows next to the field: "Missing Name" or "Maximum field characters length is 250".
Latin NameThe name in Latin letters.NoUp to 250 characters. If you type it, it is not repeated between fields.
TypeThe kind of data the field accepts.YesA list you cannot type in: Text, Number, Date, Menu, Yes / No. Text in a new field. Disabled when you modify a field that a document uses. Changing the type clears the default value. See Field types.
Default ValueThe value shown in the field when you add a document.NoThe input control changes with the Type.
CompulsoryEvery document of a type that uses the field must hold a value for it.NoA check box. Disabled and cleared for Yes / No.
UniqueThe value of the field cannot repeat between documents.NoA check box. Disabled and cleared for Yes / No. For what happens when you tick it on a saved field, see Check on changing to unique.
ButtonWhat it does
OKChecks the field, then saves it. See Saving.
CloseCloses the window. It becomes Cancel after any change, and asks whether to discard the changes if the warning option On cancel is on. Nothing is written to the database.

Field types​

TypeDefault value controlInitial valueWhat happens
TextA text box.Empty.The field holds free text in the document.
NumberA number box that accepts decimals.0.If you leave it empty the program uses 0.
DateA list: Without, Opening Date, Closing Date, Today, Start of Month, End of Month.Without.The choice fills the field when you open a new document. Opening Date and Closing Date are the start and end dates of the period in the file options, and Start of Month and End of Month belong to the current month. Without leaves the field empty.
MenuA list of the field items, the first being <select an item>, with the Edit List button beside it.The first item, meaning no choice.You define the items in the Edit List data window, explained in Attached documents. After OK in that window the program selects the first item if the list is new or if the selected item was deleted.
Yes / NoA list: Yes and No.Yes.The field appears in the document as a check box. Compulsory and Unique are disabled and unticked.

The program does not offer a Label type in this list. If you change the type from Menu to another type and save, the program deletes the saved list items of the field.

Check on changing to unique​

When you modify a saved field and tick Unique, the program checks at OK whether saved documents hold repeated values for it. If it finds some, the message "Field can't be changed to unique because there are saved documents having this field with repeated values." appears and the field is not saved. The check runs when ticking Unique is the last change you made before OK; if you change any other control after it, the check does not run.

Saving​

At OK the program checks in this order, stops at the first check that fails, and puts the cursor in the field in error:

  1. The name exists and its length is accepted.
  2. The name is not used by another field, then the Latin name.
  3. If the type is Menu, the list has at least one item.
  4. The change to unique check.

Then it asks for confirmation: the save question for a new field and the modify question for an existing one (see Confirmation messages). After you confirm, it writes the field to the database and closes the window. A new field appears last in the grid; a modified one keeps its place. If the database refuses because of a repeated name, the repeated-name message appears; otherwise you see "Error occurred while saving changes to the database."

Difference from custom fields​

Document fields are not the custom fields. Custom fields add data to the program's own cards and documents and appear on a page inside them. Document fields describe the file attached to a record, appear in the document window, and the search in documents reads their values.

Confirmation messages​

The administration windows of archiving show them (this page and the Attached Document Type Card). The save, modify and cancel questions appear when the warning options On save, On modify and On cancel are on. The delete question always appears.

MessageWhen it appearsButtons
Are you sure you want to complete saving?OK for a new field.Save, Cancel
Are you sure you want to save changes ?OK for an existing field.Save, Cancel
Are you sure you want to delete?Delete.Delete, Cancel
Do you want to ignore the inputs and close the window?Closing Field Properties after a change.Close Window, Cancel

Messages​

MessageWhy it appearsWhat to do
Missing NameName is empty.Type the name.
Maximum field characters length is 250The name or the Latin name is longer than 250 characters.Shorten the text.
Field name is duplicated.The name is used by another field.Change the name.
Field Latin name is duplicatedThe Latin name is used by another field.Change it.
List cannot be empty.The type is Menu and it has no items.Click Edit List and add an item.
Field can't be changed to unique because there are saved documents having this field with repeated values.You ticked Unique on a saved field and the documents hold repeated values.Remove the repetition from the documents, or leave Unique unticked.
Field is used in a document. (with the line "Field cannot be deleted.")Delete on a field whose value a document holds.Keep the field.
Error occurred while saving changes to the database.The save or the delete failed for a reason other than a repeated name.Try again, and if the error repeats, tell support.
An error occurred in archiving system. The reason could be not installing .Net framework version 4.5 or higher.The window could not open from the ribbon.Check that the framework is installed, then try again.

This page applies to alameen ERP 10, version 10.1.79.764.