3.2.08a Dynamically show and hide columns in a table

The introduction

In this example You can see how to output the simple table.

But, suppose that we need to hide/show (by condition) any columns from table part. I.e. we have a column set that have to be output permanently; in addition, there are several columns that you want to show in the form depending on the conditions.

For example, there are 6 columns in the table (A, B, C, D, E, F). Here, first three columns (A, B, C) have to be placed permanently in the form, and the other columns (D, E, F) - have to be displayed depending on whether a corresponding checkbox is set on the selection screen in the printing program: