Is there a tutorial ,examples,documentation, or procedure on how to take a maximo BIRT rptdesign file and import it to reportserver and then execute it?
We are evaluating reporting tools and would like to do a proof of concept by importing a IBM Maximo person.rptdesign into reporserver .
-
How do we handle the paramaters defined in the person.rptdesign
-
How do we handle the datasource and datasets?
This is what we have done but are getting errors :
-
We created oracle jdbc datasource and verified its working. We are able to run a simple non maximo report against the maximo person table using this jdbc.
-
We inserted a new birt report using reportserver and then specified the person.rptdesign
-
We added the paramaters via report management within the reportserver administration app.
-
we execute the person.rptdesign
-
we get the following error:
Person Detail
The following items have errors:
ReportDesign (id = 1):
- There are errors evaluating script "importPackage(Packages.com.ibm.tivoli.maximo.report.script);
mxReportScriptContext = MXReportScriptContext.initialize(reportContext);
//mxReportScriptContext.setDefaultLogLevel(“DEBUG”);
//mxReportScriptContext.setDefaultLogFile(“C:/temp/person_details.log”);
//scriptLogger = mxReportScriptContext.getReportScriptLogger();
":
ReferenceError: “MXReportScriptContext” is not defined. (/report/method[@name=“initialize”]#3)
ReportDesign (id = 1):
- There are errors evaluating script "maximoDataSet = MXReportDataSetProvider.create(this.getDataSource().getName(), this.getName());
maximoDataSet.open();
var where = params[“where”];
if(params[“personid”].value) {
where += " and " + MXReportSqlFormat.createParamWhereClause(“person.personid”, params[“personid”]);
}
var sqlText = new String();
// Add query to sqlText variable.
sqlText = "select person.personid, person.displayname, person.status, person.location, "
- " maxuser.userid, maxuser.loginid "
- " from person left outer join "
- " maxuser on maxuser.personid = person.personid "
// Include the Maximo where clause - " where " + where
;
maximoDataSet.setQuery(sqlText);":
Fail to execute script in function __bm_OPEN(). Source:
" + maximoDataSet = MXReportDataSetProvider.create(this.getDataSource().getName(), this.getName());
maximoDataSet.open();
var where = params[“where”];
if(params[“personid”].value) {
where += " and " + MXReportSqlFormat.createParamWhereClause(“person.personid”, params[“personid”]);
}
var sqlText = new String();
// Add query to sqlText variable.
sqlText = "select person.personid, person.displayname, person.status, person.location, "
- " maxuser.userid, maxuser.loginid "
- " from person left outer join "
- " maxuser on maxuser.personid = person.personid "
// Include the Maximo where clause - " where " + where
;
maximoDataSet.setQuery(sqlText); + "
A BIRT exception occurred. See next exception for more information.
ReferenceError: “MXReportDataSetProvider” is not defined. (/report/data-sets/script-data-set[@id=“5”]/method[@name=“open”]#1).
- There are errors evaluating script "if (!maximoDataSet.fetch())
return (false);
// Add a line for each output column
// The specific get method should match the data type of the output column.
row[“personid”] = maximoDataSet.getString(“personid”);
row[“displayname”] = maximoDataSet.getString(“displayname”);
row[“status”] = maximoDataSet.getString(“status”);
row[“location”] = maximoDataSet.getString(“location”);
row[“userid”] = maximoDataSet.getString(“userid”);
row[“loginid”] = maximoDataSet.getString(“loginid”);
mxdsPersonid = maximoDataSet.getString(“personid”);
return (true);":
Fail to execute script in function __bm_FETCH(). Source:
" + if (!maximoDataSet.fetch())
return (false);
// Add a line for each output column
// The specific get method should match the data type of the output column.
row[“personid”] = maximoDataSet.getString(“personid”);
row[“displayname”] = maximoDataSet.getString(“displayname”);
row[“status”] = maximoDataSet.getString(“status”);
row[“location”] = maximoDataSet.getString(“location”);
row[“userid”] = maximoDataSet.getString(“userid”);
row[“loginid”] = maximoDataSet.getString(“loginid”);
mxdsPersonid = maximoDataSet.getString(“personid”);
return (true); + "
A BIRT exception occurred. See next exception for more information.
ReferenceError: “maximoDataSet” is not defined. (/report/data-sets/script-data-set[@id=“5”]/method[@name=“fetch”]#1).
- Data Set script method “Fetch” returned null; expected a Boolean value.