322
Views
6
Comments
Solved
Refresh or Initialize a Block

I can't share my OML. So, I'll try my best to explain my issue.

Consider there is a block "A", It has 2 more blocks in it Block B and C respectively.

> Block B contains a form.
> Block C contains a table to display.

My expectation is, whenever I submit the form in Block B, the whole "Block C" must be initialized or refreshed.

UserImage.jpg
Puja Rani
Solution

Hi @Nandhakumar S 

Steps :

  1. In Block B create a local Boolean var eg Is Submit. On click of submit set its value to True. Create an event and pass this IsSubmit to value. ( event handler create in Block A as Block B/Block C are called in Block A). Hold the value in local var in Block A.
  2. In Block C, have one input parameter and bind with local var created in block A. 
  3. In Block C, create OnParameterChange action. Since input value changes your this action will be triggerd. You can refresh (or do your required logic) on conditional basis.

Hope this helps!

2025-12-12 06-45-53
Nandhakumar Sureshbabu

 In block C there is no input fields. So, how will you use the on parameters change?

It only contains a table where it displays data.

2023-10-21 19-42-11
Tousif Khan
Champion

We will pass the Id or any value which will trigger the on-parameter change of your block C.

2023-10-21 19-42-11
Tousif Khan
Champion

Hello 

Can you please specify for which application type you are looking for?

2025-12-12 06-45-53
Nandhakumar Sureshbabu

Reactive

2023-10-21 19-42-11
Tousif Khan
Champion

Hello

Adding a sample for you to achieve this,
You need to pass some value to the block in which you want to display the data 
And once the value is changed the on parameter will be triggered and yu can refresh your screen

https://personal-ejuytnht.outsystemscloud.com/SampleForumPOCS/BlockSample?_ts=638240751272774072

SampleForumPOCS_Blocks.oml
UserImage.jpg
Puja Rani
Solution

Hi @Nandhakumar S 

Steps :

  1. In Block B create a local Boolean var eg Is Submit. On click of submit set its value to True. Create an event and pass this IsSubmit to value. ( event handler create in Block A as Block B/Block C are called in Block A). Hold the value in local var in Block A.
  2. In Block C, have one input parameter and bind with local var created in block A. 
  3. In Block C, create OnParameterChange action. Since input value changes your this action will be triggerd. You can refresh (or do your required logic) on conditional basis.

Hope this helps!

2025-12-12 06-45-53
Nandhakumar Sureshbabu

 In block C there is no input fields. So, how will you use the on parameters change?

It only contains a table where it displays data.

2023-10-21 19-42-11
Tousif Khan
Champion

We will pass the Id or any value which will trigger the on-parameter change of your block C.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.