Nama ERP DocsNama ERP Docs
Home
Namasoft.com
Data Model
GitHub
Home
Namasoft.com
Data Model
GitHub
  • Home

    • Search
    • Guides

      • بعض المعلومات عن استعمال هذا الموقع
      • Utility Links
      • System Minimum Requirements
      • Nama ERP Installation Guide
      • Jasper Reports Complete Guide for Nama ERP
      • Keyboard Shortcuts
      • Layout Names:
      • Entity Flows
      • دليل استخدام أداة إنشاء التقارير ونماذج الطباعة
      • الفواتير والضرائب والخصومات
      • Supply Chain
      • Tempo Language Manual
      • Sending Invoices and Documents to Customers
      • SMS and WhatsApp Configuration in Nama ERP
      • Field Filter with Criteria
      • تعديل الترجمات في نظام نما
      • Criteria Based Validation
      • صيغ الحضور والانصراف
      • الربط مع ماكينات الحضور والانصراف
      • Nama ERP Notification System
      • Email By Parameterized Reports In Task Scheduler
      • Nama Properties
      • تطبيق الهواتف المحمولة
      • Mobile QR Integrator Guide
      • أعدادات الحقول و الشاشات - Generic Reference Overrider User Guide
      • ReportWizard User Documentation (أداة إنشاء تقرير)
      • ORACLE JDBC Integration Connection in context.xml for integration purposes
      • Nama ERP REST API
      • Criteria from Text Parser
      • ضوابط إنشاء طلبات تطوير من قبل أقسام الدعم الفني والتجهيز بالشركة
      • e-commerce integration (Magento)
      • .
    • Examples
    • Reprocessing Transactions
    • Frequently Asked Questions
    • AI Generated Entity Flows Documentation

      • Core
      • Accounting Module
      • AI Module
      • Contracting Module
      • CRM Module
      • EGTax Reader Module
      • Freight Management System Module
      • Hospital Management System Module
      • HR Module
      • e-commerce Integration Module
      • Manufacturing Module
      • POS Module
      • Real Estate Module
      • Service Center Module
      • Supply Chain Module
      • .
    • Release Notes

      • 2016
      • 2017
      • 2018
      • 2019
      • 2020
      • 2021
      • 2022
      • 2025
      • .
    • Video Tutorials

      • Supply Chain Videos
      • Report Wizard Videos
      • Human Resources Videos
      • .

Field Filter with Criteria

You can use the Field Filter with Criteria screen to apply custom filters when searching within specific fields on any Nama ERP screen.

For example:

  • In a purchase invoice, you may want to display only items whose default supplier matches the invoice's supplier.
  • In a sales invoice, you may want to show only non-service items when selecting an item.

How to Define a Field Filter with Criteria

  1. Create a Criteria Record

    • In the Criteria Definition file, define the condition you want to apply (e.g., non-service items).
  2. Create a Field Filter Record

    • Open the Field Filter with Criteria screen and create a new record.
    • Specify the Document Type (e.g., Sales Invoice).
    • Define the Field to apply the filter on (e.g., details.item.item).
    • Assign the previously defined Criteria to this field.
  3. Assign the Field Filter

    • Go to one of the following configuration locations and assign the filter in the Field Filter field:
      • Document Type
      • Document Book
      • Master Group
      • Menu Definition Update
    • Alternatively, select the Automatic option to apply it automatically.
  4. Save your changes.

If your filter requires dynamic logic such as loops or conditions, use Tempo Language instead of a criteria definition.

Field Filter Screenshot


Example: Filter Non-Service Items in Sales Invoice

To show only non-service items when selecting an item in the Sales Invoice screen:

  1. In the Criteria Definition file, define a condition for non-service items.
  2. Create a new record in Field Filter with Criteria:
    • Document Type: Sales Invoice
    • Field: details.item.itemCode
    • Criteria: Your non-service items criteria
  3. Save the filter with a name like NonService.
  4. In your Sales Invoice document term, set Field Filter = NonService.
  5. Create a new Sales Invoice using that term.
  6. When selecting items, only non-service items will be shown.

Tips

  • You must assign the filter in Field Filter field of a document type, book, master group, or menu update.
  • To test your criteria:
    • Enable Use In List View in the criteria record.
    • Open the item list and enter your filter in the Extra Filter field.
    • The list should show only matching items.
  • You can retrieve the Textual Criteria from the criteria record to see or manually adjust the filter conditions.
  • For advanced logic, use Tempo Language.

Example: Dynamic Filter Using Tempo

Suppose a Sales Invoice is based on a Sales Order containing multiple customers in the lines. You want to list only the customers with remaining quantities (unsatisfiedQty2) when selecting a customer in the sales invoice.

Use this Tempo code in the Dynamic Filter field of the field filter:

{loop(fromDoc.$toReal.details)}
  {if(fromDoc.$toReal.details.unsatisfiedQty2)}
    code,Equal,{fromDoc.$toReal.details.customer.code},OR;
  {endif}
{endloop}
Edit On github
Last Updated:: 5/31/25, 10:35 PM
Prev
SMS and WhatsApp Configuration in Nama ERP
Next
تعديل الترجمات في نظام نما