Quantcast
Channel: Sage X3 – Tips, Tricks and Components
Viewing all articles
Browse latest Browse all 1591

Filtering Object Based Selection List

$
0
0

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.

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.

Fil-1

      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.

Fil-2

Kindly refer to the below snippet of code.

Hope this helps!


Viewing all articles
Browse latest Browse all 1591

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>