<p>The basic of the report is that I need to create a table with a variable number of columns, this table then needs to be sortable and have the dynamic names for the headers which come from the data.</p>
<p> </p>
<p>As for the variable number of column in a table I am using something based on this:</p>
<p> </p>
<p><a data-ipb='nomediaparse' href='
http://developer.actuate.com/community/forum/index.php?/files/file/617-add-column-to-table-dynamically/ '>http://developer.actuate.com/community/forum/index.php?/files/file/617-add-column-to-table-dynamically/ </a>(Which has been a huge help!) </p>
<p> </p>
<p>The sorting part I think I can figure out. (if not, I'll do have a separate post.)</p>
<p> </p>
<p>The part I can't get is getting the information for the first row of the data set into the header, not the column names, the actual first row of data. I have tried a variety of possibilities but to no avail. (Again all based off of the above file.)</p>
<p> </p>
<p>I am probably just missing something or don't know the right words to search for but I haven't located how to do this, even after reviewing some of the java help pages.</p>
<p> </p>
<p>My latest brain child, which does not work, is this(Note: this is using the example from above and modifying it):</p>
<pre class="_prettyXprint">
var myheader = mytable.getHeader( ).get( 0 );
tcell = myheader.getCells( ).get( 3 );
// var mylabel = elementFactory.newLabel( null );
// mylabel.setText( "ScriptColumn" );
tcell.getContent( ).add( mytable.getDetail( ).get( 0 ) );
</pre>
<p>Any hint or help would be great.</p>