Search in attached documents window
This window searches the documents of all records with rules you set yourself: on the data of the document itself, or on the data of the record the document is attached to, such as a bill number or a customer name. You can save a set of rules under a name to use it again. The result of the search appears in another window, explained in Document search results. For the steps see Search attached documents.
Opening the window
From the ribbon: Systems > Archive System > Search in Attached Documents.
- The Archive System group appears if your licence includes the archiving feature.
- The command appears for users who have the Search in Attached Documents permission in Users Management. It is a check box in the Operations page (see Actions permissions).
- 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.
The window is titled Search for documents. It opens with an empty rules grid. Click Click here to add a new rule to add one.
Command bar and window buttons
| Item | What it does |
|---|---|
| Custom query | A list of the saved queries by name. Choose one and the program loads its rules into the grid. The window starts with a new query with no name. |
| New | Starts a new query with an empty rules grid. If you changed the rules and did not save them, the program asks whether to drop them and move on (see Messages). |
| Save | Saves the current rules under a name. Disabled until you change, add or delete a rule. Details in Saving a custom query. |
| Delete | Deletes the saved query selected in Custom query. Disabled in a new query. After you confirm, the window returns to a new query. |
| Search | A button at the bottom of the window. Opens the search results with the current rules. You do not have to save them first. |
| Close | A button at the bottom of the window. It becomes Cancel after you change the rules. It asks whether to ignore the changes if the warning option On cancel is on. |
Search opens the results window over the search window, and the search window stays open under it. If you add no rule, Search lists all the documents that your two view permissions let you see (see Permissions).
Search rules
Every row of the grid is a rule. Click Click here to add a new rule under the grid to add a row. A new row starts with the first source, Document Info, the first field, Date added, the operator Less Than or Equal and today's date.
| Column | Description |
|---|---|
| (trash can button) | Deletes the rule from the grid. |
| And/Or | Joins the rule to the one before it: And (default) or Or. It is hidden in the first row. |
| Source | What you search in: the document itself or a record linked to it. The list is in Rule sources. |
| Field | A field of the chosen source. When you change the source the program selects the first field of the source. |
| Operator | The comparison condition. The list follows the type of the field, see Operators. When you change the field the program restores the default operator. |
| Value | The value to compare with. The shape of the box follows the type of the field, see Rule values. |
Right-click a rule and choose Delete to delete it. When you delete the first rule, And/Or is hidden in the rule that becomes first.
How the search combines the rules
The search splits the rules into groups at every Or. The rules of one group are joined with And, and then the groups are joined with Or. There are no brackets.
Example: four rules A, then B (And), then C (Or), then D (And). The condition is (A and B) or (C and D). A document appears if it meets either group.
If no source is left selected in a Document Sources rule, the group that contains the rule matches no document.
Operators
| Field type | Operators | Default |
|---|---|---|
| Text | Equal, Not Equal, Greater than, Greater than or equal, Less Than, Less Than or Equal, Contains and Not Contain | Equal |
| Number and date | Equal, Not Equal, Greater than, Greater than or equal, Less Than and Less Than or Equal | Equal, and Less Than or Equal in Date added and Document Size (KB) |
| Pick from a list, fixed list, Yes / No, User and Document type | Equal and Not Equal | Equal |
| Document Sources | Equal | Equal |
Contains and Not Contain look for the text anywhere in the value. The program removes semicolons and single quotation marks from the text you type. If you leave a text value empty, Equal matches an empty field and Not Equal matches a field that is not empty.
Rule values
The shape of the Value box changes with the type of the field.
Text value
A free text box.
Number value
A number box that accepts fractions. Its first value is 0. In the Document Size (KB) field you type the size in kilobytes, and the program converts it to bytes by multiplying by 1024 when it searches.
Date value
A date editor. Its first value is today's date. In Date added the days are compared, without the time. A saved custom query keeps the date you picked as it is, so it does not update to today's date when you open it later.
Value from a list
A drop-down list that does not accept typing. It is used for User (who added the document), Document type, the fixed-list fields in the sources and a data field of the Menu type. The first item is selected when the rule starts. In a data field of the Menu type that is not required, the item (Null) comes first, and it matches the documents where no item was chosen.
Yes / No value
A list with Yes and No, and its first value is Yes. It is used for a data field of the Yes / No type.
Value from cards
A token box: you type part of a name and the list narrows to the names that contain it, regardless of letter case, and you pick an item, which becomes a token in the box. You can pick more than one item. It is used for the card fields in the sources, such as customer, material, warehouse, cost center, account, currency and branch.
- With Equal the rule matches any of the picked items.
- With Not Equal the rule matches whatever is none of them.
- If you pick no item, Equal matches nothing and Not Equal matches everything.
Document sources value
A drop-down list with check boxes, used only for the Document Sources field. The first entry is Select All, then the sources in this order:
- Journal Entry.
- The record types you have browse or enter permission on, in blocks separated by a line: voucher forms; invoice forms; one standard invoice form; commercial paper forms; sales order forms; purchase order forms; transposition forms.
- After a line: Account Card, Customer Card, Material Card, Cost Center Card, Special Offer Card, Form Card, Production Plan Card, Manufacture Operation, Balance Reconciliation, Shipping to Profit Center, Shipping from Profit Center, Direct Purchase in Profit Center, Direct Purchase returns in Profit Center, Post Order (the name of the sub asset card in this list), Credit Note, Debit Note, Shipping and Contact Card.
All the sources are selected at first. The box shows All Resources if you select them all, No resource has been selected if you select none, and otherwise the names of the selected ones separated by commas, cut after 100 characters with ....
Rule sources and their fields
The Source box decides which fields appear in Field. There are seventeen sources. Credit Note and Debit Note have the same fields.
Document Info
| Field | Value type | Values |
|---|---|---|
| Date added | Date | |
| Document name | Text | |
| Document Latin name | Text | |
| User | List | The user who added the document. |
| Document Size (KB) | Number | The sum of the sizes of the files of the document. A document without files has size 0. |
| Document type | List | The defined document types, in order of their number. |
| Document Sources | Multiple choice | See Document sources value. |
After these fields the program adds one data field for every field you defined in Document Fields, with its name, and a value type that follows the type of the field: text, number, date, Menu or Yes / No.
Bill Info
| Field | Value type | Values |
|---|---|---|
| Material | Pick from a list (one or more) | |
| Number | Number | |
| Date | Date | |
| Customer | Pick from a list (one or more) | |
| Customer Account | Pick from a list (one or more) | |
| Header Warehouse | Pick from a list (one or more) | |
| Header Cost Center | Pick from a list (one or more) | |
| Distributor | Number | |
| Sales Man | Number | |
| Currency | Pick from a list (one or more) | |
| Branch | Pick from a list (one or more) | |
| Pay Type | Fixed list | Cash, Credit, Other |
| Notes | Text | |
| Field 1 | Text | |
| Field 2 | Text | |
| Field 3 | Text | |
| Field 4 | Text |
Entry Info
| Field | Value type | Values |
|---|---|---|
| Header Account | Pick from a list (one or more) | |
| Currency | Pick from a list (one or more) | |
| Date | Date | |
| Number | Number | |
| Notes | Text | |
| Branch | Pick from a list (one or more) |
Check Info
| Field | Value type | Values |
|---|---|---|
| Paper No. | Text | |
| Paper Type | Fixed list | Received, Paid |
| Internal No | Text | |
| Issue Date | Date | |
| Maturity Date | Date | |
| Paper Status | Fixed list | Not received or paid, Received or Paid, Received or Paid Partially, Returned before receive or pay, Endorsed, Received by endorsement, Returned from endorsement, Under collection, Received by collection, Returned from collection, Under discounting, Discounted, Received by discount, Returned from discounting, Undelivered |
| Receive from/Pay to | Pick from a list (one or more) | |
| Customer | Pick from a list (one or more) | |
| Customer Cost Center | Pick from a list (one or more) | |
| Paper Account | Pick from a list (one or more) | |
| Paper Cost Center | Pick from a list (one or more) | |
| Origin Name | Text | |
| Destination | Pick from a list (one or more) | |
| Customer Notes | Text | |
| Paper Notes | Text | |
| Paper Amount | Number | |
| Portfolio Date | Date | |
| Portfolio Internal Number | Text | |
| Portfolio External Number | Text | |
| Paper Currency | Pick from a list (one or more) | |
| Paper Branch | Pick from a list (one or more) |
Order Info
| Field | Value type | Values |
|---|---|---|
| Material | Pick from a list (one or more) | |
| Order No | Number | |
| Order Date | Date | |
| Customer | Pick from a list (one or more) | |
| Customer Account | Pick from a list (one or more) | |
| Header Warehouse | Pick from a list (one or more) | |
| Header Cost Center | Pick from a list (one or more) | |
| Distributor | Number | |
| Salesman | Number | |
| Currency | Pick from a list (one or more) | |
| Branch | Pick from a list (one or more) | |
| Order Status | Fixed list | Active, Closed, Canceled |
| Suggested Shipping Date | Date | |
| Suggested Arrival Date | Date | |
| Suggested Delivery Date | Date | |
| Agreed Shipping Date | Date | |
| Agreed Arrival Date | Date | |
| Agreed Delivery Date | Date | |
| Letter of Credit Date | Date | |
| Estimated Delivery Date | Date | |
| Shipping Method | Text | |
| Shipping Company | Text | |
| Shipping Terms | Text | |
| Delivery Terms | Text | |
| Arrival Point | Text | |
| Accredited Bank | Pick from a list (one or more) | |
| Account No | Text | |
| Letter of Credit Number | Text | |
| Field1 | Text | |
| Field 2 | Text | |
| Field 3 | Text | |
| Field 4 | Text |
Account Card Info
| Field | Value type | Values |
|---|---|---|
| Account | Pick from a list (one or more) | |
| Code | Text | |
| Name | Text | |
| Latin Name | Text | |
| Notes | Text | |
| Type | Fixed list | Normal, Final, Aggregative, Distributive |
| Parent | Pick from a list (one or more) | |
| Final | Pick from a list (one or more) | |
| Debit Or Credit | Fixed list | Debit, Credit, Debit And Credit |
Customer Card Info
| Field | Value type | Values |
|---|---|---|
| Customer | Pick from a list (one or more) | |
| Name | Text | |
| Latin Name | Text | |
| Barcode | Text | |
| Notes | Text | |
| Nationality | Text | |
| Job | Text | |
| Job Category | Text | |
| Gender | Text | |
| Certificates | Text | |
| Hobbies | Text | |
| Person in Charge | Text | |
| Country | Text | |
| City | Text | |
| Area | Text | |
| Street | Text | |
| ZipCode | Text | |
| Mail Box | Text | |
| Address | Text | |
| Customer Account | Pick from a list (one or more) | |
| Field1 | Text | |
| Field2 | Text | |
| Field3 | Text | |
| Field4 | Text | |
| Cost Center | Pick from a list (one or more) |
Material Card Info
| Field | Value type | Values |
|---|---|---|
| Material | Pick from a list (one or more) | |
| Code | Text | |
| Material Name | Text | |
| Latin Name | Text | |
| Group | Pick from a list (one or more) | |
| Description | Text | |
| Indications | Text | |
| Size | Text | |
| Origin | Text | |
| Position | Text | |
| Company | Text | |
| Color | Text | |
| Provenance | Text | |
| Quality | Text | |
| Model | Text |
Cost Center Card Info
| Field | Value type | Values |
|---|---|---|
| Cost center | Pick from a list (one or more) | |
| Code | Text | |
| Name | Text | |
| Latin Name | Text | |
| Notes | Text | |
| Cost Center Type | Fixed list | Normal, Collective, Distributive |
| Main Cost Center | Pick from a list (one or more) |
Special Offer Card Info
| Field | Value type | Values |
|---|---|---|
| Code | Text | |
| Name | Text | |
| Latin Name | Text | |
| Cost Center | Pick from a list (one or more) | |
| Class | Text | |
| Type | Text | |
| Customer Account | Pick from a list (one or more) | |
| Offer Type | Fixed list | Gifts Offer, Price-off, Multi Items, Contract Offer, Budget Offer |
| Material Account | Pick from a list (one or more) | |
| Material Discount Account | Pick from a list (one or more) |
Form Card Info
| Field | Value type | Values |
|---|---|---|
| Code | Text | |
| Model Name | Text | |
| Latin Name | Text | |
| Notes | Text | |
| Main Form | Pick from a list (one or more) | |
| Designer Name | Text | |
| Currency | Pick from a list (one or more) | |
| Design Date | Date | |
| Phase Number | Number | |
| Output Warehouse | Pick from a list (one or more) | |
| Input Warehouse | Pick from a list (one or more) | |
| Output Cost Center | Pick from a list (one or more) | |
| Input Cost Center | Pick from a list (one or more) | |
| Output Account | Pick from a list (one or more) | |
| Input Account | Pick from a list (one or more) | |
| Output Intermediary Account | Pick from a list (one or more) | |
| Input Intermediary Account | Pick from a list (one or more) |
Production Plan Info
| Field | Value type | Values |
|---|---|---|
| Code | Text | |
| State | Fixed list | Fixed, Completed, Deferred |
| Start Date | Date | |
| End Date | Date | |
| Notes | Text |
Manufacturing Operation Info
| Field | Value type | Values |
|---|---|---|
| Form | Pick from a list (one or more) | |
| Material | Pick from a list (one or more) | |
| Notes | Text | |
| Production Time | Number | |
| Phase Number | Number | |
| Lot No | Text | |
| Currency | Pick from a list (one or more) | |
| Unit | Fixed list | Unit 1, Unit 2, Unit 3 |
| Date | Date | |
| Raw Materials Output Date | Date | |
| Raw Materials Output Warehouse | Pick from a list (one or more) | |
| Raw Materials Output Cost Center | Pick from a list (one or more) | |
| Raw Materials Output Account | Pick from a list (one or more) | |
| Raw Materials Output Intermediary Account | Pick from a list (one or more) | |
| Finished Goods Input Date | Date | |
| Finished Goods Input Warehouse | Pick from a list (one or more) | |
| Finished Goods Input Cost Center | Pick from a list (one or more) | |
| Finished Goods Input Account | Pick from a list (one or more) | |
| Finished Goods input Intermediary Account | Pick from a list (one or more) |
Account Check Balance Info
| Field | Value type | Values |
|---|---|---|
| Account | Pick from a list (one or more) | |
| Customer | Pick from a list (one or more) | |
| Cost Center | Pick from a list (one or more) | |
| Currency | Pick from a list (one or more) | |
| Date | Date |
Credit Note and Debit Note
| Field | Value type | Values |
|---|---|---|
| Customer | Pick from a list (one or more) | |
| Customer Account | Pick from a list (one or more) | |
| Currency | Pick from a list (one or more) | |
| Original Bill Form | Pick from a list (one or more) | |
| Date | Date | |
| Cost center | Pick from a list (one or more) | |
| Original Bill Number | Number | |
| Note Serial Number | Number | |
| Original Bill Serial Number | Number | |
| Branch | Pick from a list (one or more) |
Shipping
| Field | Value type | Values |
|---|---|---|
| Shipping Warehouse | Pick from a list (one or more) | |
| Receipt WHS | Pick from a list (one or more) | |
| Goods in Transit Warehouse | Pick from a list (one or more) | |
| Shipping Branch | Pick from a list (one or more) | |
| Receiving Branch | Pick from a list (one or more) | |
| Shipping Date | Date | |
| Date of Receipt | Date |
Saving a custom query
The Save button starts these steps:
- If no rule is left, the message "At least one rule must be added." appears.
- If another saved query has the same rules, the program asks whether to continue, with the name of that query. The answer No stops the save.
- The Query Properties window opens.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Name | The name of the saved query. | Yes | Not repeated among saved queries. At most 250 characters. Example: Sales invoices of the customer. |
Ok saves, and Close backs out of the save. When you change a saved query the window shows its current name, and you can change it. After you save a new query it becomes the selected one in Custom query.
The query keeps the source, field, operator and value of every rule and how they are joined with And or Or. A saved query does not belong to a user, and everyone sees it in Custom query.
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 window could not open from the ribbon. | Check that the .NET environment is installed, then try again. |
| At least one rule must be added. | Save and the grid has no rule. | Add a rule. |
| There is another query ( … ) with the same rules, do you want to continue? | Save and another saved query has the same rules. A warning with Yes and No, and the name of the other query in the message. | Yes continues the save, No stops it. |
| Missing Name | Name is empty in Query Properties. | Type the name. |
| Maximum field characters length is 250 | The name is longer than 250 characters. | Shorten the name. |
| Search type name is duplicated | The name is used by another saved query. | Change the name. |
| Error occurred while saving changes to the database. | Save or Delete of the query failed for a reason other than a repeated name. | Try again. |
| Are you sure you want to delete? | The confirmation of Delete for a saved query. It always appears. | Delete confirms, Cancel backs out. |
| Are you sure you want to ignore information entered here and move into a new record? | New or choosing another saved query after you changed the rules without saving. It appears if the warning option On cancel is on. | Move drops the changes, Don't Move stays. |
| Stored procedure is not found, please update the database. | A list of values for a rule needs a procedure that is not in the company file. The text of the error follows. | Update the company file. |
The general confirmation messages and their buttons are in Messages and callouts.
Related
This page applies to alameen ERP 10, version 10.1.79.764.