Document template: Conditional Visibility

Hi All, I am using Document template to generate PDF document. Within which many data grids are used to fetch list of different data. Now I want to display all these data grids based on some condition. How can I do this? I also tried to create few flags in one entity that contains yes/no value so that based on this i can show/hide grid but when I select that entity,I am getting the error mentioned below: Cannot find any attributes because entity of containing dataview doesn't exist Please advise
1 answers

I suggest to create booleans or enumerations on the entity of the dataview that surrounds the datagrids. Then create a table with rows for each data grid that you want to display and use the option Condition Visible.