I want to generate a report with just the subtotals printing. No individual records are necessary.
Is there a simple way to create a report without the body printing?
In 4D, I could just choose to not have the body visible.
If you does not required body means after creation the report starting itself delete the body part on the print report!
There is an old “trick” for this. One report layout, but change the Body part into a SubSummary part. Make sure it uses the primary key field. Then in your script, be sure to Sort by that field (as well as the others), IF you also want to see the “details” in your report.
I have a checkbox (global field) to show/not show details. In the script at the point where you have the Sort step, put an If test
If [showDetails // checked the toggle field with VL of 1]
Sort (here is the Sort including the details)
Sort (don’t include the details)
There is a demo if you need it,
Sent from miPhone
This is a demo showing some really good tricks for this:
NightWing Enterprises - Dynamic Layout v2 for FileMaker
Thank you RayCologon !
I tried your suggestion and it gave me the result I wanted. However, after I entered some new records I couldn't open the layout to print again.
Did you resort?
Retrieving data ...