setDataSourceInfo( [dataSourceName], [user], [password], [url] ) method

Change the specified datasource’s user name, password, and root URL information

Syntax

setDataSourceInfo( [dataSourceName], [user], [password], [url] )

Parameters

Name Type Argument Description
dataSourceName string (optional) The datasource's name for example "ODataService.EmployeeDB", it can’t be the table source name
user string (optional) The new user name ,if you don’t want to change the user name, you can set it to undefined
password string (optional) The new password, if you don’t want to change the password, you can set it to undefined
url string (optional) The new root URL for the data source, if you don’t want to change the root URL, you can set it to undefined

Source

common.js, line 54.