39
Views
5
Comments
Passing data from tab to tab

Hello,

I'm using 4 blocks and put each block as a tab in the final block "UserProfile". Each block is a form so my question is there anyway to pass the data from each block to save all the information at database at 1 time meaning I don't click save button on first block and second one and so on. I want to just fill the inputs and when I press next it saves the data maybe at local or something and pass it to next block and so on?? 

Thanks.

EndUser_CW.oml
2021-09-06 15-09-53
Dorine Boudry
 
MVP

Hi @Mohamed Ramadan ,

The most obvious way to do this, is to keep the parent block UserProfile in control.

Meaning that each child block will have as input the data to display and an event with the same inputs triggered at any change or at some other point in time, giving back the information to the parent block.

The parent block keeps track of all information and executes retrievals and updates to the database.

Dorine

UserImage.jpg
Mohamed Ramadan

Can you elaborate more please, I’m still new with outsystems.

2023-08-28 07-00-10
Paulo Torres
Champion

Hi,

Each Web-block should have a event to return the information to main page and with this you can save easy all the information in one time.

Regards

UserImage.jpg
Mohamed Ramadan

What should I put in the event in that case ? Still new to outsystems sorry.

2023-08-28 07-00-10
Paulo Torres
Champion
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.