Modules

filter

 

Objects/Functions

module (N/ui/serverWidget)

SuiteScript 2.0

serverWidget.Tab

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=serverWidget.Tab for more information.

N/ui/serverWidget Module
serverWidget.Tab
Object Description: A tab or subtab on a serverWidget.Form object. You can add a new tab or subtab to a form using one of the following methods: Form.addSubtab(options) Form.addTab(options) Form.insertSubtab(options) Form.insertTab(options) The internal ID must be in lowercase, contain no spaces, and include the prefix custpage if you are adding the field to an existing page. In order for your tab to appear on your form, there must be at least one object assigned to the tab. Otherwise, the tab will not appear. If you have less than two tabs on your form, the tab will not appear. Instead the fields assigned to the tab will appear at the bottom of the form. For a complete list of this object’s properties, see Tab Object Members.
Supported Script Types: SuiteScript 2.0 Suitelet Script Type and SuiteScript 2.0 User Event Script Type (beforeLoad(scriptContext))
Module: N/ui/serverWidget Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=serverWidget.Tab

Example:

// Code Example 1
//Add additional code
//...
var form = serverWidget.createForm({
title : 'Simple Form'
});
var tab = form.addTab({
id : 'tabid1',
label : 'Tab 1'
});

var tab = form.addTab({
id : 'tabid2',
label : 'Tab 2'
});

form.addField({
id : 'custpage_tabid1',
type: ui.FieldType.TEXT,
label: 'Tab 1 Field'
});

form.addField({
id : 'custpage_tabid2',
type: ui.FieldType.TEXT,
label: 'Tab 2 Field'
});...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4325849420.html