Using a query to extract data
Microsoft Dynamics NAV 2013 introduced a new object type called query. We can use a query to retrieve data from one or multiple tables. A query can be configured with specific filters, joins, and totaling methods. The following recipe will help to build a simple query to retrieve data from one table.
How to do it...
Create a new query with Object Designer.
In Query Designer, leave the default value of the column
Type
as it is; that is,DataItem
.Select
Customer
asData Source
from the table list.In the next row, select
Column
asType
andNo.
asData Source
. Keep the methodNone
as it is.Add another two columns,
Name
andBalance
, with theMethod Type
valueNone
.With the cursor hovering over the
Balance
row, click on Properties in the View menu or press Shift + F4.In
ColumnFilter
, select the assist edit button to apply the following filter:Column
Type
Value
Balance
Filter
<>0
You should see the following screenshot:
Select the blank row and click...