Vincent Koning wrote:
Do you need to retrieve the next 4 questions from the server or do you already have these in a List available?
For the server I would create a Server Action that would retrieve the questions and select those based on the new Index you supply as an Input (indicates the start of the next batch of questions).
For the filter I would create an action that would select the next 4 questions from the List.
You can do select the correct records via directly accessing the records with the following statement: <variablename>.List[<indexnumber>].<record>
Don't forget to check if the Indexnumber is greater then the number of records available otherwise you will run into errors.
I hope this is clear enough. If not I can create an example when I got some time left.
Greetings,
Vincent
Thank you for your answer! I read my previous post and I was a wrong in describing the issue. What I meant was to iterate over the answer list and add 4 answers to the respective question. I already managed to present the questions in a list widget, and I was thinking of adding another list underneath the question, but that only displays four answers corresponding the question.
I'm creating a multiple choice test/exam for other people to test their knowledge by adding their own questions and four answers with a True boolean value (isCorrect) to the correct answer. The idea is that the user can practice as many times she/he wants and review their progress later.
As for now my list variable that was going to hold the answers is empty, and I'm thinking of:
adding four answers to list variable -> present them on screen -> remove them, repeat until we have reach last one.
Regard.
Felipe