Load web block if accordion expand is true
Question
Application Type
Reactive

I have accordion list and I want to load the web block inside it, only when the accordion is open.

The webblock has an aggregate that is dependent to the ID of the current record in the accordion list.

I can find a way to do it, tried added handler on the ontoggle of the accordion, but still loading all data.

Thanks!


Hello Esrom,

I have also Updated My OML which is build for you please check this one too

Give any feedback for same.

Chart.oml

Solution

Hi Esrom Galang,

Step 1: Assign the local variable as input parameter to the block

Step 2 : In AccordionItemOnToggle action assign the variable EmployeeId to current id

So,Only one particular Id value will be fetched.

Attached oml and URL

Hope this helps!

Regards,

Ellakkiya.S

Chart.oml

Hi Esrom Galang,

Can you attach the sample oml? so it would be easy to help

Regards,

Ellakkiya.S 


Hello Ellakkiya,

 Similar to Akshay oml, but need the data inside the accordion to load on accordion open.

Hello Esrom,

As per my understanding of your problem, I tried to create same scenario. IF you click on the accordion for open you will get the particular value dependent to that ID.

 Please take a Look on below URL and OML if URL is Helps for question.

https://akshayproject.outsystemscloud.com/Chart/Employees 

Thanks and Regards,

Akshay Deshpande

Chart.oml

Thanks for this, however, what I want to achieve is, after clicking the accordion, that will only the time that it will query the data inside. This is to prevent to load all the data once due to the number of records we have.

Okay.Can you paste OML here, so I take a look on it for better understanding.

Hello Esrom,

I have also Updated My OML which is build for you please check this one too

Give any feedback for same.

Chart.oml

Solution

Hi Esrom Galang,

Step 1: Assign the local variable as input parameter to the block

Step 2 : In AccordionItemOnToggle action assign the variable EmployeeId to current id

So,Only one particular Id value will be fetched.

Attached oml and URL

Hope this helps!

Regards,

Ellakkiya.S

Chart.oml

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