Skip to main content

Report grid tools

Most smart reports show their result in a table. alameen ERP 10 gives you a set of tools for that table: you sort, group, summarize, search, add columns and highlight values without running the report again. This page lists every command, button and window of those tools. For the steps, see Sort, group and summarize a grid, Search inside a report grid, Add a calculated field and Apply conditional formatting.

Opening the tools​

The tools belong to the report viewer. See Report viewer for the window itself.

  • Click inside a table. The ribbon moves to the Tools tab. The tab shows only while a table is the selected panel. For pivot tables and charts, see Pivot table tools and Chart tools.
  • The Conditional Formatting tab shows while a table or a pivot table is selected.
  • The Search Tools tab shows while the search bar of the table is open.
  • Right-click a cell, a group row or a total to open the table menus. See Right-click menus.

What you can do depends on the report. A report may switch off sorting, grouping, summaries or filtering for a table. A command that the report switches off is hidden or disabled.

The Tools tab of the ribbon over a table, with the Clipboard, Selection, Layout, Grouping, Data and Search and Filtering groups

The Tools tab​

The tab has these groups. Some groups appear only for some tables.

Clipboard group​

ButtonWhat it does
Copy (Ctrl+C)Copies the selected rows, with the column headers, to the Windows clipboard. When the selection mode is Cells, it copies the selected cells.
Copy without header (Ctrl+Shift+C)In the drop-down of Copy. The same, without the header row.

Copying, with the two buttons and with Ctrl+C, needs the Export Reports permission. Without it, the message "You do not have permission to copy data." appears and nothing is copied.

Selection group​

ButtonWhat it does
SelectOpens the selection commands: Select All (Ctrl+A), Select Columns (Ctrl+Shift+A, works in Cells mode), Invert Selection (Ctrl+R) and Clear Selection.
Smart selection items in the same listSelect the rows (or the cells of the selected columns) whose value in the current column relates to the value of the current cell. See Smart selection.
RowsCheck button. Clicking a cell selects its whole row.
CellsCheck button. Clicking a cell selects cells, and you can select a block of cells and copy it.

The two modes apply to the table and its detail tables together.

Smart selection​

The items work on the current column. First click a cell, then choose an item. The program compares the value of every row in this column with the value of the cell you clicked, and selects the rows that match. It clears the old selection first.

ItemSelects the rows where the value isShown when the column is
Same Signpositive when the current cell is positive, negative when it is negativenumeric
Opposite Signof the opposite sign to the current cellnumeric
Same Dayon the same daya date
Same Monthin the same month and yeara date
Same Yearin the same yeara date
Equalequal to the current valueany
Not Equalnot equal to the current valueany
Greater Thangreater than the current valueany
Greater Than or Equalgreater than or equal to the current valueany
Less Thanless than the current valueany
Less Than or Equalless than or equal to the current valueany

The items Same Sign and Opposite Sign ignore zero values. On the Tools tab the comparison items show for every column type. In the cell menu some of them show for numeric columns only. Rows hidden by a filter are not compared, and neither are rows inside a collapsed group.

Layout group​

ButtonWhat it does
Auto Width (Ctrl+W)Check button. Fits all columns to the width of the table.
Best Fit (Ctrl+B)Sets the width of every column to fit its contents. Disabled while Auto Width is on.
Freeze ColumnsDrop-down: None, Freeze to Left (Shift+Alt+Left) and Freeze to Right (Shift+Alt+Right). Fixes the selected columns (or the current column) at that side, so they stay in view while you scroll. Disabled until a column is current.
Freeze RowsDrop-down: None, Freeze to Top (Shift+Alt+Up) and Freeze to Bottom (Shift+Alt+Down). Fixes the selected rows (or the current row). Shown only for tables that have no detail tables.
Add ColumnOpens Add Column.
Delete ColumnDrop-down that lists the columns you added with Add Column, by title. Click a title to delete that column at once, without a question. It lists the columns of the main table only: hide a column that you added to a detail table in the Field List. Disabled when you added none.
Top, Center, BottomCheck buttons: the vertical alignment of the text in the cells.
Allow text wrappingCheck button. Wraps long text inside the cell.
Show rows numbersCheck button. Shows a numbered column at the start of the table.

