SPlus.WebDashboard.setSource (source, sourceType, function (){
//TODO: Implementation.
}, function (errorResponse){
var error = errorResponse['error#displayValue']; //Getting the error
//TODO: Implement how to handle errors
});
This method is used to set a new source for a SharePlus Mobile Workspace in the Application Home. The change is persistent even if SharePlus is shut down and will replace all previously configured workspaces in the Application Home.
SPlus.WebDashboard.setSource (source, sourceType, function (){
//TODO: Implementation.
}, function (errorResponse){
var error = errorResponse['error#displayValue']; //Getting the error
//TODO: Implement how to handle errors
});
For a sample with this API method, refer to Changing the source of a SharePlus Mobile Workspace bridge scenario.