Building and modifying User Interfaces in SuiteScript Flashcards

1
Q

What script type can the N/ui/serverWidget module not be used in?

A

The N/ui/serverWidget module can not be used in Client Scripts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which script type can the N/ui/dialog module ONLY be used in?

A

The N/ui/dialog module can only be used in Client Scripts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the differences between the nDialog.alert, nDialog.confirm and nDialog.create functions?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What script type can the N/ui/message module ONLY be used in?

A

N/ui/message can only be used in Client Scripts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The nMessage.create(options) function creates an nMessage.message object. What are the 3 options?

A

title: The title of the message
message: The message
type: the type of message (Confirmation, Warning, etc.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What do the nMessage.message.hide() & nMessage.message.show() functions do?

A

nMessage.message.hide() hides the message
nMessage.message.show() shows the message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

nMessage.Type had 4 values, what are they?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Using the N/ui/serverwidget module. The DATETIME field type is not supported with what methods, & what must you specify?

A

The DATETIME field type is not supported with ‘addField’ methods and you must specify DATETIMETZ

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The FILE field type is only available for which script type, and where will it appear?

A

Suitelets, and it will appear on the main tab of the suitelet page.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

FILE fields cannot be added to what four locations?

A

Tabs, subtabs, sublists, or field groups.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

FILE fields are also not supported to be added to a sublist by which function?

A

They cannot be added with the List.addColumn(options) function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The INLINEHTML field type should be considered as what type of field, and why?

A

They should be considered “Write only” and to add a field onto a form.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The IMAGE field type is available only for fields that appear where?

A

Lists, static-list sublists or forms.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The RADIO field type is not supported on sublists, and is therefore not supported by which function?

A

Sublist.addField(options)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which field types are not supported by the Sublist.addField(options) function?

A
  • DATETIME
  • FILE
  • HELP
  • INLINEHTML
  • LABEL
  • LONGTEXT
  • MULTISELECT
  • RADIO
  • RICHTEXT
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which 4 field types, if set to hidden, will return the object as text?

A
  • CHECKBOX
  • RADIO
  • SELECT
  • TEXTAREA
17
Q

Record level client scripts can run on which forms, and their application is limited to which forms and record types?

A

Record level scripts run on multiple forms and can apply to all forms and multiple record types.

18
Q

True or false?

Record level client scripts do not work with other client scripts already attached to the record or form.

A

Fales.

Record level client scripts work with any other client scripts already attached to the record or form.

19
Q

True or false?

Form level scripts are deployed on the per form basis and apply to specific fields and forms only.

A

True

20
Q

True or false?

Form level client scripts DO NOT require the script to be attached to the form it is running on.

A

False.

They do require the script to be attached to the form it is running on.

21
Q

True or false?

Form level scripts execute after record level scripts

A

False.

Form level scripts execute BEFORE record level scripts