Do we have attributes foreach for column names?

I would like to use display or not some columns based on parameters.

There is two approaches: to use filtering by parameters or by fields, but neither of one is working if they ar outside foreach. This is the case for column names.

f.ex.:

<th frx:if="{reg}">Region</th>
... foreach ...
<td frx:if="{reg}">{reg}</td>

In this case

hiding are not working, because are not using foreach for column rendering because foreach works for block records.

Comments

janeks created an issue. See original summary.

metzlerd’s picture

If you change the first if to filter on */reg it should do what you want: frx:if="{*/reg}" on the if that is outside the foreach.

janeks’s picture

Status: Active » Closed (fixed)

Thanks - it works!