Many a times we come across a scenario where we need to hide some of the values from the Dropdown list to make it easier to read or reduce any chances of confusions if any. This blog will prove a great help if you looking for the same.
Related Post: Integrate a specific local menu while patching
For performing the said activity, the function ‘Discombo’ will come in handy. To know more about the same, read ahead for the description and its use:
Function: Discombo
Description: Deactivates the selections in a combo box.
Syntax: Discombo Selection list From Field id
Parameters:
1) Selection list: List of the selections to be deactivated, separated by comma(,)
2) Field id: Field name
Follow the below steps to deactivate the selection in Local Menu:
A) Add the function before the entry field action of that particular field.
B) Based on the condition, incorporate your logic before the entry action to deactivate the selection. Refer to the below snippet of code
Also Read:
1) Setting up Procurement system using Tolerance in Sage X3
2) How to add sales Invoice elements in Sage X3?
3) How to filter Local Menu?
4) Filtering Object Based Selection List
5) Filtering the Selection List in Sage X3