The three alignment buttons, Allow text wrapping and Show rows numbers change the report options at once, and they apply to every table. You can also change them in Report options.

Grouping group​

The group appears only for tables that allow grouping.

ButtonWhat it does
Group PanelCheck button. Shows or hides the panel above the table where you drop column headers to group.
Grouped ColumnsCheck button. Shows or hides, in the table itself, the columns you grouped by.
Merge GroupsShows the values of the grouped columns together on one group row, instead of one nested row for each level. Disabled when the table is not grouped.
UnMerge GroupsUndoes Merge Groups. Disabled when the table is not grouped.
Group IntervalDrop-down: Date, Year, Month, Range. Chooses how a date column that you grouped by is divided: by each date, by year, by month, or into relative ranges such as this week and last month. Enabled only when one of the grouped columns is a date.
Sort by SummaryOpens Sort by Summary. Enabled when the table is grouped and has at least one group summary.
UngroupRemoves all grouping. The arrow lists the grouped columns by name: choose one to remove only that column.
Expand / CollapseDrop-down. It lists the grouped columns: choose one to open all groups and then collapse the groups of that column. Then Expand All and Collapse All. Disabled when the table is not grouped.

Grouping and sorting mark the report as changed. See Closing the viewer for what the program does then.

Master/Detail group​

The group appears for tables that have detail tables, such as a list of entries with the lines of each entry.

ButtonWhat it does
OptionsDrop-down with check items: Show Detail Tabs and Show Items Count in Detail Header and Show Empty Detail (these three only when the table has more than one detail), Show Detail Column Headers, and a slider Spacing between the details.
DetailsShown when the table has more than one detail. The list names each detail, with Ctrl+1, Ctrl+2 and so on. Choosing one expands all master rows and shows that detail. Disabled while the cursor is in a detail table.
ExpandExpands all master rows. For large tables (100 rows or more at first) the status bar shows progress and a cancel button.
CollapseCollapses all master rows.

Expand / Collapse group (tree tables)​

Appears instead of the group above for tables shown as a tree.

ButtonWhat it does
LevelDrop-down of levels 1, 2, 3 up to the one before the deepest, and at most 4, then Expand All and Collapse All. Beyond level 4 use Expand All. A level collapses all nodes and then expands the tree down to that level.
ExpandExpands all nodes.
CollapseCollapses all nodes.

Data group​

The group appears only when the report allows summaries for the table.

ButtonWhat it does
Manage Calculated FieldsOpens Manage Calculated Fields.
Manage Summaries (Ctrl+Shift+S)Opens Manage Summaries. Disabled while Summarize Selection is on.
Summarize SelectionCheck button. When on, group summaries and totals count only the selected rows (or cells). Enabled when the table has a total summary that is shown, or is grouped.

Search and Filtering group​

ButtonWhat it does
Search (Ctrl+F)Check button. Shows the search bar above the table. See Search. The box at the top of the window that reads "Search (Ctrl+E)" is a different search: it looks for ribbon commands.
Filter (Ctrl+Shift+F)Opens the filter editor. The arrow opens a menu with New, Clear All Details Filters (tables with details only) and Manage Filters... (disabled while the table has no filter and no recent filters). The menu can also list the filters you used recently, which you click to apply again; in the Trial Balance it showed only New and Manage Filters... even after two filters were applied. If an error window appears when you choose Manage Filters..., click Close: the Filter Manager then opens.
Auto Filter RowCheck button. Shows a row under the headers where you type a filter for each column.
Filter ToolsDrop-down: Default, Show Always, Never. Controls when the strip that shows the active filter appears under the table.

The filter editor, the filters manager and the saved filters are explained in Report filters.

Keyboard​

These keys work while the table is the selected panel. + and - are the number pad keys.

KeyWhat it does
+ and -Expands or collapses the current master row.
*Expands the current node of a tree table.
Ctrl with + or -Expands or collapses all master rows (all nodes of a tree table).
Ctrl+Shift with + or -Expands or collapses all groups.
Ctrl+1, Ctrl+2 and so onChooses a detail and shows it.

Click Search (Ctrl+F). A bar appears above the table with the Search box, a magnifier button, a warning icon and a counter. The Search Tools tab appears on the ribbon. Press Esc to close the bar.

