[Custom field source data from saved search]
Aim: Create a field using suitescript (suitelet) and source the values from a saved search
I created a saved search that returns me a list of items based on some criteria. I want my field to use to this saved search as source.
I tried the property addSelectOption but my field doesnt have the search behaviour like a standard item field on transaction form (Search by using %).
Can anyone help me?
m
mattdahse
02/24/2020, 1:36 PM
That behavior is driven by how many options you have added to the field, and the personal preference setting “Maximum Entries in Dropdowns”
l
Luiz Morais
02/24/2020, 1:38 PM
Even your results exceed the maximum this behavior isn't available for drop down lists created using addSelectOption
m
mattdahse
02/24/2020, 6:15 PM
Ah, sorry, you’re right. The system would have no way of offering a search function in that case. You could add nonsense entries if you want.
mattdahse
02/24/2020, 6:15 PM
I really wish we could add filtering options to the native select source like we can for custom fields.