I'm thinking of using Outsystems for a development task where the content of a layout screen would be dynamic. I know how this would work on other platforms, just not familiar enough with Outsystems yet. Help /pointers appreciated. Basically:
I've attached a sketch of what I'm after roughly below. I'd prefer not to have to create all these manually, and the layouts will be subject to change (questions may be added/removed in future). So dynamic building is a necessity. Thoughts?
Hi Steve,
All of this looks possible to accomplish with List Records and Webblocks. You'd keep your categories and questions in the database making your lists grow or shrink according to your needs.
Your layout doesn't need to be dynamic, it's your data that will change according to what you configure.
Hi,
Check the attachment for a sample.
Regards.
Prasad Rao wrote:
Thank you! Implemented now. I'm just testing to see how I would then add a web block on yes click.I presume this is possible?
Yes that is possible. You might have to change few things
1. Change the table record to listrecord and format the questions and radiobuttons to your liking
2. Have if condition after the above container and with condition set to answer. In the true part you can add the webblock.
I hope this helps.
So I've switched to listrecord. On yes click I want to activate another webblock? Or do I need to store it within the CategoryQuestions webblock? I was think I could nest a second web block within CategoryQuestions, then pass a list to that, but can't see how to make that connection.. Can start another thread/question if best.
I am not sure about the use case fully so cannot comment about passing the list, but you can nest call another web block inside a web block (Check the attachment for example)
Regard.
Yes - this is what I was thinking & had roughly got to. In your example how would you refresh WebBlock1 from the OnChange action within CategoryQuestions? So in CategoryQuestions, when a value = true, populate/refresh WebBlock1.
Thanks for your help - rebuilding your example last night really helped me wrap my head around the interactions better...
In your first example - is the result of the yes/no stored anywhere? I had presumed in the CategoryAnswers table but can't work out how to view it. Here is the logic I'm looking to implement.
I think this is implemented by:
You are not suppose to copy exactly because I have user static entity for questions and category, depending on your usecase it can be regular table if you have Back office application with screen to add category or questions. If done correctly, I am suppose to write to answers table on change, then refresh the aggregate and finally refresh the list record but since its sample I skipped it.