RE: Units of Measures (UOM) in SuiteLet

Hello All,

I am creating a Suitelet in which the users can select multiple Items, Quantities, UOM etc. When user Submits the form will automatically populate the lines on Transactions (SO,PO).
All works fine apart of the UOM.

Populating the SL field for the UOM shows only the base units.  But on the Transaction Line level the UOM field has all units of measures.

Transaction UOM:

RE: Units of Measures (UOM) in SuiteLet

Suitelet UOM:

RE: Units of Measures (UOM) in SuiteLet

 

Suitelet Field Code:


var subFldUOM = sublistTrans.addField({

id: 'custpage_uom_select',

type: serverWidget.FieldType.SELECT,

label: 'Units Of Mesure',

source: 'unitstype'

});

 

Note: I have thought the possibility to have this field populated via Unit Type search and using ‘Field.addSelectOption(options)’ but I believe this will have a negative impact on the Governance, considering that this will run for each individual line created on the SL.

Any idea how I can handle this?

Thank you in advance.

Al Calzone Rookie Asked on March 3, 2020 in SuiteScript.
Add Comment
2 Answers

Stumbled upon this old post.  Thank you @SouthsideSandi for the -221 option.  By chance, I tried the sublist id ‘uom’ as the source and it worked just like -221.  The SuiteScript Record Browser shows ‘uom’ as the sublist ID for Unit on the Units Type record.

Rookie Answered on October 16, 2024.

Disregard.  I still had -221 in my code.

on October 16, 2024.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.