The search bar above a table, with the search text, the counter and the Search Tools tab

ItemWhat it does
Search boxType the text and press Enter, or click the magnifier. The box shows the hint "Type Search String and Press Enter." The text is trimmed. A search starts only when the text has two characters or more, or is a single digit.
CounterShows the position and the number of results, for example 2 / 7. Shows "No results found" when nothing matches.
Warning iconAppears when nothing was found and some columns were not searched. Its hint reads "Not all columns were searched. To choose which columns to search click 'Search Fields' command."

How a search works:

  • The program looks in the visible columns, taken when the bar opens: if you show a column later, tick it in Search Fields or reopen the bar. Columns of the type yes/no are never searched. If the program runs on a Hijri calendar, date columns are not searched. The option Search fields selection mode in the report options can limit the search to text columns, text and date columns, or numeric columns.
  • A calculated field that was visible when the bar opened is in the search columns. A search that includes it ends in an error window ("Object reference not set to an instance of an object."), so clear its box in Search Fields before you search.
  • A numeric column is searched only when the text you typed is a number. The program compares your text with the stored number written as plain text, so type the number without a thousands separator, for example 1250.5.
  • A row is a result when the text matches any of the searched columns, under the condition you chose: Contains, Starts with or Equals.
  • Rows hidden by a filter are not searched. The result list changes when you change the filter or the columns of the table: the program then clears the search.
  • Pressing Enter in the box searches. Pressing Enter again with the same text goes to the next result.
  • The program selects the first result at once. When the scope is the main table, red marks on the vertical scroll bar show where the results are.
  • If Show results dialog automatically after search is on in the report options, the results window opens after each search that finds something. It is off at first.
  • The program keeps the texts you searched for in the Recent Searches list. The option Items to show in recent searches list sets its length. It is 10 at first.

The Search Tools tab​

GroupButtonWhat it does
NavigationFirstGoes to the first result.
Previous (Shift+F3)Goes to the previous result.
Next (F3)Goes to the next result.
LastGoes to the last result.
View All ResultsOpens Search Results. Disabled when there are no results.
ScopeMaster (Ctrl+M)Check button. Searches the main rows.
Detail (Ctrl+D)Check button. Searches the detail rows and, for a result, expands the master row that holds it. When the table has more than one detail, only the first detail is searched.
Filter ConditionContainsCheck button. The text appears anywhere in the value.
Starts withCheck button. The value starts with the text.
EqualsCheck button. The whole value equals the text.
OptionsSearch Fields (Ctrl+L)Opens Search Fields.
Recent SearchesDrop-down of earlier texts. Choosing one restores its scope and text and searches again. Disabled while the list is empty.
CloseClose SearchCloses the search bar.

The group Scope appears only for tables that have details. When you change the scope or the condition, the search runs again. At first the scope follows the option Search scope selection mode: Auto uses the detail when the cell you are in belongs to a detail table.

Search Fields window​

Opens from Search Fields. It chooses the columns to search.

The Search Fields window with the list of columns and check marks

ItemWhat it does
Master and Detail buttonsAt the top of the window, only for tables that have details. Switch the list between the columns of the main table and of the detail table.
List of columnsAt the top, (Select All). Then the visible columns, by header, with check boxes. Yes/no columns, columns that hold the picture itself (a column that holds a picture path is listed) and, on a Hijri calendar, date columns are not listed. Only the first detail table is listed. Tick the columns to search.
OkApplies the ticked columns to the scope that is shown when you click Ok, and runs the search again.
CancelCloses the window.

Choose the scope first and tick the columns after it. If you switch between Master and Detail inside the window, the ticks you made in the list you left are lost.

Search Results window​

Opens from View All Results, or by itself (see the option above). It lists every result.

The Search Results window with a grid of found rows

The window shows the visible columns of the table. For a search in the details, the master row of the selected result shows in a small table above. The list can be filtered with the filter button on each column header. You cannot change or group it.

ActionWhat it does
Double-click a row, or press EnterCloses the window and goes to that result in the table.
CloseCloses the window and stays on the current result.

Conditional formatting​

The Conditional Formatting tab colors the cells of a column by rules. See Apply conditional formatting for the steps. In a table, every command works on the column of the cell you last clicked. If you have not clicked a cell, nothing happens.

