Hi, 

I want an accordion whose title and inner data have to be fetched from one of the entities of the project. To do so, I have used a list-record inside which I have added an accordion. The details are fetched perfectly, but as soon as the accordion is put inside of it, it loses its expand and collapse functionality. It is either always expanded or collapsed as per the condition filled in the "IsOpen" column as True or False respectively.

If the accordion is outside the list record, it works perfectly fine(functionality-wise).

Please help

Vaibhav Mathur wrote:

Hi, 

I want an accordion whose title and inner data have to be fetched from one of the entities of the project. To do so, I have used a list-record inside which I have added an accordion. The details are fetched perfectly, but as soon as the accordion is put inside of it, it loses its expand and collapse functionality. It is either always expanded or collapsed as per the condition filled in the "IsOpen" column as True or False respectively.

If the accordion is outside the list record, it works perfectly fine(functionality-wise).

Please help


Hi Vaibhav,

To have a accordion inside a list record you should have a structure like this 


In this the accordion will be created multiple times depending on the list count and the property value for all the accordions will be same as what you have provided for the first time. 

Could you please let me know if the expand and collapse functionality is not working for any accordion or its just for the first time all the accordions are either expanded or collapsed but you can still expand/collapse them on web UI?

Also please refer this https://www.outsystems.com/forums/discussion/43717/use-list-of-aggregate-to-populate-accordion/

and https://www.outsystems.com/forums/discussion/47675/dynamically-adding-accordion/

Thanks,

Unnati Khanorkar