247
Views
5
Comments
changing the dropdown value changing all values of dropdowns in table
Application Type
Reactive
Service Studio Version
11.53.43 (Build 62091)

Hi all,

I am placing dropdown in a table with four different values. when I change the value of one dropdown , remaining dropdown values also getting changed to the latest value.

I checked for the solutions and got the below link 

https://www.outsystems.com/forums/discussion/60682/changing-one-dropdown-at-a-table-changes-all-the-other-ones/

but this did not solve my problem.

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

Which is the variable that is holding the dropdown values?

I think that is happening because the same variable is being used on the other dropdowns. What you should do on the same list that is being consumed on the table you need to add an attribute to your database table that will be consumed on the table list, specifically, that new attribute will be consumed on the dropdown.

UserImage.jpg
Veeresh Kumar

Hi the solution worked for me. Now on change of the dropdown the other dropdown values are not changing. But the challenge what I am facing is after saving in DB values are not getting reflected in the screen if I refresh. Its because I am saving the data in a different table but for the sake of not changing the dropdown values I made the variable of the dropdown to the parent table. Parent table has only questions , in that table I cant store the data. so saving in a different table but data is not getting retained in the dropdown after refresh.

UserImage.jpg
Accelance Partners

Hello,

You can use drop-down widget in block and call this block in table row. 

Thanks,

Sonali Verma

2021-08-12 05-19-40
Shubham Janbandhu

Hi Veeresh Kumar,

I also followed Márcio Carvalho and try this practical.

Attaching oml. It will help you to find difference between holding values.


Hope this helps.

Regards,

Shubham


Demo.oml
2024-09-12 02-43-38
Deepsagar Dubey

Hi @Veeresh Kumar 

The comments mentioned above, i think solve your issue, but just  for simplifying them, like - 

Suppose you have an entity called Product in this entity create one extra attribute i.e. inStock (Boolean Type),

Then when you show records in Table on screen then in dropdown variable GetProducts.current.inStock and create a handler on dropdown onChange event and update the value in your product entity, so next time when you refresh screen it'll show you updated value.

Even you can use this if you joined any entity as you mentioned above.

I hope it'll help you.

Thanks

Deep

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