The Conditional Formatting tab with the Formatting, Icons and Bars and Manage groups, and the Highlight Cells menu open with seven items

Formatting group​

ButtonItemsWhat it does
Highlight CellsGreater Than..., Less Than..., Between..., Equal To..., Text that Contains..., A Date Occurring... (tables only), Duplicate Values...Each item opens a small window where you give the value and choose the format. See Rule windows.
Top/BottomTop 10 Items..., Top 10 %..., Bottom 10 Items..., Bottom 10 %..., Above Average..., Below Average...The same, for the highest or lowest values.
Custom ConditionOpens the window Custom Condition, where you write your own condition.

Icons and Bars group​

Each button opens a gallery of pictures. Click a picture to apply it to the column at once, without a window.

ButtonPictures
Data BarsTwo sections, Gradient Fill and Solid Fill, with six colors each: blue, green, red, orange, light blue and purple. The bar grows with the value.
Color ScalesTwelve scales, such as green to yellow to red, and red to white to blue. The color shows where the value falls between the lowest and the highest.
Icon SetsSections Directional, Shapes, Indicators, Ratings and Positive/Negative: arrows, traffic lights, signs, flags, stars, quarters, boxes and triangles.

Manage group​

ButtonWhat it does
ClearDrop-down: Clear Rules from All Columns and Clear Rules from This Column. Deletes the rules at once, without a question. When a pivot table is selected the tab works on the selected cell, and the button shows three more items: Clear Rules from All Measures (all rules), Clear Rules from This Intersection (the rules of the row and column fields of the selected cell) and Clear Rules from This Measure (the rules of its value field).
Manage RulesOpens the rules manager. See Rules manager.

Rule windows​

These windows belong to the grid component of the program, which translates them. Each has a title, a line of description, a box for the value, the word that links it to the format, and a list of formats.

Window (title)Description lineValue you give
Greater ThanFormat cells that are GREATER THAN:One value.
Less ThanFormat cells that are LESS THAN:One value.
BetweenFormat cells that are BETWEEN:Two values, joined by "and".
EqualFormat cells that are EQUAL TO:One value.
Text That ContainsFormat cells that contain the text:The text.
A Date OccurringFormat cells that contain a date occurring:A period from a list: Today, Yesterday, Tomorrow, In the last 7 days, Last week, This Week, Next Week, Last Month, This Month, Next Month.
Duplicate ValuesFormat cells that contain:Duplicate or Unique.
Top 10 Items, Bottom 10 ItemsFormat cells that rank in the TOP: or BOTTOM:A number of items (10 in the title).
Top 10%, Bottom 10%Format cells that rank in the TOP: or BOTTOM:A percentage.
Above Average, Below AverageFormat cells that are ABOVE AVERAGE: or BELOW AVERAGE:None.
Custom ConditionFormat cells that match the following condition:An expression in a text box. If it is wrong, the message "The specified expression is invalid." or "The specified expression contains invalid symbols (character …)." appears with the title Error.

The list of formats offers ready formats such as Light Red Fill with Dark Red Text, Yellow Fill with Dark Yellow Text, Green Fill with Dark Green Text, Light Red Fill, Light Green Fill, Light Blue Fill, Red Text, Green Text, Blue Text, Bold Red Text, Bold Green Text, Bold Blue Text, Bold Text, Italic Text, Strikethrough Text, and Custom Format... where you set the font, the color and the background yourself. A check box, Apply format to the entire row, applies the format to the whole row when the window offers it. The window has Ok and Cancel.

Rules manager​

The window Conditional Formatting Rules Manager lists the rules of the table. Use Show formatting rules for: to show the rules of the Current Column or of All columns. The toolbar has New Rule..., Edit Rule..., Delete Rule and the arrows Up and Down. The list has the columns Rule, Format, Column and Is Enabled.

New Rule... opens New Formatting Rule with Select a Rule Type:. The types are: format all cells based on their values (2-color scale, 3-color scale, data bar, icon set), format only cells that contain, format only top or bottom ranked values, format only values that are above or below average, format only unique or duplicate values, and use a formula to determine which cells to format. Below the list, Edit the Rule Description: shows the fields of the chosen type, a Preview: and a Format... button. Edit Rule... opens Edit Formatting Rule in the same form.

