Saturday 31 May 2014

Adding summary field as footer of pageblock table in vf page.





Hi All,

This post is simply showing how can we add the summary field or total amount or other information in footer of PageBlockTable or DataTable in vf page.

Here, in the following example I am showing sum of all the opportunity line items in footer of PageBlockTable,

i am using the <apex:facet name="footer"> tag to show the value in the footer.

Here the code:


Screen shot:

Thanks
Anurag Jain



7 comments:

  1. Hi Anurag,
    That's a really cool stuff. thanks for sharing :)

    ReplyDelete
  2. Hi Anurag,

    Thanks for the post.
    I tried your example. But result nothing.
    Please let me know need any changes.

    ReplyDelete
    Replies
    1. Hi Manohar,

      Did you giving the opportunity id in the URL??
      (like this ?id=00690000008zlZ3)

      Delete
  3. I just wanted to add the footer on visual force page report and it really help me in this regard. Thanks!

    ReplyDelete