The combobox
Problem solving

If you have a combobox that looses it's set value after a short while, or is not set correctly when you open the page, it's usually due to that you don't have the already selected value in the collection. Always remember to add the current value of the attribute to the selection collection.

And, if you think that you have the current value is already in the collection, check that the collection you are using is not "stable" over time. That is, the collection might look the same, but it's actually reconstructed and therefore new objects. Comboboxes work with objects, not values. If the list is known and stable over time, have one created for the ecospace and reuse it as long as possible. Might even be best to store it in the DB.

This page was edited 84 days ago on 02/10/2024. What links here