redirect.toSearchResult(options)
Method Description |
Redirects a user to a search results page. For example, the results from an on demand search created with the N/search Module, or a loaded search that you modified but did not save. |
Returns |
void |
Supported Script Types |
User event scripts -afterSubmit entry point For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Since |
2015.2 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
required |
The search result to be redirected to. |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/redirect Module Script Sample.
//Add additional code
...
myNewSearch = search.create({
type: search.Type.CUSTOMER
});
redirect.toSearchResult({
search:myNewSearch
});
...
//Add additional code