Is it possible to set a custom list value based on...
# suitescript
c
Is it possible to set a custom list value based on script ID? Or — how does one know the ID to use?
Copy code
<customvalue scriptid="budget_source_changeorder">
    <value>Change Order</value>
</customvalue>
s
I think the numeric values are only determined upon deployment in a target account. However, we must use the numeric ids in code. This is a glaring shortcoming of SDF as a development tool IMHO. If someone knows better please enlighten us!
TL/DR; use a search
s
I disagree pretty strongly with that approach. NetSuite is generally slower than I'd like even in the best of cases. This only adds to the performance pain.
e
I'd cache the results
but yes, I generally agree there
s
that's a slight improvement, but if these never change, a permanent cache would be sufficient
what i've done in the past is to generate code static data like this so it's an up front cost, not recurring