[Working with scripts]: Hiding Components

You can hide components in a report by using a RenderIf script. Put a script in the RenderIf property so that it returns true to show or false to hide the component. You can copy this property into several components, if you need to control the visibility of all of them, or if they are in the same band of the report, you can group them together and put the RenderIf script on the Group.

If the script expression is complicated and may be used in many places, define a variable in the band OnRenderBegin and then reference the value in the component’s RenderIf.

Detail.OnRenderBegin:
tooSmall = Amount < 10;

Component.RenderIf:
!tooSmall

This combination will hide the Component if the value of the Amount field (from your DataSource) is less than ten.