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
- Configure a new PCF page to display the question set.
-
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 namedaccountQuestionSetswith an initial value ofaccount.getQuestionSets(). -
In the
afterEnterattribute of the PCF page, callProductModelSyncIssueHandler.syncQuestionsFor example, to display an account-level question set, enter the following code in theafterEnterattribute:gw.web.productmodel.ProductModelSyncIssuesHandler.syncQuestions({account as AnswerContainer}, accountQuestionSets, null) -
Add a
PanelRefon the PCF page that points to theQuestionSetsDVdetail view.For example, to display an account-level question set, add aPanelRefthat points toQuestionSetsDV(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.
