I’ve a combobox which has a SQLContainer as its datasource. Everything is fine until one wants to select another item after he has already selected one.
Ok, step by step:
The combobox is rendered and provides a list with the appropriated items from the containersource
The user selects an item
If you want to open the combobox again, you’ll only see a single entry now (however, I guess this point is quite normal because the list is filtered for that particular item)
If you clear the combobox you can’t get the list again
Why does the combobox loose its datascource after the first selection?
Yeah, nothing strange there. What about the filtering? you mention this:
“If you want to open the combobox again, you’ll only see a single entry now (however, I guess this point is quite normal because the list is filtered for that particular item)”
Nah I was just talking about the filter which is provided out of the box (the “you type and shorten the list”-thing). I don’t manipulate this feature in any way.
So you store the container reference in the UI. This is OK, but do you use the same container somewhere else? Some feature are container and not component specific e.g. filtering. So if two components use the same container, and one component filters it, the filtering will apply to the second component too.
Yeah, I’ve taken care of this. Also note, that I provide a unfiltered container (the combobox gets “the whole table”) and that the described usecases’ steps follow immediately after each other (and I don’t take any actions synchronously).
Can you try the exact same use case, but have a separate conatiner just for this combobox? that way we can be sure that the sharing doesn’t impact the behaviour.