Excel export carries the rules when Export conditional formatting is on in the export window. See Report viewer File tab.

Right-click menus of the table​

The column headers have no right-click menu in the viewer. You sort and group from the header, or from the cell menu.

Cell menu​

Right-click a cell. The menu is built in this order, with a line between the parts. It is disabled while a long operation runs.

The right-click menu of a cell with the commands of the report, sorting, best fit, freeze and smart selection

  1. The automatic commands of the report, one block for each card or document that the row refers to, such as Display Account Card.... The command that a double-click runs is bold: the first command at first, then the last one you used. If it doesn't suit the row, the first visible command runs. Some reports have their own double-click action.
  2. The commands that the specific report adds. Some appear only when the row fits a condition that the report defines.
  3. Sort: Sort Ascending, Sort Descending, Clear Sorting. Shown when the table allows sorting. The first two are check items for the column of the cell, and are disabled when that column cannot be sorted. Clear Sorting removes the sort of all columns, and is enabled when the column of the cell is sorted.
  4. Group by This Column. Shown when the table and the column allow grouping. Disabled when the column is already grouped.
  5. Best Fit (this column) and Best Fit (All Columns) (Ctrl+B). Disabled while Auto Width is on.
  6. Freeze Columns (None, Freeze to Left, Freeze to Right) and Freeze Rows (None, Freeze to Top, Freeze to Bottom). Freeze Rows is missing in tables that have details.
  7. Smart Selection: Select All, Select Columns, Invert Selection, then the items of Smart selection. Equal and Not Equal appear for every column. Same Sign, Opposite Sign, Greater Than, Greater Than or Equal, Less Than and Less Than or Equal appear only for numeric columns. Same Day, Same Month and Same Year appear only for date columns.
  8. For picture columns: Show Image Path (check item, for columns that hold a file path) and Download (for columns that hold the picture itself).

Group row menu​

Right-click a group row.

The right-click menu of a group row

CommandWhat it does
Grouped ColumnsCheck item. Shows or hides the grouped columns in the table.
Merge Groups, UnMerge GroupsShown when you grouped by more than one column. The same as the buttons of the Grouping group.
Group IntervalShown when you grouped by a date column. Drop-down: Date, Year, Month, Range.
Expand All, Collapse AllExpands or collapses all groups.
UngroupRemoves all grouping.

Right-click a footer table (a related table attached under the panel). Its menu has one command, Fit: it sets the height of the panel to its rows.

Total menu​

Right-click the total of a column at the bottom (or top) of the table. The menu lists, for that column, the summaries that Manage Summaries offers for it, as check items: tick one to show it, clear it to hide it. The last item, Customize..., opens Manage Summaries. Columns that do not allow summaries show no items. Tree tables don't have this menu: use Manage Summaries.

The Field List panel for tables​

The Field List panel (see Report viewer) shows, for a table, a tree with check boxes. A checked field is a visible column. Click a check box to show or hide the column. Ctrl+click a column repeated by period to change it in every period (when Compact View is off).

ItemWhat it shows
Master Fields (with the name of the master table in brackets)Columns of the master table, for a detail table.
Report FieldsThe columns of the table, in the order of the table, by band.
Name of a related tableFields of tables that the table points to, such as the material or the customer. If the table points to the same table by two keys, the key name appears in brackets.
Defer Layout UpdateCheck box. When on, changes wait until you click Update.
UpdateApplies the changes. Enabled only when Defer Layout Update is on.
Compact ViewCheck box. Shown when the report repeats columns by period. Merges the repeated columns into one entry.
Search boxAt the top of the panel. Filters the tree by name.

Fields of related tables are not in the table at first. When you check one, the program reads it from the database, which may take time. The table shows a loading panel and is disabled meanwhile. If the data is too large, the message "Sorry. The data size is too large and there is not enough memory to load it." appears. When you check a picture field and some pictures were not processed yet, the program asks "Images must be processed and optimized in order to display and print them in the report preview. You have … images that need processing. Would you like to start processing now?" and the buttons are Yes and No. Yes opens the pictures wizard and refreshes the report afterwards.

