Question

Property type in a column table

Hi, I need to display a set of question dynamically from a DataPage. Some will take an answer as an input other with a select.

Is it possible in Pega to have too type : input / select in the same column ?

If yes how can I achieve this need ?

Correct Answer
November 20, 2019 - 5:09am

Hello, yes I am getting the question via a SOR model. I get the questions from a webservice :

QuestionGroups>QuestionGroup>QuestionGroupLabel, QuestionGroupCode, QuestionGroupOrder, Questions>Questions>QuestionLabel,QuestionCode,QuestionType

So the tag QuestionType get : input or select value , and when it is select I will have more tag SelectValues>SelectValue>ValueOrder,ValueLabel

From that webservice, I will create 2 datapage : one with a List of  pages and embedded pages QuestionGroups(list)- Questions(List), the other one with only the Questions(list) but plus the QuestionGroupCode and the answers. 

The idear is to use the dynamic layout group control with the first datapage and an embeded section with a table that will be filled with the second datapage. 

 

Comments

Keep up to date on this post and subscribe to comments

Pega
November 18, 2019 - 4:29pm

Hi Stephane

Would you be able to predict what kind the response may be (input/select) and show the relevant control using visibility conditions?

 

November 20, 2019 - 5:09am
Response to mahab_GCS

Hello, yes I am getting the question via a SOR model. I get the questions from a webservice :

QuestionGroups>QuestionGroup>QuestionGroupLabel, QuestionGroupCode, QuestionGroupOrder, Questions>Questions>QuestionLabel,QuestionCode,QuestionType

So the tag QuestionType get : input or select value , and when it is select I will have more tag SelectValues>SelectValue>ValueOrder,ValueLabel

From that webservice, I will create 2 datapage : one with a List of  pages and embedded pages QuestionGroups(list)- Questions(List), the other one with only the Questions(list) but plus the QuestionGroupCode and the answers. 

The idear is to use the dynamic layout group control with the first datapage and an embeded section with a table that will be filled with the second datapage.