Hi,
I am using BIRT 3.7.2. While setting sort condtion using design API, i am getting following error while running report:
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: org.eclipse.birt.core.exception.CoreException: There are errors evalu
ating script "var reportRunnable = reportContext.getReportRunnable(); var report
Design = reportRunnable.getDesignInstance(); var table = reportDesign.getTable("
Test"); var sortCondition = org.eclipse.birt.report.engi
ne.api.script.element.StructureScriptAPIFactory.createSortCondition();
sortCondition.setKey("row[\"ID\"]"); sortCondition.setDirection("desc");
table.removeSortConditions(); table.addSortCondition(sortCondition);":
TypeError: Cannot call method "setKey" of null (/report/body/table[
@id="9"]/meth
od[
@name="onCreate"]#1)
How can i pass the sort criteria.
Thanks in advance,
Ashish