'Pentaho version 7.1 community edition fails to load the scripting engine for ECMAScript. How do I resolve the issue?
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);
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
