Discussões
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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!