hi, i'm new here in netsuite. i am creating a cust...
# suitescript
p
hi, i'm new here in netsuite. i am creating a custom suitelet that creates a page to be used by employees on the production floor. i have created a serverWidget.createForm and added a select field where i append a .addSelectOption for each result in a search.create. is there a way i can use another fieldtype to create a search field instead?
I'm using suitescript 2.0 (dont know if anyone is still using 1.0)
n
Well, I have done the same thing in the past. Not sure if there is a better way to do this. But my use case was involved only certain options to be added from a broad set of options. On the other hand, you can create a customlist, if it suits your use case and bind that.
p
thanks for the reply, the list to choose from will be approximately 2300 lines.
n
Is it a fixed list? Like a static thing or something that will change over time?
p
I am creating a search in my suitlet where for each result I run a
field.addSelectOption()
n
It's okay to do, but if your search results are static, and by that I mean they won't change over time, you can have a list created and you know source that, but if not, what you are doing is good. Shouldn't be a problem.
p
it will change everytime they complete and create new work orders
n
I think what you are doing is good in that case. Shame that they don't have a native way to use a search result in the select neither can we apply a filter to a record list to show just the right values.
p
hmm, yea shame