Discussion
Coned
US
Last activity: 4 Oct 2018 11:08 EDT
Repeating Grid - Hide column based on condition
Hi,
Is there a way to hide a column in the repeating grid based on a condition. we have a scenario where we have to hide certain columns based on some conditions, is there an option to do it? I dont want to create multiple repeating grids to handle each scenario, it will be a maintaince nightmare. Any thoughts will be appreciated.
Thanks
***Updated by moderator: Lochan to add Enhancement details***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Likes (1)
VinodhKanna Rajendran -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Coforge
GB
Hi,
You can achive this by using Virtual Report Defination in Pega 7.1.7.
Coned
US
Thanks for the help, any thoughts if the source is clipboardpage??
Pega
IN
Hi,
Did you achieve this, i.e. based on certain condition hiding the column of repeating grid.
Virtusa Polaris
IN
Did you get any solution for hiding the column conditionally if source is clipboard page in grid ?
Capgemini
DE
Up'ing this thread. Did You find a good approach?
Obviously, duplicating the section would be one (albeit unfavorable) approach. Having one section with the repeating grid and therein disable whole columns based on parameters would be great, but I can't too spot a setting on the column that would allow for this.
HCL Technologies BV
NL
Hi,
Did anyone was able to achive this scenario? I am also facing this issue.
Thanks
Saikat
Pegasystems Inc.
IN
Hello,
There is an existing enhancement request/feedback item for this behaviour. You can follow up with your Account Excecutive to get more details regarding its progress.
Enhancement Id:FDBK-12522
Regards,
Praveen
KasikornBank
TH
Pegasystems Inc.
IN
Hi Sachin,
It is best to consult with your company's Pega Account Executive for details on the feedback request!
Regards,
Lochan | Community Moderator | Pegasystems Inc.
COGNIZANT TECHNOLOGY SOLUTIONS
US
Please provide solution for others also!
Pegasystems Inc.
US
FDBK-12522 is currently Open-In Review. To find out more information please contact your Account Executive to follow up with Product Management.
Coforge
IN
Hi,
You can select the whole column means both the label and field and add below inline styles which will hide the whole column.
<pega:when test='OperatorID.pyUserName=="Sk Imran Hasan"'>display:none</pega:when>
Condition needs to be change as per your implementation.
COGNIZANT TECHNOLOGY SOLUTIONS
US
Will try this approach .. Thank you so much!!
Pegasystems Inc.
IN
Hi Imran,
Will the inline style be applied to Production environment as well. I found that inline style is not for production use.
Coforge
IN
yes you can use it in Production environment as well. As a best practice you should not use inline style but to achieve the mentioned feature no other way, have to use inline style.
-
Aravinth Venkateshwaran
Tcs
IN
Hi Imram, this is not working for me. Whenever I give Inline style check in and on check out I couldn't see inline style there. Using Pega 7.2.2.
Coforge
IN
can you post a screenshots how you implemented?
It works for me in 7.3 and it should work for 7.2 as well.
J.P. Morgan Services India PVT Ltd
IN
what is the source you are using for the grid, I could the below post where a work around is given to hide the column in report definition, please check if it helps:
https://collaborate.pega.com/question/how-hide-column-report-definition-based-condition
StellarNexus Consulting UG
DE
This issue still exists in Pega 7 unfortunately.I remember that we encountered this issue in Pega 6.2 4 years back and then we had the ability to view the code generated by sections in HTML tab.What we did was that we included a pega when check in the auto generated code after the table attribute starts.But with Pega 7 , we are unable to see the auto-generated HTML code for sections and hence cannot edit it. I hope Pega has to come up with an enhancement in fixing this issue.