|
Re: Pass dataset value to BirtNavigationBar.js [message #1100956 is a reply to message #1100468] |
Tue, 03 September 2013 21:02 |
|
You could try something like this:
In your NavigationbarFragment.jsp, you could put <TD> <div id='totalRows' /> </TD> between the pages and nav buttons <TD>'s. In your table's dataSet, add a computed column called "totalRows" that uses the count aggregation to return the number of rows. Then, at the top of your report, put a HTML text box bound to your table dataSet with the contents:
<script>
temp = <VALUE-OF>row["totalRows"]</VALUE-OF>;
document.getElementById('totalRows').innerHTML = "Total: " + temp;
</script>
This will find the div you placed in the navigationbarfragment and change it to say your total number of rows. Hope this helps.
Michael
Developer Evangelist, Silanis
|
|
|
Powered by
FUDForum. Page generated in 0.02569 seconds