Some columns are fixed by the report and cannot be hidden: their check box is disabled. A check box on a heading of a related table is disabled unless Defer Layout Update is on.

The Filter List panel for tables​

The Filter List panel shows a block of filter controls for each column that you added to the list. Its toolbar has: Edit (opens the window that chooses the columns and the control of each), a drop-down that sets the order of the values (No Sort or Popular First), expand all, collapse all, and clear (removes the filter of the table). Empty, the panel shows a short introduction that ends with "To begin click Edit button.". See Report filters.

Add Column window​

Opens from Add Column. It adds an empty column that you fill by hand, for notes or for a yes/no mark.

The Add Column window with the Title and Format fields and the note

FieldDescriptionRequiredValues and rules
TitleThe header of the new column.YesAt first Notes. Ok stays disabled while the box is empty.
FormatThe kind of values the column holds.YesText (the default) or Boolean. A Boolean column shows check boxes.

A note in the window says "Input data is not saved when saving the workspace."

ButtonWhat it does
OkAdds the column at the end of the table, visible and editable, and adds it to the Field List.
CancelCloses the window without adding.

You can type in the cells of the new column. The values are not kept in the workspace. To remove the column, use Delete Column.

Manage Summaries window​

Opens from Manage Summaries (Ctrl+Shift+S), or from Customize... in the total menu. It chooses which summaries each column shows.

The Manage Summaries window with the Totals tab: the list of columns, the summaries of the selected column and the arrows

The window has two tabs. Totals sets the totals at the end of the table. Groups sets the values shown in the group rows. Both tabs work the same way.

ItemWhat it does
Clear AllIn the toolbar of the tab. Unticks every summary of the tab. This includes the "(Custom)" ones, which you can't tick again: click Cancel if you cleared them by mistake.
Show Total SummaryCheck box in the toolbar of the Totals tab. Shows or hides the totals area.
List of columnsOne row for each column that allows summaries, in the order of the columns on screen. A column with at least one summary is in bold. A column inside a band shows the band title before its name. A repeated column shows "(Repeated)" after it.
List of summariesIn the middle. For the selected column, a check box for each summary type. A box is disabled when the type does not suit the column.
Up and down arrowsBeside the list of summaries. Move the selected summary type up or down: this sets the order in which the summaries show.

The summary types are: Sum, Sum Positive Values, Sum Negative Values, Maximum, Minimum, Average, Count and First. Count and First are available for every column. The other types are available for numeric columns only. A summary that the report itself defines with its own formula shows "(Custom)" after its name and is disabled: you cannot change it here.

ButtonWhat it does
OkApplies the choices of both tabs. If Show Total Summary is off and the number of ticked totals changed (and is not zero), the program switches Show Total Summary on. The report is marked as changed.
CancelCloses the window. Nothing changes.

The options Position and Style of the totals, the Prefix and Suffix of each summary and Separator between group summary items are in Report options.

Sort by Summary window​

Opens from Sort by Summary. It orders the groups by one of their summary values, for example the groups of a customer by the highest total first.

The Sort by Summary window with the grouping field, the summary field and the sort order

FieldDescriptionRequiredValues and rules
Grouping FieldThe grouped column whose groups you want to order.YesThe list holds the columns you grouped by.
Summary FieldThe column whose group summary decides the order.No(None) and the visible columns that have a group summary. (None) removes the rule of the grouping field. If the column has more than one group summary, the first one is used. With no rule yet, the window starts with the first grouped column, (None) and Ascending.
Sort OrderThe direction.YesAscending or Descending.

Under the fields a box lists the rules in force, each as "grouping column According To summary column order". The box appears only when there is at least one rule. When the window opens, the fields show the last rule.

ButtonWhat it does
Clear AllAt the far side. Removes all the rules at once, even if you then click Cancel. Enabled when there is a rule.
OkReplaces the rule of the chosen grouping field with the one you set.
CancelCloses the window without adding the rule.

Manage Calculated Fields window​

Opens from Manage Calculated Fields. It lists the columns of the table that have an expression, and lets you add, change and delete them. A calculated field is a column whose value comes from a formula on the other columns of the same row.

The Manage Calculated Fields window with the list of fields and the expression of the selected one

