Define question set and lookup tables
About this task
You must add lookup tables: one for the answer container’s question sets and one for the answer container’s questions.
Procedure
- Use the Project window in Studio to navigate to and open lookuptables.xml.
-
Add two new
LookupTableelements in theQuestion/QuestionSet Lookup Tablessection of the file, one for question sets and one for questions.For example, if you are configuring account-level questions, add<AccountQuestionSetLookup ... />and<AccountQuestionLookup... />elements. Set therootelement to"Account"and add the appropriateDimensionelement attributes.<LookupTable code="AccountQuestionSetLookup" entityName="QuestionSetLookup" root="Account"> <Dimension field="State" valuePath="Account.AccountHolderContact.PrimaryAddress.State" precedence="0"/> <Dimension field="IndustryCode" valuePath="Account.IndustryCode" precedence="1"/> <DistinguishingField field="QuestionSetCode"/> </LookupTable> <LookupTable code="AccountQuestionLookup" entityName="QuestionLookup" root="Account"> <Dimension field="State" valuePath="Account.AccountHolderContact.PrimaryAddress.State" precedence="0"/> <DistinguishingField field="QuestionCode"/> </LookupTable>For guidance, examine the question set and question set elements already defined in lookuptables.xml, such as
LocationQuestionSetLookupandLocationQuestionLookup. - Restart Studio to load the new lookup table elements.
