Discussões
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Ocultar uma Coluna de sublista via SuiteScript
Aplica-se a
Produto: NetSuite 2023.2
Cenário
Se os usuários não quiserem ver uma Coluna de sublista ou estiverem restritos para Visualizar/Editar uma coluna, ela poderá ser ocultada usando SuiteScript.
Solução
Para ocultar uma Coluna de sublista via SuiteScript, os seguintes scripts Eventos do usuário antes do carregamento podem ser usados:
SuiteScript 1.0:
nlapiGetLineItemField('item','custcol30',1).setDisplayType('hidden'); //where custcol30 is the internal id of the Custom Transaction Line field.
SuiteScript 2.0:
var objForm = scriptContext.form; // get the current form var objSublist = objForm.getSublist({id: 'item'}); // get the sublist where the column has to be hidden var objField = objSublist.getField({id:'description'}); // get the column that has to be hidden objField.updateDisplayType({displayType : serverWidget.FieldDisplayType.HIDDEN}); // set the column to hidden
Rotulado:
0
Olá, bem-vind@!
Faça login
Para ver todos os detalhes, faça o login.
Cadastre-se
Não tem uma conta? Clique aqui para começar!