72
Views
5
Comments
Two cascading DROPDOWN TAGS

Hi everyone. 

I am new in outsystems. I want to linked two dropdown tags in this way

1st dropdown tag: I choose multiple values from the entity CATEGORY
2nd dropdown tag: should display and append the subcategories linked to the category

These values should then be updated in the entity.
How do I link the first selection given that it is more than one value?

Thanks you a lot

2021-06-02 20-50-04
Márcio Carvalho

Hey.

Step by step of what I would do

  1. Take the  chosen values from the dropdown tags
  2. Make a loop to find the subcategories which are related to the categories selected
  3. Take the dropdown tag values selected and add them to the entities

1,2)

3)

How to add to entity

I did a little example, check the OML and let us know if it helps :)

Kind Regards,

Márcio

example.oml
UserImage.jpg
Elio Biagi

Hi Màrcio, thanks for your answer but the subcategories dropdown still doesn't show the subcategories. Probably I am doing something wrong

UserImage.jpg
Shohaib Khan

Hello, 

I have a different approach, 

take 2 aggregates set for both dropdown respectively, now set the value of 1st dropdown value to a local variable and set the on-change event in that refresh the another aggregate, add the filter in another aggregate with local variable, 

Some screenshots:


I have attached the oml for better understanding,

let me know if this works or not

Thank you

Shohaib

Cascading_DropDown.oml
2021-06-02 20-50-04
Márcio Carvalho

Hey!

Its about dropdown tags and not a simple dropdown :)

Kind Regards,

Márcio

2025-09-25 14-38-22
Lokesh Kumar Yadav

Hi Elio,

I will provide you link this link helpful to your senario

https://youtu.be/uVmAtGeRg2M

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