Hi,
Could you tell me why the "fv!row" is not accepted for gridColumn attributes other than "value" please ?
How may I hide this column using showWhen ?
a!gridColumn( label: fv!row.label => Improperly scoped variable value: fv!row.amount, => OK no issue showWhen: fv!row.isactive => Improperly scoped variable ),
Discussion posts and replies are publicly visible
Hi Cedric,
My thoughts - Only the value part changes for every row in a grid column. The attributes like label, width & showWhen conditions remain static on the whole grid and don't vary between the rows. Hence the scope of 'fv!row' is limited only to the 'value' attribute.
Coming to your requirement,
If you want to hide an entire column, then this link will help you - https://docs.appian.com/suite/help/21.3/recipe-conditionally-hide-a-column-in-a-grid.html
If you want to hide the value when the row is inactive, then you can code like below.
a!gridColumn( label: "Label", value: if(fv!row.isactive,fv!row.amount,null()) )
Thank you Selvakumar Kumarasamy, you're right the column has to be hided for the whole grid, and not depending of the row.I've missed this evident detail ;-)
I will use a global variable to determine if the column has to be displayed or not.