# How to unhide(?group) control in the footer() band only on the last page of the report?

**URL:** <https://clarionhub.com/t/how-to-unhide-group-control-in-the-footer-band-only-on-the-last-page-of-the-report/7657>\
**Category:** questions\
**Tags:** report\
**Created:** [November 13, 2024, 7:26pm UTC](https://clarionhub.com/t/how-to-unhide-group-control-in-the-footer-band-only-on-the-last-page-of-the-report/7657 "2024-11-13T19:26:45Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorge-paladino](https://clarionhub.com/user_avatar/clarionhub.com/jorge-paladino/32/2847_2.png) [@jorge-paladino](https://clarionhub.com/u/jorge-paladino)\
**Post date:** [November 13, 2024, 7:26pm UTC](https://clarionhub.com/t/how-to-unhide-group-control-in-the-footer-band-only-on-the-last-page-of-the-report/7657/1 "2024-11-13T19:26:45Z")

</div>

Hello everyone!  
How to unhide(?group) control in the footer() band only on the last page of the report?

Improving the request:  
I need that, if the report has more than 1 page, whatever is in ?Footer is printed only on the last page.

If there is one, print it in its ?Footer, if there are two, print it in the ?Footer of the second, if three, in the ?Footer of the third....

Thanks.

---

<div class="post-metadata">

**Author:** ![Genricke](https://clarionhub.com/user_avatar/clarionhub.com/genricke/32/5271_2.png) [@Genricke](https://clarionhub.com/u/Genricke)\
**Post date:** [November 13, 2024, 8:20pm UTC](https://clarionhub.com/t/how-to-unhide-group-control-in-the-footer-band-only-on-the-last-page-of-the-report/7657/2 "2024-11-13T20:20:07Z")

</div>

Hi !  
You need to know the tag of the last line report or the number of records to print.

```auto
  ReturnValue = PARENT.TakeRecord()
  ! [Priority 5001]
     CurrentRow += 1
     If CurrentRow = AllReportRow then UnHide(?GroupTotal). ! Show the total on the last 
  PRINT(RPT:detail)

```

---

<div class="post-metadata">

**Author:** ![jorge-paladino](https://clarionhub.com/user_avatar/clarionhub.com/jorge-paladino/32/2847_2.png) [@jorge-paladino](https://clarionhub.com/u/jorge-paladino)\
**Post date:** [November 13, 2024, 8:33pm UTC](https://clarionhub.com/t/how-to-unhide-group-control-in-the-footer-band-only-on-the-last-page-of-the-report/7657/3 "2024-11-13T20:33:08Z")

</div>

> [@Genricke](#):
>
> `AllReportRow `

Hi!  
How do I get the value of AllReportRow ?

Thanks!

---

<div class="post-metadata">

**Author:** ![Genricke](https://clarionhub.com/user_avatar/clarionhub.com/genricke/32/5271_2.png) [@Genricke](https://clarionhub.com/u/Genricke)\
**Post date:** [November 13, 2024, 8:35pm UTC](https://clarionhub.com/t/how-to-unhide-group-control-in-the-footer-band-only-on-the-last-page-of-the-report/7657/4 "2024-11-13T20:35:50Z")

</div>

This value must be calculated before printing the report, taking into account all filters.

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [November 13, 2024, 8:59pm UTC](https://clarionhub.com/t/how-to-unhide-group-control-in-the-footer-band-only-on-the-last-page-of-the-report/7657/5 "2024-11-13T20:59:24Z")

</div>

The way the Print Engine outputs pages is somewhat a black box.

A few pages are buffered while the Engine resolves widow/orphan features of WithNext(), WithPrior(), Together etc. So after all the Details print you could Unhide your Footer controls. That Unhide will happen on the Buffered Pages so the unhid footer could end up rendering on more than just the Last Page.

Instead of a Footer I would put those controls on a DETAIL that you Print Last. Specify the ABSOLUTE attribute with the AT(X,Y) down at the bottom of the page in the Footer position.

---

<div class="post-metadata">

**Author:** ![PurpleEdge2214](https://clarionhub.com/user_avatar/clarionhub.com/purpleedge2214/32/5109_2.png) [@PurpleEdge2214](https://clarionhub.com/u/PurpleEdge2214)\
**Post date:** [November 13, 2024, 11:55pm UTC](https://clarionhub.com/t/how-to-unhide-group-control-in-the-footer-band-only-on-the-last-page-of-the-report/7657/6 "2024-11-13T23:55:42Z")

</div>

Assume it’s ABC? Then in the embed for TakeRecord, After the parent call…

```auto
IF ReturnValue ! Report has finished
  SETTARGET(Report)
  UNHIDE(?FooterString)
  SETTARGET
END

```

---

<div class="post-metadata">

**Author:** ![Flavio\_Suarez](https://clarionhub.com/user_avatar/clarionhub.com/flavio_suarez/32/1347_2.png) [@Flavio\_Suarez](https://clarionhub.com/u/Flavio_Suarez)\
**Post date:** [November 14, 2024, 3:28pm UTC](https://clarionhub.com/t/how-to-unhide-group-control-in-the-footer-band-only-on-the-last-page-of-the-report/7657/7 "2024-11-14T15:28:53Z")

</div>

You can use a Grand Total band for this and print it only at the end of the report…  
Look at Clarion’s help for “Grand Totals” on how to use it.  
Hope this help you

---

<div class="post-metadata">

**Author:** ![jorge-paladino](https://clarionhub.com/user_avatar/clarionhub.com/jorge-paladino/32/2847_2.png) [@jorge-paladino](https://clarionhub.com/u/jorge-paladino)\
**Post date:** [November 14, 2024, 4:53pm UTC](https://clarionhub.com/t/how-to-unhide-group-control-in-the-footer-band-only-on-the-last-page-of-the-report/7657/8 "2024-11-14T16:53:27Z")

</div>

I’ll do the tests!  
Thanks everyone!

---

<div class="post-metadata">

**Author:** ![Flavio\_Suarez](https://clarionhub.com/user_avatar/clarionhub.com/flavio_suarez/32/1347_2.png) [@Flavio\_Suarez](https://clarionhub.com/u/Flavio_Suarez)\
**Post date:** [November 14, 2024, 6:48pm UTC](https://clarionhub.com/t/how-to-unhide-group-control-in-the-footer-band-only-on-the-last-page-of-the-report/7657/9 "2024-11-14T18:48:22Z")

</div>

Even you don’t use the Grand Total approach, in the Clarion’s help about Grand Totals you’ll find the correct embeds to use…

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [November 14, 2024, 7:40pm UTC](https://clarionhub.com/t/how-to-unhide-group-control-in-the-footer-band-only-on-the-last-page-of-the-report/7657/10 "2024-11-14T19:40:31Z")

</div>

On line help [How to Print Grand Totals on a Report](https://clarion.help/doku.php?id=how_to_print_grand_totals_on_a_report.htm)

[Help on ABSOLUTE](https://clarion.help/doku.php?id=absolute_set_fixed_position_printing_.htm) that will allow AT(x,y) positioning a Detail in the Footer area of the Report.

---

<div class="post-metadata">

**Author:** ![jorge-paladino](https://clarionhub.com/user_avatar/clarionhub.com/jorge-paladino/32/2847_2.png) [@jorge-paladino](https://clarionhub.com/u/jorge-paladino)\
**Post date:** [November 14, 2024, 10:55pm UTC](https://clarionhub.com/t/how-to-unhide-group-control-in-the-footer-band-only-on-the-last-page-of-the-report/7657/11 "2024-11-14T22:55:59Z")

</div>

Ok!  
The implementation worked as suggested by CarlBarnes:  
 → I inserted a new `?Detail`  
 → in Extra I selected `Absolute`  
 → I set the height/length/x and y to the same as the `?Footer`

 ![image](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/8/8d875c05df09735087480d0ec7540fb1e930f50b.png)  
 → I set its filter to `false`  
 ![image](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/b/baf21a16b9363dd5ea5d3ae2e35ff2b1f08818be.png)  
 → I called it as the last to be printed before the `EndPage` where the client inserts images  
 ![image](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/9/9763348f4cd893f3467a0dde1c6595aa80e2bdd3.png)

[Peteleco\_Sonia\_CITODOIS\_00026.pdf](https://clarionhub.com/uploads/short-url/dlGOlOGHx4WT5B6tITSH5Imita.pdf) (748,3,KB)

---

<div class="post-metadata">

**Author:** ![jorge-paladino](https://clarionhub.com/user_avatar/clarionhub.com/jorge-paladino/32/2847_2.png) [@jorge-paladino](https://clarionhub.com/u/jorge-paladino)\
**Post date:** [November 14, 2024, 10:56pm UTC](https://clarionhub.com/t/how-to-unhide-group-control-in-the-footer-band-only-on-the-last-page-of-the-report/7657/12 "2024-11-14T22:56:27Z")

</div>

Thank you very much everyone!!!

---

<div class="post-metadata">

**Author:** ![Flavio\_Suarez](https://clarionhub.com/user_avatar/clarionhub.com/flavio_suarez/32/1347_2.png) [@Flavio\_Suarez](https://clarionhub.com/u/Flavio_Suarez)\
**Post date:** [November 19, 2024, 1:06pm UTC](https://clarionhub.com/t/how-to-unhide-group-control-in-the-footer-band-only-on-the-last-page-of-the-report/7657/13 "2024-11-19T13:06:05Z")

</div>

Que bom!  
Precisando, entre em contato…
