cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Example for relationshipgroupcompute

ckirsch-2
4-Participant

Example for relationshipgroupcompute

Has anybody a working example of a report recipe that uses the tag <%Relationshipgroupcompute%>?

1 ACCEPTED SOLUTION

Accepted Solutions

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%>

View solution in original post

3 REPLIES 3

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.

Top Tags