Skip to main content

Smart lists

Smart lists show records such as customers or materials in one grid. You choose the fields to see, type search conditions, and save the query to reuse it. In some lists you edit records in the grid, or apply one action to several records at once.

Opening the window​

The Smart Lists button is the first button on the Quick Access Toolbar at the top of the main window. It appears only while a company file is open. There are two ways to open the window:

  • Click the button, or press Ctrl+L. The window opens on a page with the available lists.
  • Click the arrow next to the button. It shows the saved queries you ran or saved most recently, up to 15, then the Open command. Choose a query to open the window on it. The query runs at once. Saved queries belong to each user.

The window shows only the lists whose card you may open. The same applies to the recent queries in the arrow: only queries of lists available to you appear.

ListPermission in Users ManagementNotes
MaterialMaterial CardYou can edit it, add materials and delete them, as far as the card permission levels allow.
CustomerCustomer / SupplierYou can edit it. See Customer smart list.
Manufacture FormForm CardView only.
Special OffersPOS Special OfferView only.
Devices maintenanceMaintenance Workshop CardNeeds the device maintenance feature in your licence. You can edit and delete its records as your permission allows, but not add records from it.
Users ManagementUsers ManagementView only.
Groups ManagementGroups ManagementView only.

If only one list is available to you, the window opens on it directly, without the selection page.

The Smart Lists window on the list selection page: the recent queries above and a large button for each of the seven lists

Tabs​

The window opens at 70% of the screen size and has a maximize button. Each list you open gets its own tab, so one window can hold several lists, or the same list with several queries.

ItemWhat it does
+ button on the tab stripOpens a new tab on the list selection page.
Close button on a tabCloses the tab. Closing the last tab closes the window. The program does not ask about a query you did not save.
Dragging a tabChanges the order of the tabs.

The list selection page​

It appears in a new tab. At the top is a button for each of your recent queries. This row appears only if you have run a query before. Below it is a large button for each list available to you. Click a list to open a new query on it. Click a recent query to open it and run it at once.

After you open a list, the tab title is "list name - query name". A new query gets a temporary name made of Query and a number, such as Query 1. It is not stored until you save it.

Toolbar​

ButtonWhat it doesShortcut
RunShows the records that match the conditions in the grid.Enter in a text or number value box
NewStarts a new query with the default conditions, keeps the display fields and list options as they are now, and empties the grid.Ctrl+N
SaveSaves the current query. A new query asks for a name in the Save As window, which says Choose Name.Ctrl+S
RenameChanges the name of the saved query. Disabled for a query not saved yet.
DeleteDeletes the saved query after you confirm, then opens the last query of the list, or a new one. Disabled for a query not saved yet.
Drop-down of query namesLists your saved queries for this list. Choose one to load its fields, conditions and options. The query does not run until you click Run.
PreviewShows the grid result in the preview. Disabled until you run the query.Ctrl+W
PrintPrints the grid result. Disabled until you run the query.Ctrl+P
Edit ModeLets you edit cells in the grid. Appears only in a list you can edit.
Allow AddShows an add row at the end of the grid. Works only with Edit Mode, and appears only if you may add.
Instant SearchWhen on, the query runs each time you change a text or number value. After changing a date or a value from a list, click Run.
Show Total SummaryShows or hides the totals row at the bottom of the grid. On in a new query.
OptionsShows or hides the Options panel. On in a new query.Ctrl+L
ActionsShows or hides the Actions panel. Appears only in a list that has actions available to you.

Save stores with the query: the display fields, the conditions with their values, the list options, the state of Instant Search and Show Total Summary, whether the Options panel shows, and Defer Update. It does not store the grid result.

note

A query opened from the arrow beside Smart Lists, or from the recent queries on the selection page, runs at once. Choosing a query in the toolbar drop-down only loads its settings, without running it.

Conditions​

Above the grid there is one row for each condition. Join each condition to the previous one with And or Or.

FieldDescriptionValues and rules
+ buttonInserts a new condition before this row.
× buttonDeletes this condition.
And / OrJoins this condition to the one before it. Hidden in the first row.And or Or.
FieldThe field to search in. Type part of its name to narrow the list.The searchable fields of this list.
OperationHow to compare.Its list depends on the field type, see the next table.
ValueWhat to compare with. The control follows the field: date, text, number, a choice list, or a lookup with suggestions.Disabled for Is Empty and Is Not Empty.
Ignore words orderMatches the words wherever they occur, not in order.Shown only for a text field with Contains or Does Not Contain.
Field typeAvailable operations
TextEqual, Contains, Does Not Contain, Is Empty, Is Not Empty, Starts With, Ends With. The default is Contains.
Number or dateEqual, Not Equal, Greater, Greater Or Equal, Less, Less Or Equal.
Field with a fixed list of valuesEqual and Not Equal. A yes/no field has Equal only.

When you pick a date field, the program puts today's date as the first value. When you pick a field with a fixed list of values, it puts the first value of the list.

Under the conditions:

ButtonWhat it does
Add new conditionAdds a condition at the end, on the first available search field.
ResetClears the values of all conditions and keeps the conditions.
DeleteDeletes the records selected in the grid from the file. Appears after you run the query, with Edit Mode, in a list where you may delete.
CountThe number of rows in the grid result. Appears after you run the query.

Press Enter in a text or number value box to run the query. In a date box or a list, the key does nothing for the query, so click Run.

Grid​

The Customer smart list with the condition Customer Contains النخيل, the result count, the grid with the Customer, Balance and Account columns, and the Options panel open on Display Fields

