Filtering Object Based Selection List

By | January 4, 2014

We can easily assign the F12 selection to the fields by associating the data type that with the fields. But what if there is need to filter the selection records dynamically?

Sage X3 has Standard action GSELECT, with the help of this action we can add a F12 selection to field and also we can filter the selection records as per the requirement.

Action GSELECT: This action used to link the field with the object, and with the help of this action we can also able to filter the selection records.

New StuffHow to Allow vertical Processing without Folder Validation

Parameter: The GSELECT action has two following parameters.

  • CODTRT: Mention the processing file name.
  • CODZON: Mention the object name which you want to assign to the field.

Kindly follow the below steps to filter the F12 selection records:

  1. Add the Selection field action on field and mention the action name as “GSELECT”.
  2. Enter the values for the parameters CODTRT & CODZON.

> CODTRT: Processing file name
> CODZON: Object name

Kindly refer to the below screen shot.


3. GSELECT action has a SET_TABLE action which gets called when user press F12 key and stores the object name in COUZON variable which is passed through action parameters.

4.  Here in this action we can catch the objects that are called and we can write our logic to filter out the records. We just need to filter the table linked to the object as per the requirement.


Kindly refer to the below snippet of code.

Hope this helps!

About Us
Greytrix – a globally recognized Premier Sage Gold Development Partner is a one-stop solution provider for Sage ERP and Sage CRM needs. Being recognized and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development and implementation expertise.

Greytrix caters to a wide range of Sage Enterprise Management (Sage X3) offerings – a Sage Business Cloud Solution. Our unique GUMU™ integrations include Sage Enterprise Management (Sage X3) for Sage and Magento eCommerce along with Implementation and Technical Support worldwide for Sage Enterprise Management (Sage X3). Currently we are Sage Enterprise Management Implementation Partner in East Africa, Middles East, Australia, Asia. We also offer best-in-class Sage X3 customization and development services, integrated applications such as POS | WMS | Payment Gateway | Shipping System | Business Intelligence | eCommerce and have developed add-ons such as Catch – Weight  and Letter of Credit for Sage Enterprise Management to Sage business partners, end users and Sage PSG worldwide.

Greytrix is a recognized Sage Rockstar ISV Partner for GUMU™ Sage Enterprise Management – Sage CRM integration also listed on Sage Marketplace; GUMU™ integration for Sage Enterprise Management – Salesforce is a 5-star app listed on Salesforce AppExchange.

For more information on Sage X3 Integration and Services, please contact us at We will be glad to assist you.