Define user interface that displays the question set

About this task

This step requires that you have defined an answer container of the appropriate type, added lookup tables, and defined at least one question set with the questions.

Define a PCF page to display the question set to the user.

Procedure

  1. Configure a new PCF page to display the question set.
  2. Add a variable to the PCF page to reference the question set to display.
    For example, to display an account-level question set named accountQuestionSet, add a variable named accountQuestionSets with an initial value of account.getQuestionSets().
  3. In the afterEnter attribute of the PCF page, call
    ProductModelSyncIssueHandler.syncQuestions
    For example, to display an account-level question set, enter the following code in the afterEnter attribute:
      gw.web.productmodel.ProductModelSyncIssuesHandler.syncQuestions({account as AnswerContainer},
              accountQuestionSets, null)
  4. Add a PanelRef on the PCF page that points to the QuestionSetsDV detail view.
    For example, to display an account-level question set, add a PanelRef that points to
      QuestionSetsDV(accountQuestionsSets, account, null)

What to do next

If the new question set is only for information-gathering purposes, you are finished. If you want the new question set to trigger underwriting issues, follow the instructions in Configure an answer container that triggers underwriting issues.