Skip to main content

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​

ItemWhat it does
Custom queryA 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.
NewStarts 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).
SaveSaves the current rules under a name. Disabled until you change, add or delete a rule. Details in Saving a custom query.
DeleteDeletes the saved query selected in Custom query. Disabled in a new query. After you confirm, the window returns to a new query.
SearchA button at the bottom of the window. Opens the search results with the current rules. You do not have to save them first.
CloseA 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.

ColumnDescription
(trash can button)Deletes the rule from the grid.
And/OrJoins the rule to the one before it: And (default) or Or. It is hidden in the first row.
SourceWhat you search in: the document itself or a record linked to it. The list is in Rule sources.
FieldA field of the chosen source. When you change the source the program selects the first field of the source.
OperatorThe comparison condition. The list follows the type of the field, see Operators. When you change the field the program restores the default operator.
ValueThe 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 typeOperatorsDefault
TextEqual, Not Equal, Greater than, Greater than or equal, Less Than, Less Than or Equal, Contains and Not ContainEqual
Number and dateEqual, Not Equal, Greater than, Greater than or equal, Less Than and Less Than or EqualEqual, and Less Than or Equal in Date added and Document Size (KB)
Pick from a list, fixed list, Yes / No, User and Document typeEqual and Not EqualEqual
Document SourcesEqualEqual

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:

  1. Journal Entry.
  2. 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.
  3. 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​

FieldValue typeValues
Date addedDate
Document nameText
Document Latin nameText
UserListThe user who added the document.
Document Size (KB)NumberThe sum of the sizes of the files of the document. A document without files has size 0.
Document typeListThe defined document types, in order of their number.
Document SourcesMultiple choiceSee 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​

FieldValue typeValues
MaterialPick from a list (one or more)
NumberNumber
DateDate
CustomerPick from a list (one or more)
Customer AccountPick from a list (one or more)
Header WarehousePick from a list (one or more)
Header Cost CenterPick from a list (one or more)
DistributorNumber
Sales ManNumber
CurrencyPick from a list (one or more)
BranchPick from a list (one or more)
Pay TypeFixed listCash, Credit, Other
NotesText
Field 1Text
Field 2Text
Field 3Text
Field 4Text

Entry Info​

FieldValue typeValues
Header AccountPick from a list (one or more)
CurrencyPick from a list (one or more)
DateDate
NumberNumber
NotesText
BranchPick from a list (one or more)

Check Info​

FieldValue typeValues
Paper No.Text
Paper TypeFixed listReceived, Paid
Internal NoText
Issue DateDate
Maturity DateDate
Paper StatusFixed listNot 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 toPick from a list (one or more)
CustomerPick from a list (one or more)
Customer Cost CenterPick from a list (one or more)
Paper AccountPick from a list (one or more)
Paper Cost CenterPick from a list (one or more)
Origin NameText
DestinationPick from a list (one or more)
Customer NotesText
Paper NotesText
Paper AmountNumber
Portfolio DateDate
Portfolio Internal NumberText
Portfolio External NumberText
Paper CurrencyPick from a list (one or more)
Paper BranchPick from a list (one or more)

Order Info​

FieldValue typeValues
MaterialPick from a list (one or more)
Order NoNumber
Order DateDate
CustomerPick from a list (one or more)
Customer AccountPick from a list (one or more)
Header WarehousePick from a list (one or more)
Header Cost CenterPick from a list (one or more)
DistributorNumber
SalesmanNumber
CurrencyPick from a list (one or more)
BranchPick from a list (one or more)
Order StatusFixed listActive, Closed, Canceled
Suggested Shipping DateDate
Suggested Arrival DateDate
Suggested Delivery DateDate
Agreed Shipping DateDate
Agreed Arrival DateDate
Agreed Delivery DateDate
Letter of Credit DateDate
Estimated Delivery DateDate
Shipping MethodText
Shipping CompanyText
Shipping TermsText
Delivery TermsText
Arrival PointText
Accredited BankPick from a list (one or more)
Account NoText
Letter of Credit NumberText
Field1Text
Field 2Text
Field 3Text
Field 4Text

Account Card Info​

FieldValue typeValues
AccountPick from a list (one or more)
CodeText
NameText
Latin NameText
NotesText
TypeFixed listNormal, Final, Aggregative, Distributive
ParentPick from a list (one or more)
FinalPick from a list (one or more)
Debit Or CreditFixed listDebit, Credit, Debit And Credit

Customer Card Info​

