Question
Tekclan Software Solutions
IN
Last activity: 24 Jul 2020 8:17 EDT
How to Add Section as custom control.
I am trying to add one my section as a control. I am able add button like things. But Add section as a control is difficult for me. Can anyone help me to create section as a control.
Thanks& Regards,
Dhanasekar
***Edited by Moderator Marissa to update Platform Capability tags****
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 24 Jul 2020 8:17 EDT
Northbridge
CA
If custom controls allow usage of pega jsp tags, you can probably use pega:include tag to include a section in the custom control.
elaborate your requirement, so we can suggest you an appropriate approach.
Updated: 14 Jun 2021 7:38 EDT
Pegasystems Inc.
IN
Are you looking to have one section inside another section, Will section include won't work in your scenario?
Updated: 4 Jun 2020 14:29 EDT
Tekclan Software Solutions
IN
yes it will not work in my scenerio
aaseya
SA
Hi
As Kanaparthi Said above, its better to use Embedded section instead of Control.
To add Section as a control, you have to add your custom HTML code as below ,but when you refer this custom control in any section, though it displays the UI view, it still behaves as a Property control and asks you to enter any Property reference on click of Gear icon because Control are meant to how we display Properties on UI. and other concern is to write a big complex HTML to maintain.
So its better to use the Embedded section over custom control for section.
Accepted Solution
Updated: 24 Jul 2020 8:17 EDT
Northbridge
CA
If custom controls allow usage of pega jsp tags, you can probably use pega:include tag to include a section in the custom control.
elaborate your requirement, so we can suggest you an appropriate approach.
-
Dhanasekar Chellamuthu Pavithra Ramesh
Updated: 4 Jun 2020 14:44 EDT
Tekclan Software Solutions
IN
I need to include 'xyz' section in control 'abc'. that section actually has some fields to display that values are passesd as a parameters while drag and drop of a control 'abc' in a section 'bbb'.
Pegasystems Inc.
AU
Hi Dhanasekhar,
It looks like you are trying to create a custom control, In that case instead of inserting your code inside a non autogenerated section, you can create new Control rule, paste your code inside it and use the control as per your need.
If you need some guidance on how to create a custom control please follow this post, I have provided the details step by step how to create and use it.
https://collaborate.pega.com/question/float-or-display-labels-field-focus#comment-872666