Assistant.clientScriptFileId

Property Description

The File Cabinet ID of client script file to be used in this assistant.

Type

number

Supported Script Types

SuiteScript 2.x Suitelet Script Type

Module

N/ui/serverWidget Module

Since

2015.2

Errors

Error Code

Thrown If

PROPERTY_VALUE_CONFLICT

You attempted to set this value when the Assistant.clientScriptModulePath property value has already been specified. For more information, see Assistant.clientScriptModulePath.

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/ui/serverWidget Module Script Samples.

          //Add additional code 
...
var assistant = serverWidget.createAssistant({
    title : 'Simple Assistant'
});
assistant.clientScriptFileId = 32;
...
//Add additional code 

        

Related Topics

General Notices