Question
Swedbank
Swedbank
SE
Swedbank
Posted: Jul 15, 2020
Last activity: Jun 14, 2021
Last activity: 14 Jun 2021 7:38 EDT
Closed
How to pass parameters to when condition when it is being called as visibilty when in a section
Hi,
My requirement is lilke based on each section, I need to pass details of section like name as a parameter to the visibilty when of that section.
Is it possible? Please guide me.
Thanks in advance!
/Sri Lalitha.
Hi,
I don't quite understand the requirements. However, if there is a section, where certain fields should be shown based on a condition, you can either implement it as a Visibility condition (an expression or a when rule) OR you can Circumstance the section (i.e. with the same name, in the same ruleset, same class). The latter allows you to add only fields applicable for that condition in the same section + circumstancing based on a single property or a template might help leverage these conditions (should they expand in the future).
Alternatively, (I do not recommend, however) is pre-setting the value to a property, so that when you enter the section, you have a concrete property holding what you would have held in a param. Then, using a visibility when rule, you can check against that concrete property instead of a param.property.
I hope this helps.