I've install the Event Transform Report Zenpack and it works great BUT I didn't
have the Transforms that were on the Classes and Sub-Classes so I created a
separate report for this using the Transforms Report but modifying where it
pulls the transform information from. Only problem I have is that it pulls the
transforms but doesn't put the total count at the bottom or how many rows to
display. The only thing that's been modified is the First portion of the report
to pull from the subclasses and how many columns to display. Why wouldn't it
show the total found? Any help would be appreciated. Here is the markup for the
report that I'm using.
Code:
<tal:block tal:define="
objects python:[ t for t in
here.getDmdRoot('Events').getSubEventClasses() if t.transform ];
tableName string: neweventclassmapreport;
batch python:here.ZenTableManager.getBatch(tableName,objects,
sortedHeader='getDmdKey');
exportFields python:['getDmdKey', 'transform', 'getStatus']
">
<tal:block metal:use-macro="here/reportMacros/macros/exportableReport">
<tal:block metal:fill-slot="report">
<tal:block metal:use-macro="here/templates/macros/page1">
<tal:block metal:fill-slot="breadCrumbPane">
<span metal:use-macro="here/miscmacros/macros/reportBreadCrumbsList"/>
</tal:block>
<tal:block metal:fill-slot="contentPane">
<form method="POST" tal:attributes="action request/URL;"
tal:define="tabletitle string:All Event Transforms for
Classes and Sub-Classes;
showfilterbox python:True;
tblcolspan string:3">
<tal:block metal:use-macro="here/zenuimacros/macros/zentable">
<tal:block metal:fill-slot="zentablecontents">
<tr>
<th tal:replace="structure
python:here.ZenTableManager.getTableHeader(tableName,'getDmdKey','Name')"/>
<th tal:replace="structure
python:here.ZenTableManager.getTableHeader(tableName,'transform','Transform')"/>
<th tal:replace="structure
python:here.ZenTableManager.getTableHeader(tableName,'getStatus','Events')"/>
</tr>
<tal:block tal:repeat="evinst batch">
<tr tal:define="odd repeat/evinst/odd" tal:attributes="class
python:test(odd,'odd','even')">
<td class="tablevalues" align="left"><a tal:attributes="href
evinst/getPrimaryUrlPath" tal:content="evinst/getDmdKey">Name</a></td>
<td class="tablevalues"><pre tal:content="evinst/transform"/></td>
<td class="tablevalues" tal:content="python:evinst.getStatus()"
align="center">0</td>
</tr>
</tal:block>
<tr>
<td colspan="3" class="tableheader">
<span metal:use-macro="here/zenTableNavigation/macros/navtool" />
</td>
</tr>
</tal:block>
</tal:block>
</form>
</tal:block>
</tal:block>
</tal:block>
</tal:block>
</tal:block>
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=38253#38253
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users