Version

WebDashboard.setSource

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.

Syntax

SPlus.WebDashboard.setSource (source, sourceType, function (){
    //TODO: Implementation.
}, function (errorResponse){
    var error = errorResponse['error#displayValue']; //Getting the error
    //TODO: Implement how to handle errors
});

WebDashboard.setSource Parameters

Parameter

Type

Description

source

String

The source of the mobile workspace.

sourceType

Number

The source type of the mobile workspace to be loaded.

onSuccess callback function

Parameter

Description

function ()

Success callback function to be implemented.

onError callback function

Parameter

Description

function (eResponse)

Error callback function to be implemented, which receives the eResponse JavaScript Object.

Sample

For a sample with this API method, refer to Changing the source of a SharePlus Mobile Workspace bridge scenario.

Note

Note: The WebDashboard.setSource API function only works for mobile workspaces in the Application Home.