Javascript function getColumnMetaData() does not work on dataset open method [message #198549] |
Tue, 31 October 2006 16:09 |
Eclipse User |
|
|
|
Originally posted by: kevin.alliknow.net
Hi group,
I use the following code in my scripted data set open() method:
length = this.getColumnMetaData().getColumnCount();
The code is supposed like that by the auto-completion. I use BIRT 2.1.1.
Running the report I get:
FEIN: Unexpected RhinoException. Source=DataSet[Metric
Results].__bm_OPEN, line=1, Script=__bm_OPEN()
org.mozilla.javascript.EcmaError: TypeError: getColumnMetaData is not a
function. (DataSet[Metric Results].__bm_OPEN#3)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRu ntime.java:3240)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRu ntime.java:3230)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime .java:3246)
at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntim e.java:3258)
In the fetch method the same method seems to exist. I have tried
afterOpen() as well: no such method.
Do you have any hints?
Thanks a million, Kevin.
|
|
|
Powered by
FUDForum. Page generated in 0.03911 seconds