The grid shows the selected display fields. For general grid behaviour see Grid. What is specific to smart lists:

  • Click a column header to sort by it, and drag a header to move the column.
  • A column shows values by field type: a choice list, date and time, a check box for a yes/no field, or a number in its format.
  • A field that has a total shows its sum, minimum, maximum, count or average in the totals row at the bottom. The position and style of that row come from the report options.
  • When you select a row that has pictures, they appear in the Picture window if it is open.
  • You can select more than one row when the list has actions, or when Edit Mode is on and deleting is allowed. A column of check boxes then appears.
  • The row indicator appears while Edit Mode is on.

Right-click a row. The menu does not appear on the add row.

CommandWhat it does
Select AllSelects all rows. Ctrl+A
Invert SelectionSelects the rows that are not selected and clears the selected ones. The last row does not change, so check it before you apply an action. Ctrl+R
List commandsThey differ by list and work on the record you clicked.
ListIts own commands
CustomerView Customer Card..., then View Customer Statement... if you have the Customer Statement permission.
MaterialView Material Card..., then View Material Movement... and View Daily Movement... if you have their permissions.
Special OffersView Special Offer Card...
Manufacture FormBill of Materials Card...
Users ManagementUsers Management
Groups ManagementGroups Management
Devices maintenanceAdd new maintenance order... for a row that has a type, and Show Maintenance Order... for a row that has a maintenance order.

Options panel​

It appears beside the grid. The two unlabeled buttons at its top expand or collapse all sections.

Display Fields​

ItemWhat it does
Search boxNarrows the field list by part of a name.
Field listTick each field you want as a column in the grid. The fields ticked by default depend on the list.
Defer UpdateWhen on, changing the ticked fields does not run the query, and the grid stays as it is until you click Run. When off and the grid has a result, the query runs again at each change.

In a list you can edit, the list itself may adjust the ticked fields when you change them, to fit the edit mode.

List options​

Below Display Fields are sections that each type of list adds as it needs, such as price types, currency or display switches. Their values are part of the query and are saved with it. Example: Devices maintenance has Show Delivered Orders, Show Canceled Orders and a currency field.

Actions panel​

An action applies to all rows selected in the grid and changes the stored data directly. The Actions button shows the panel, and appears only in a list that has actions available to you.

ItemWhat it does
OperationChoose the action. Before you choose, the panel says "Select the action from the list above."
Action formAppears after you choose an action, with the fields of that action.
ApplyApplies the action to the selected rows. Disabled when no row is selected, or while the program is busy.

When you click Apply, the program validates the form, then asks "Do you want to apply this action to the selected logs?" with the number of records. It warns that the action runs directly on the stored records and cannot be undone. If you agree, the panel shows "Executing action" with the action name, and a Cancel button that stops the action. When it ends, the query runs again to show the result, unless you cancelled.

Available actions​

ActionListsWhat it doesPermission in Users Management
Replace field valueMaterial, CustomerPuts a new value in a field you choose. The value box follows the field: text, number, yes/no or security level, or a cost center or a price in the Customer list.Replace field value on the Smart Lists page
Add TextMaterial, CustomerAdds text Before or After the current text of the chosen text field.Add text
Replace part of textMaterial, CustomerReplaces Old Text with New Text in the chosen text field.Replace part of text
Change Price ListCustomerSets the chosen Price List for all selected customers. The price list is required.Change price list
Change groupMaterialMoves the selected materials to a group you choose.Change group
Modify giftsMaterialSets Gift and For every for the selected materials. Both must be zero or more.Modify gifts
Modify material priceMaterialChanges prices by a type you choose: Operation Type: Multiply by a percent, Multiply by a number, Add specific value, Reduce specific value, Multiply by a unit conversion factor, Modify every price, Modify to price.Modify material price
Select workshopDevices maintenanceSets the maintenance workshop of the selected devices, by the order type you choose.Select workshop
Schedule visitDevices maintenanceSets the visit date of the selected devices. The date is required.Schedule visit

An action does not appear for a user who lacks its permission. After Replace field value, Add Text or Replace part of text, the program applies the action only to the records whose security level you may change. The result message appears after every action except Change Price List and Schedule visit. If it applied to all records, it shows Action successfully applied. If only to some, it shows Action partially applied. In Select workshop, records of the other order type are not changed.

note

In Add Text and Replace part of text, do not type the single quotation mark ' in the text. The action may fail or give a different result.

Editing in the grid​

Turn on Edit Mode to edit cells. Which fields you can edit depends on the list, and the rest are read-only. The program saves the changes of a row to the file when you move to another row.

  • To add a record, turn on Allow Add and type in the last row. The program gives the new record the next number after the last one.
  • To delete records, select them and click Delete or press Del. The program asks: "Neither records in use or records that you have no permission on will be deleted, are you sure you want to complete the deletion process?". After deleting, the Customer list shows the number of customers deleted and the number ignored.
  • The program does not let you edit a record whose security level is higher than your permission level for editing the card.

Messages​

MessageWhy it appearsWhat to do
The field '…' is required. Please enter an appropriate value.You left a required field empty in a cell, or in a new or changed row.Enter a value.
… DuplicatedThe value exists in another record and the field does not accept repeats.Enter another value.
You have no permission to use the selected security levelYou chose a security level higher than your permission.Choose a lower level.
Neither records in use or records that you have no permission on will be deleted...You asked to delete records.Confirm to delete, or cancel.
Do you want to apply this action to the selected logs?You clicked Apply.Click Yes to go on, or No to stop.
Action successfully appliedThe action was applied to all selected records.
Action partially appliedThe action was applied to some records only.Check your permissions on the other records.

Preview and print​

Preview and Print show the current grid result in a report titled with the list name. It has one table whose columns are the selected display fields, in the same order. Wide columns such as names get more room. Fields that have a list of values print the text of the value, not its code. The preview does not keep workspaces. Its other features, such as export and filtering, are in the viewer.

This page applies to alameen ERP 10, version 10.1.79.764.