I downloaded Pentaho CE 7.1 so that I can modify some reports but when I try to test them I get the error: Failed to locate scripting engine for language 'ECMAScript'. The global scripting is written in ECMAScript that is why I need the ECMAScript Engine. If someone can help convert to this to groovy that would also help.
function init(dataRow){
var tenantUrl = dataRow.get("tenantUrl");
var user = dataRow.get("username");
var password = dataRow.get("password");
dataFactory.getConnectionProvider().setProperty("user", user);
dataFactory.getConnectionProvider().setProperty("password", password);
dataFactory.getConnectionProvider().setUrl(tenantUrl);
}