How to use a section as a table column header

Hi,

I have a table that is used by three different roles. Based on this, I was asked to change the column header according to the current user’s role:

For example, for role “A” I would like to display Vendor (as seen in the picture above), but if the user’s role is “B” I would like to display Customer, and so on…

I thought in creating a section with just labels inside, which will conditionally display based on the user’s role and include it in the column header. However, as you can see in the picture above I lost the filtering for that column :confused:

Is this a limitation when using a section as a column header?

Thanks for any thoughts on this,

-Jose

P.S. the other solution might be duplicating the table 2 or 3 times, and just change the column label on each one, but this would imply a lot of repetition.

@josenavas

Even I see that the filtering and sorting option goes if we do a section include in the column header. I think this is a default behavior.

I checked with team and found that if u have section include inside a Grid then sorting/filtering does not work for that column. This will be fixed in 8.5.

@TashikaS

Hi Tashika

Even my requirement was to call a embedded section on a column header of a table,and we also faced sorting and filtering issue.

but even in 8.5 version this issue is still there.

can please help me on this.

Thanks

Shilpa

@josenavas , @shilpan1015 ,Try this and let us know if it works!!

Drag a paragraph rule from layout and put in the header .Inside the Paragraph rule , use the below html


```
<pega:when name="1WhenCondition">Label1</pega:when>

<pega:when name="2WhenConfition">Label2</pega:when>
```

@uashok93 this solution worked in Pega 8.4 :grinning_face: Thank you!