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.
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.
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.
Hello,
You can use drop-down widget in block and call this block in table row.
Thanks,
Sonali Verma
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.
Regards,
Shubham
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