Hi, I have a comboboxitem (actually a lot of them) with OptionDataSource that read data from server.
I simply want to have the option to invalidate datasource cache so next time when combo is opened data will be fetched again from server.
!!! 'combobox.getOptionDataSource().invalidateCache()' does't working, why is that?
Log after 'invalidateCache()':
14:34:30.236:INFO:ResultSet:isc_ResultSet_2 (created by: isc_PickListMenu_0):setCriteria: filter criteria unchanged
14:34:30.236:DEBUG:ResultSet:isc_ResultSet_2 (created by: isc_PickListMenu_0):getRange(0, 4) satisfied from cache
* I can't call 'combobox.fetchData()' because i don't want the data to be loaded automatic, only when user interact with combobox.
* I can't override 'getPickListFilterCriteria()' because (in my case) I can't create relationships between datasources. I tried lots of tricks with overriding this method but give me a lot of problems.
1. Is this a BUG?
2. Is there a workaround or another solution to achieve this?
I use SmartGWT Version: 2.2, Ubuntu 9.04
I simply want to have the option to invalidate datasource cache so next time when combo is opened data will be fetched again from server.
!!! 'combobox.getOptionDataSource().invalidateCache()' does't working, why is that?
Log after 'invalidateCache()':
14:34:30.236:INFO:ResultSet:isc_ResultSet_2 (created by: isc_PickListMenu_0):setCriteria: filter criteria unchanged
14:34:30.236:DEBUG:ResultSet:isc_ResultSet_2 (created by: isc_PickListMenu_0):getRange(0, 4) satisfied from cache
* I can't call 'combobox.fetchData()' because i don't want the data to be loaded automatic, only when user interact with combobox.
* I can't override 'getPickListFilterCriteria()' because (in my case) I can't create relationships between datasources. I tried lots of tricks with overriding this method but give me a lot of problems.
1. Is this a BUG?
2. Is there a workaround or another solution to achieve this?
I use SmartGWT Version: 2.2, Ubuntu 9.04
Comment