ItemWhat it does
NewOpens Add Calculated Field.
EditOpens Edit Calculated Field for the selected field. Double-clicking a field does the same. Disabled while no field is selected.
DeleteDeletes the selected field after the question "Are you sure you want to delete the selected item?" (Yes, No). If another calculated field uses it, the program does not delete it and shows "The calculated field can't be deleted because it is used by the following calculated fields:" followed by the title and expression of each, with one Ok button.
List of fieldsThe titles of the fields.
Box at the bottomShows the expression of the selected field. You cannot type in it.
OkApplies the list to the table: new fields become columns at the end of the table, changed fields change their title, format and formula, and deleted fields disappear. The Field List is rebuilt and the report is marked as changed.
CancelCloses the window. The table keeps its columns.

Add Calculated Field and Edit Calculated Field​

The window has the title Add Calculated Field when you add and Edit Calculated Field when you change.

The Add Calculated Field window with Name, Title, Format and Expression

FieldDescriptionRequiredValues and rules
NameThe internal name of the field. You write it between square brackets in other expressions.YesEnglish (ASCII) characters only, no spaces, for example NetAmount. Use letters, digits and the underscore. Must not repeat the name of another field or column. You cannot change it after the field is created.
TitleThe header of the column.YesAny text.
FormatHow the result is shown.YesText (the default), Date, Boolean, Integer, Percent, Balance, Price, Quantity. Choose the format that suits the result: a number in a Text field is not formatted as an amount.
Data SourceWhere the formula takes its values from. Pivot tables only.YesData Values, Summarized Values and Custom(Use Aggregate Functions). See Calculated fields in a pivot table.
ExpressionThe formula.YesClick the button at the end of the box to open the Expression Editor. You cannot type in the box.
ButtonWhat it does
OkChecks the fields in this order: Name, the name characters, Title, Expression, then the repeated name. It stops at the first message and the window stays open. When every check passes, it closes.
CancelCloses the window.

Expression Editor​

The window Expression Editor writes the formula.

The Expression Editor with the formula box, the tree of groups, the list of the Aggregate functions and the description of the selected function

It has a box for the formula at the top. Below it is a tree of groups at the side (the operators and the functions with their groups: Date/Time, Logical, Math, String and Aggregate, and the columns of the table), a list of the items of the selected group, and a box that describes the selected item. You see one list at a time: click a group to see its items. A search box above the list narrows it. Double-click an item to insert it. A column appears in the formula between square brackets, as in [DebitBalance] - [CreditBalance] in the Trial Balance; the names depend on the report. Insert columns with a double-click and do not type their names: the editor marks a name it does not know as "Invalid column" and keeps Ok disabled. The descriptions of the functions are in English also in the Arabic window.

The list of functions has the ordinary functions of the editor. The program adds a group Aggregate with five functions that you write with one column:

FunctionResult
SumOf([Column])The sum of the column over the rows of the table.
AvgOf([Column])The average.
CountOf([Column])The number of values.
MaxOf([Column])The highest value.
MinOf([Column])The lowest value.

The function accepts a single column name, not a formula. It works on numeric columns with no empty cells. Otherwise the field shows 0 in every row, CountOf too. The functions use the rows left after filtering. If a formula cannot be calculated for a row, the cell shows 0 and no message appears.

ButtonWhat it does
OkTakes the formula back to the box Expression.
CancelCloses the editor without changing the formula.

Messages​

MessageWhen it appears
"'…' is required field."In Add or Edit Calculated Field, when Name, Title or Expression is empty. The name of the field is inserted.
"Field name must be in English and doesn't contain spaces."In Add Calculated Field, when the name has a space or a character that is not an English (ASCII) character.
"Name is already used."In Add Calculated Field, when another calculated field or a column has the same name.
"Are you sure you want to delete the selected item?"In Manage Calculated Fields, after Delete.
"The calculated field can't be deleted because it is used by the following calculated fields:"In Manage Calculated Fields, when you delete a field that another field uses.
"You do not have permission to copy data."When you copy without the Export Reports permission.
"No results found"In the search bar, when nothing matches.
"Sorry. The data size is too large and there is not enough memory to load it."When you check a field of a related table in the Field List and the data does not fit in memory.

This page applies to alameen ERP 10, version 10.1.79.764.