I am creating a dynamic questionnaire on Xpages. The number of questions in it may vary depending on who is setting the questions. After the questionnaire has been completed, I need to collate a report with all of the answers. For this I need to display them in Xpages such that it can dynamically pull the questionnaire answers and each answer must have its own column. How do I create a table that automatically changes its columns depending on how many answers there are?
You use an xp:repeat control to generate the columns in the table. You can also use a Java class to generate the complete table and then call the Java method in a computed text field (xp:text).