14
Views
3
Comments
Solved
Add Blocks dynamically based on user request in mobile
Question
Application Type
Mobile

Hi Guys,

I would like to learn how to use reusable Blocks and for that i created a scenario for myself.

I want to create a Block to create the above form, where a user can add 'n' number of countries to the Continent Block on clicking the "Add Country" button and this will add go inside a single Continent block.

Now if a user want to create records for a new continent, he can click "Add continent" button and this block will automatically contain the Add country form.

So if my understanding is correct, i would need two blocks - parent block for Continent and a childblock for Countries. 

But i am not able to represent this in Outsystems due to my lack of experience. Can someone help me how i can decode this logic and create a reusable block. It would be really helpful if someone can share a oml file where i can see actually how it needs to be done

Appreciate your help.

Thanks

Rank: #88
Solution

Hi Learn It,

if i understood you  correctly i think you want this Sample App

I have added oml as well.


Hope this will help you.

Regards

Rahul

TestForm.oml

Rank: #8760

Thanks Rahul for the sample App. This is what i am looking for. I now have a better understanding on how to do my POC.


Appreciate your help. 

Thanks

Rank: #88

cheers