How is your experience with the OutSystems Community?
24
Views
8
Comments
Solved
Show and clickable data in Accordion

Hye all,

i want to know and need help, my situation i want to show and clickable data from accordion. Inside accordion already have Department name, i want to add number of staff and when click number of staff it go to other page that show list of staff on particular department. Below implementation, show department inside accordion.


Thank you

2023-09-06 07-26-35
Sudip Pal
Solution

I missed to add something in my OML.

If you add this, departments will be distinct.

Thanks,

Sudip

2024-10-05 13-30-20
Huy Hoang The


I don't understand the logic below, why you need to get data inside the Accordion on the click event, but if you want to show the staff list on another page you can use a redirect page and pass the relevant ID. Could you show a diagram for this situation? It would be simpler for me to help you.

2023-09-06 07-26-35
Sudip Pal

Hi,

Try the below OML where I have added an extra attribute in Structure that is "StaffCount".

Along with that I have added Filter_StaffByGroupName and adding the Length of the filtered output in the ListAppend.


I am sharing the OML below.

Thanks,

Sudip

Accordion_v3.oml
UserImage.jpg
wan mohd shariffuddin

Hi @Sudip Pal ,

Thanks @Sudip Pal for your help, now the staff no is appear. But for my situation i want to show like image below.



UserImage.jpg
wan mohd shariffuddin

Hi @Sudip Pal 

i added filter by staff department, the result as image below 0staff. 


UserImage.jpg
wan mohd shariffuddin

Hi @Sudip Pal 

Thanks for the oml. It appear number of staff. Im Adding this to into your share oml, because i want to show distinct department. so i only each group show 1 department. Need your expertise, is it correct what im doing as above image?

2023-09-06 07-26-35
Sudip Pal
Solution

I missed to add something in my OML.

If you add this, departments will be distinct.

Thanks,

Sudip

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