How could I parse dbr.sum value through my custom template

(4 posts) (2 voices)

Tags:

No tags yet.

  1. arpita, Member

    How could I parse dbr.sum value through my custom template?
    I declare
    select dbr.sum field1,field2,field3,
    -----
    ---

    Create a separate template with name "Reservation summery footer " with
    <!--header--><table>
    <!--row--><tr>
    <td>#field1</td>
    <td>#field2</td>
    <td>#field2</td>
    </tr>
    <!--footer--></table>

    But the sum value is not parse . What will the correct procedure?

  2. myDBR Team, Key Master

    Hi,
    if you want to use jus the sum's in the footer, use sum(field) in the query. The dbr.sum works with normal table output (which you can use in template also if you wish).

    --
    myDBR Team

  3. arpita, Member

    The dbr.sum works with the default template but not working with custom template.
    Is dbr.sum is not working with custom template? as it is not parsed. The documentation is not clear for me on this point .

  4. myDBR Team, Key Master

    HI,
    You can use dbr.sum in templates if you use myDBR elements inside template. You however cannot use dbr.sum diretcly within your own template.

    Could you give a more complete example what you are trying to do? Do you have detail rows in your template from which you want to run sum over or what is the pupose of using dbr.sum.

    --
    myDBR Team


Reply

You must log in to post.