Class: nlobjRequest

nlobjRequest

new nlobjRequest() → {nlobjRequest}

Return a new instance of nlobjRequest used for scripting web requests in Suitelets
Source:
Returns:
Type
nlobjRequest

Methods

getAllFiles() → {Object}

return an Object containing field names to file objects for all uploaded files.
Since:
  • 2009.1
Source:
Returns:
Type
Object

getAllHeaders() → {Object}

return an Object containing all the request headers and their values.
Since:
  • 2008.2
Source:
Returns:
Type
Object

getAllParameters() → {Object}

return an Object containing all the request parameters and their values.
Since:
  • 2008.2
Source:
Returns:
Type
Object

getBody() → {string}

return the body of the POST request
Since:
  • 2008.1
Source:
Returns:
Type
string

getFile(name) → {nlobjFile}

return the value of an uploaded file.
Parameters:
Name Type Description
name string file field name
Since:
  • 2009.1
Source:
Returns:
Type
nlobjFile

getHeader(name) → {string}

return the value of a request header.
Parameters:
Name Type Description
name string
Since:
  • 2008.2
Source:
Returns:
Type
string

getLineItemCount(group) → {int}

return the number of lines in a sublist.
Parameters:
Name Type Description
group string sublist name
Since:
  • 2008.2
Source:
Returns:
Type
int

getLineItemValue(group, name, line) → {string}

return the value of a sublist value.
Parameters:
Name Type Description
group string sublist name
name string sublist field name
line int sublist line number
Since:
  • 2008.2
Source:
Returns:
Type
string

getMethod() → {string}

return the METHOD of the request
Since:
  • 2008.1
Source:
Returns:
Type
string

getParameter(name) → {string}

return the value of a request parameter.
Parameters:
Name Type Description
name string parameter name
Since:
  • 2008.2
Source:
Returns:
Type
string

getParameterValues(name) → {string[]}

return the values of a request parameter as an Array.
Parameters:
Name Type Description
name string parameter name
Since:
  • 2008.2
Source:
Returns:
Type
string[]

getURL() → {string}

return the URL of the request
Since:
  • 2008.1
Source:
Returns:
Type
string