Version

Configuration.setRemoteFileSource

This method is used to set a new source for the Configuration File, but does not trigger a Configuration File reload.

Syntax

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

Configuration.setRemoteFileSource Parameters

Parameter

Type

Description

configSource

String

URL to the remote Configuration File location.

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.

Note

Note: To enforce security, this API function can be disabled by configuration. In the Configuration File, the AllowConfigurationUpdate setting (URLSchemes feature) must be set to false. For details about this setting refer to Configuring Security > Configuration Injection > SharePlus link in SharePlus Administrator Guide.