# How to embed Constellation view in Rule-PegaQ-Question rule

**URL:** <https://forums.pega.com/t/how-to-embed-constellation-view-in-rule-pegaq-question-rule/7328>\
**Category:** General\
**Tags:** 23-1-1, pega-cloud, financial-services, app-studio, constellation, case-management, lead-system-architect\
**Created:** [June 11, 2024, 10:08pm UTC](https://forums.pega.com/t/how-to-embed-constellation-view-in-rule-pegaq-question-rule/7328 "2024-06-11T22:08:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergei\_Kart](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@Sergei\_Kart](https://forums.pega.com/u/Sergei_Kart)\
**Post date:** [June 11, 2024, 10:08pm UTC](https://forums.pega.com/t/how-to-embed-constellation-view-in-rule-pegaq-question-rule/7328/1 "2024-06-11T22:08:33Z")

</div>

We’d like to reuse Constellation UI View rule in Questionnaire case type to collect address details of the customer. In Rule-PegaQ-Question rule we can only refer to custom section in Question layout and Answer mode.

We’re considering implementing approach described in the article [Configuring a Constellation table in a Section](https://docs.pega.com/bundle/platform/page/platform/user-experience/configuring-table-section.html) when the Constellation view is added to a section displayed using pzLaunchView control.

Could you please comment on this approach, possible drawbacks and product plans when reuse of the existing views would be possible in Rule-PegaQ-Question rules?

---

<div class="post-metadata">

**Author:** ![Prasad\_Reddy\_Muddam](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/prasad_reddy_muddam/32/7668_2.png) [@Prasad\_Reddy\_Muddam](https://forums.pega.com/u/Prasad_Reddy_Muddam)\
**Post date:** [June 12, 2024, 9:46am UTC](https://forums.pega.com/t/how-to-embed-constellation-view-in-rule-pegaq-question-rule/7328/2 "2024-06-12T09:46:24Z")

</div>

Hi @Sergei Kart

Depending on the complexity of the embedded views, there could be performance implications, especially if the Constellation views are resource-intensive

---

<div class="post-metadata">

**Author:** ![RameshSangili](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/rameshsangili/32/23377_2.png) [@RameshSangili](https://forums.pega.com/u/RameshSangili)\
**Post date:** [June 28, 2024, 1:01pm UTC](https://forums.pega.com/t/how-to-embed-constellation-view-in-rule-pegaq-question-rule/7328/3 "2024-06-28T13:01:32Z")

</div>

@Sergei Kart

Could you please explore the option to leverage DX Component? Section rules may not look and feel the same as Constellation views.

---

<div class="post-metadata">

**Author:** ![Sergei\_Kart](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@Sergei\_Kart](https://forums.pega.com/u/Sergei_Kart)\
**Post date:** [June 28, 2024, 2:38pm UTC](https://forums.pega.com/t/how-to-embed-constellation-view-in-rule-pegaq-question-rule/7328/4 "2024-06-28T14:38:27Z")

</div>

The solution is found and is quite trivial.

Whenever new question page is being added the new rule Rule-PegaQ-QuestionGroup will be created OOTB and the sibling Rule-UI-View rule with the same name.

In order to embed existing Constellation View into the question page, open automatically generated Rule-UI-View, enable Mark as custom option and paste into pxViewMetadata field JSON with reference to existing view, for example:

```auto
{
 "name": "OrganisationContactDetails",
 "type": "View",
 "config": {
  "template": "DefaultForm",
  "ruleClass": Work-",
  "localeReference": "@LR WORK-!VIEW!ORGANISATIONCONTACTDETAILS"
 },
 "children": [
  {
   "name": "Fields",
   "type": "Region",
   "children": [
    {
     "type": "reference",
     "config": {
      "name": "OrganisationContactDetails_ContactDetails_1",
      "inheritedProps": [
       {
        "prop": "label",
        "value": "@L Contact Details"
       },
       {
        "prop": "showLabel",
        "value": true
       }
      ],
      "context": ".ContactDetails",
      "ruleClass": "Common-LDM-Entity-Contact",
      "type": "view"
     }
    },
    {
     "type": "TextInput",
     "config": {
      "value": "@P .ContactDetails.Name",
      "label": "@L Company Name",
      "required": true
     }
​​​​​​​.....

```
