Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Has anybody a working example of a report recipe that uses the tag <%Relationshipgroupcompute%>?
Solved! Go to Solution.
Hi Christoph,
The actual usage of the report tag in a working example, is not well documented in our guides.
See the attached example report recipe file, for some example usage of it.
(FYI, I'm just providing this example recipe because it has the tag usage in it - please don't rely on it as a properly written recipe example, to base your own off of)
But that should give you an idea of how it's used.
ex.
<%relationshipgroupbysection footer%>
<%Relationshipgroupcompute #%>sum("myint")<%endrelationshipgroupcompute%>
<tr>
<script type="text/javascript">var colspan=&#fields+1;</script>
<script type="text/javascript">document.write("<td colspan="+colspan+">");</script> </td>
</tr>
<%endrelationshipgroupbysection%>
Hi Christoph,
The actual usage of the report tag in a working example, is not well documented in our guides.
See the attached example report recipe file, for some example usage of it.
(FYI, I'm just providing this example recipe because it has the tag usage in it - please don't rely on it as a properly written recipe example, to base your own off of)
But that should give you an idea of how it's used.
ex.
<%relationshipgroupbysection footer%>
<%Relationshipgroupcompute #%>sum("myint")<%endrelationshipgroupcompute%>
<tr>
<script type="text/javascript">var colspan=&#fields+1;</script>
<script type="text/javascript">document.write("<td colspan="+colspan+">");</script> </td>
</tr>
<%endrelationshipgroupbysection%>
Hello Michael,
Thanks! I got it working.
But I have an additional question: Is it possible to have a section in the report wizard where the report author can edit the relationship group computations, similar to the group computations in the code below? Or must the relationship group computations be hard coded?
<!-- Display group compute -->
<tr class="right">
<td colspan="&#fields">
<table class="list2">
<tr>
<th colspan="2">&groupcomputeheading</th>
</tr>
<%iterategroupcompute%>
<tr>
<td class="bold"><%groupcomputelabel%></td>
<td><%groupcompute%></td>
</tr>
<%/iterategroupcompute%>
</table>
</td>
</tr>
Hi Christoph,
I suspect you can't easily do that (I always see hard-coded examples), but perhaps someone else more familiar with that aspect of the reports, can chime in here. If you don't get info here, feel free to open a Support case.