Skip to main content



      Home
Home » Archived » BIRT » Javascript function getColumnMetaData() does not work on dataset open method
Javascript function getColumnMetaData() does not work on dataset open method [message #198549] Tue, 31 October 2006 16:09
Eclipse UserFriend
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.
Previous Topic:params["DateParam"].getYear() doesn't work in 2.1.1
Next Topic:Viewer blank on remote server
Goto Forum:
  


Current Time: Sat May 10 12:30:38 EDT 2025

Powered by FUDForum. Page generated in 0.03911 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top