Hello,<br />
<br />
Sorry for the nube question. I am trying to get some example code from the Integrating and Extending BIRT book to work. I am putting the following code in a Data Set's onFetch method:<br />
<br />
columnMetaData = this.getColumnMetaData( );<br />
colCount = columnMetaData.getColumnCount( );<br />
for ( i = 0; i < colCount; i++ )<br />
{<br />
pw.println( "Column val for col position " + i + " = " +<br />
row
);<br />
pw.println( "Column name for col position " + i + " = " +<br />
columnDefinitions.name );<br />
}<br />
<br />
But this produces and error when I try to preview the data set, it says it can not find the function 'getColumnMetaData'. I am using Birt 2.3.1 and the book is based on 2.2.1, but the API reference looks to be the same. I am sure it is something fundamental I am missing. Where is the pw.println going to be visible when I preview?<br />
<br />
Any one have any ideas on what I doing wrong? <br />
<br />
I want to figure how to use JavaScript in BIRT to flatten out a one-to-many relationship as described in this SQL Server example:<br />
<a class='bbc_url' href='http://aspadvice.com/blogs/plitwin/archive/2005/12/23/14445.aspx'>Paul Litwin's Blog : Flattening Data into a List in SQL Server</a><br />
<br />
If anyone has examples of how to use the Reporting Scripting API in practical, real world situations that would be great. <br />
<br />
Thanks in advance,<br />
<br />
Rob