Hi Harm,
To automatically add a conditional layout for all columns with a specific column tag (for example `font`), create a control procedure in the Dynamic model screen with the following code:
1insert into conditional_layout (
2 project_id,
3 project_vrs_id,
4 tab_id,
5 conditional_layout_id,
6 col_id,
7 font_id
8)
9select
10 t.project_id,
11 t.project_vrs_id,
12 t.tab_id,
13 t.col_id + '_font' as conditional_layout_id,
14 t.col_id,
15 'my_custom_font_id' as font_id
16from col_tag t
17where t.project_id = @project_id
18 and t.project_vrs_id = @project_vrs_id
19 and t.tag_id = 'font'
20 and not exists (
21 select 1
22 from conditional_layout c
23 where c.project_id = t.project_id
24 and c.project_vrs_id = t.project_vrs_id
25 and c.tab_id = t.tab_id
26 and c.conditional_layout_id = t.col_id + '_font'
27 )
Now you only have to add this tag to the relevant columns.