Building and modifying User Interfaces in SuiteScript Flashcards
What script type can the N/ui/serverWidget module not be used in?
The N/ui/serverWidget module can not be used in Client Scripts
Which script type can the N/ui/dialog module ONLY be used in?
The N/ui/dialog module can only be used in Client Scripts
What are the differences between the nDialog.alert, nDialog.confirm and nDialog.create functions?
nDialog.alert creates an alert dialog box with an “OK” button
nDialog.confirm creates a confirm dialog box with “OK” & “CANCEL” buttons
nDialog.create creates a dialog with specified buttons
What script type can the N/ui/message module ONLY be used in?
N/ui/message can only be used in Client Scripts
The nMessage.create(options) function creates an nMessage.message object. What are the 3 options?
title: The title of the message
message: The message
type: the type of message (Confirmation, Warning, etc.)
What do the nMessage.message.hide() & nMessage.message.show() functions do?
nMessage.message.hide() hides the message
nMessage.message.show() shows the message
nMessage.Type had 4 values, what are they?
nMessage.Type.CONFIRMATION: A green background with a checkmark icon
nMessage.Type.INFORMATION: A blue background with an information icon
nMessage.Type.WARNING: A yellow background with a warning icon
nMessage.Type.ERROR: A red background with an X icon
Using the N/ui/serverwidget module. The DATETIME field type is not supported with what methods, & what must you specify?
The DATETIME field type is not supported with ‘addField’ methods and you must specify DATETIMETZ
The FILE field type is only available for which script type, and where will it appear?
Suitelets, and it will appear on the main tab of the suitelet page.
FILE fields cannot be added to what four locations?
Tabs, subtabs, sublists, or field groups.
serverWidget.fieldTypes
FILE fields are also not supported to be added to a sublist by which function?
They cannot be added with the List.addColumn(options) function.
The INLINEHTML field type should be considered as what type of field, and why?
They should be considered “Write only” and to add a field onto a form.
The IMAGE field type is available only for fields that appear where?
Lists, static-list sublists or forms.
serverWidget.FieldType
The RADIO field type is not supported on sublists, and is therefore not supported by which function?
Sublist.addField(options)
serverWidget.fieldTypes
Which field types are not supported by the Sublist.addField(options) function? (9)
- DATETIME
- FILE
- HELP
- INLINEHTML
- LABEL
- LONGTEXT
- MULTISELECT
- RADIO
- RICHTEXT