The sendToView() method redirects the user and current search to the specified view, performing redirection across views while retaining the current search object.
results = sendToView( viewName , additionalArgs , dispatchBeforeRedirect , openInPopup , options , appName )
|
viewName |
String |
Dictionary of URI name-value pair GET request params. |
|
additionalArgs |
Object |
(Optional) Not implemented. |
|
dispatchBeforeRedirect |
Bool |
Enable dispatching of search job before redirection: True = Enable. False = Disable. |
|
openInPopup |
Bool |
Enable opening of destination window as a popup: True = Enable. False = Disable. |
|
options |
Object |
(Optional) window features representation for destination window object: windowFeatures {String} standard XHR window options. Default: "resizable=yes,status=no,scrollbars=yes,toolbar=no" autosize {Bool} Enables destination window autosizing: True = Enable. False = Disable (default) |
|
appName |
String |
(Optional) Name of app to redirect to. Default = current app. |
|
Boolean |
Success |
var context = this.getContext();var search = context.get("search");
var options = {}
var additionalArgs = {}
search.sendToView('charting', additionalArgs, false, true, options);