I have a combobox and I'm setting the value through:
After I set the value I am changing the store of the combobox in such a way that value x no longer exists in the new store. After I do the bind the value of the combobox disappears (I assume because the new store doesn't contain that record). Is there anyway to have the value NOT disappear on changing the store? I want the value to remain even after changing the store.
I hadn't set 'forceSelection' to true, but the setRawValue concept ended up working. By doing setRawValue though I've now a different problem.
I want to make sure that the value and the display value are different (one is numeric while the other is a string). When doing rawValue it changes the val of both the value and rawValue. Is there someway to set the value to one thing and the rawValue to another without overriding each other?
The issue is that they are both using the same table in the DB. If I were to do an 'insert' into the new store it would create a duplicate row in the DB which would not be ideal.
I need 2 stores as each store has a different filter associated with it since I can't just filter a store as filtering a store will automatically update all comboboxes so I need different stores for different filters.
Unless there is a way to insert into a store that has autoSync set to true while forcing it to not sync temporarily (or at all) as I need autoSync to normally be associated. (Basically autoSync needs to be able to continuously pull but to never push data)