Closed belerweb closed 12 years ago
"file value is blank" can be fixed by modify org.pentaho.cdf.DashboardContext. Issue code:
String solution = requestParams.getStringParameter("solution", ""),
path = requestParams.getStringParameter("path", ""),
file = requestParams.getStringParameter("file", ""),
fullPath = ("/" + solution + "/" + path + "/" + file).replaceAll("/+", "/");
Correct code:
String solution = requestParams.getStringParameter("solution", ""),
path = requestParams.getStringParameter("path", ""),
file = requestParams.getStringParameter("action", ""), // Because there is no file parameter, but action parameter
fullPath = ("/" + solution + "/" + path + "/" + file).replaceAll("/+", "/");
"I suggest add a fullPath value" can be fixed by add a sample line. Issue code
context.put("path", path);
context.put("file", file);
Correct code:
context.put("path", path);
context.put("file", file);
context.put("fullPath", fullPath);
The generated dashboard HTML contain a javascrit variable named Dashboards.context. I think it is not complete. The file value is blank. And I suggest add a fullPath value.
The generated sample Dashboards.context as folow:
What I expect as folow: