Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
nlapiSetLineItemMandatory - Has anyone used successfully?
I am trying to set a column mandatory on the expense sublist of an expense report. According to the API list, nlapiSetLineItemMandatory has been available since 2009.2. Has anyone successfully used this? I have worked around this by adding line validation, but of course the label does not have the orange asterisk.
/** * Make a sublist field mandatory. *
@restriction Only supported on sublists of type inlineeditor or editor (current field only) * *
@param {string} type sublist name *
@param {string} fldnam sublist field name *
@param {boolean} mandatory if true then field is made mandatory *
@return {void} * *
@since 2009.2 */
function nlapiSetLineItemMandatory(type,fldnam,mandatory) { ; }
In the Console, nlapiSetLineItemMandatory returns: function nlapiSetLineItemMandatory(type,fldnam,required,lin enum) which is interesting.