Noticed something interesting in the new 2022.1 re...
# suitescript
d
Noticed something interesting in the new 2022.1 release, related to scripting. I have a 1.0 pageInit script that sets the "Units Type" field. This SHOULD fire a field change that also sets primary stock unit, primary purchase unit, primary sale unit, however it no longer does. Oddly, it only sets Primary Stock Unit to "Eaches". The other two fields won't even let me select an option. I moved this portion of my script to 2.0 and it works fine. So apparently NetSuite has done something in 2022.1 that breaks something in PageInit scripts. Hopefully it is only affecting this one script. If I do this on a fieldChange event in 1.0 it works fine. It is a simple nlapiSetFieldValue('unitstype', 4). Trying to force a fireFieldChange also did not work. nlapiSetFieldValue('unitstype,4,true). Just thought I'd share my notes with you folks.