Closed
Choosing which paragraph rule to display in a section based on a property value
Within a section rule, you can add paragraph rules to a layout. I have about 50 paragraph rules. I want to dynamically choose which one displays in the section based on a property value. The property equals the name of the paragraph rule. How can I do this?
You can use something like this in the section rule
<pega:include name="param.ParagraphRuleName" type="Rule-HTML-Paragraph"/>
And pass the ParagraphRuleName to the section.
I tried
1) Include a label with value as
<pega:include name="param.ParagraphRuleName" type="Rule-HTML-Paragraph"/>
in a section
2) On the section's Parameters Tab, define ParagraphRuleName.
3) Before displaying the section, set the param page with appropriate paragraph rule name.