FieldValue typeValues
CustomerPick from a list (one or more)
NameText
Latin NameText
BarcodeText
NotesText
NationalityText
JobText
Job CategoryText
GenderText
CertificatesText
HobbiesText
Person in ChargeText
CountryText
CityText
AreaText
StreetText
ZipCodeText
Mail BoxText
AddressText
Customer AccountPick from a list (one or more)
Field1Text
Field2Text
Field3Text
Field4Text
Cost CenterPick from a list (one or more)

Material Card Info​

FieldValue typeValues
MaterialPick from a list (one or more)
CodeText
Material NameText
Latin NameText
GroupPick from a list (one or more)
DescriptionText
IndicationsText
SizeText
OriginText
PositionText
CompanyText
ColorText
ProvenanceText
QualityText
ModelText

Cost Center Card Info​

FieldValue typeValues
Cost centerPick from a list (one or more)
CodeText
NameText
Latin NameText
NotesText
Cost Center TypeFixed listNormal, Collective, Distributive
Main Cost CenterPick from a list (one or more)

Special Offer Card Info​

FieldValue typeValues
CodeText
NameText
Latin NameText
Cost CenterPick from a list (one or more)
ClassText
TypeText
Customer AccountPick from a list (one or more)
Offer TypeFixed listGifts Offer, Price-off, Multi Items, Contract Offer, Budget Offer
Material AccountPick from a list (one or more)
Material Discount AccountPick from a list (one or more)

Form Card Info​

FieldValue typeValues
CodeText
Model NameText
Latin NameText
NotesText
Main FormPick from a list (one or more)
Designer NameText
CurrencyPick from a list (one or more)
Design DateDate
Phase NumberNumber
Output WarehousePick from a list (one or more)
Input WarehousePick from a list (one or more)
Output Cost CenterPick from a list (one or more)
Input Cost CenterPick from a list (one or more)
Output AccountPick from a list (one or more)
Input AccountPick from a list (one or more)
Output Intermediary AccountPick from a list (one or more)
Input Intermediary AccountPick from a list (one or more)

Production Plan Info​

FieldValue typeValues
CodeText
StateFixed listFixed, Completed, Deferred
Start DateDate
End DateDate
NotesText

Manufacturing Operation Info​

FieldValue typeValues
FormPick from a list (one or more)
MaterialPick from a list (one or more)
NotesText
Production TimeNumber
Phase NumberNumber
Lot NoText
CurrencyPick from a list (one or more)
UnitFixed listUnit 1, Unit 2, Unit 3
DateDate
Raw Materials Output DateDate
Raw Materials Output WarehousePick from a list (one or more)
Raw Materials Output Cost CenterPick from a list (one or more)
Raw Materials Output AccountPick from a list (one or more)
Raw Materials Output Intermediary AccountPick from a list (one or more)
Finished Goods Input DateDate
Finished Goods Input WarehousePick from a list (one or more)
Finished Goods Input Cost CenterPick from a list (one or more)
Finished Goods Input AccountPick from a list (one or more)
Finished Goods input Intermediary AccountPick from a list (one or more)

Account Check Balance Info​

FieldValue typeValues
AccountPick from a list (one or more)
CustomerPick from a list (one or more)
Cost CenterPick from a list (one or more)
CurrencyPick from a list (one or more)
DateDate

Credit Note and Debit Note​

FieldValue typeValues
CustomerPick from a list (one or more)
Customer AccountPick from a list (one or more)
CurrencyPick from a list (one or more)
Original Bill FormPick from a list (one or more)
DateDate
Cost centerPick from a list (one or more)
Original Bill NumberNumber
Note Serial NumberNumber
Original Bill Serial NumberNumber
BranchPick from a list (one or more)

Shipping​

FieldValue typeValues
Shipping WarehousePick from a list (one or more)
Receipt WHSPick from a list (one or more)
Goods in Transit WarehousePick from a list (one or more)
Shipping BranchPick from a list (one or more)
Receiving BranchPick from a list (one or more)
Shipping DateDate
Date of ReceiptDate

Saving a custom query​

The Save button starts these steps:

  1. If no rule is left, the message "At least one rule must be added." appears.
  2. 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.
  3. The Query Properties window opens.
FieldDescriptionRequiredValues and rules
NameThe name of the saved query.YesNot 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​

MessageWhy it appearsWhat 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 NameName is empty in Query Properties.Type the name.
Maximum field characters length is 250The name is longer than 250 characters.Shorten the name.
Search type name is duplicatedThe 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.

This page applies to alameen ERP 10, version 10.1.79.764.