255
Views
1
Comments
[OutSystems UI] Accordion Toggle Event, On Click Handler
Question
Application Type
Reactive
Service Studio Version
11.53.27 (Build 61662)

Hello

I'm trying to use an accordion


I'm using the list inside the accordion.

In order to join Entities, you need to get the Company's Id value with on click. 


The Toggle event in accordion causes the On Click Action stored in Hanlder to be executed twice.





correct value


If you open an accordion item, close the accordion item, and open another accordion item, it will work well 


As you can see in the video, when you press the accordion item once and click another one while it's open,

The On Click Action runs normally

The previously opened accordion item is closed and the On Click Action is executed once more.


Is there any way to solve this?

2022-12-09 04-50-17
Shubham Doshi

Hello GeonOh Hwang,

As I have understood so far, you need to enclose the inner list of accordion in a block and then you need to add On parameter change event in which you will refresh the inner list.

There is no need to add On Toggle action.

I have attached a demo file. Kindly refer and feel free to ask if have any further doubts.

:)

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