Hi, we are using Smartclient 6.51 Smallvendor and have following problem:
We have a Listgrid which have a select field with optiondatasource. Data in the listgrid is loaded on dependent select from another listgrid. The OptionDatasource have a diplayField and an ValueField. On fetch operation the valueField is send to he client via xml. This wrks fine, but the displayValue is not displayed. After start editing the selected row the optiondatasource ist fetching new records and we can select them in the select field. After endEditing data is saved and then the displayValue is shown correct for this row. When we select another item from the depenent listgrid the new data ist loaded, but the optiondatasource needs to load specific data for the new selection (the new data for select Field totally differs from the other selection). Unfortunately this don't work. Perhaps we need to call invalidateCache on optiondatasource to force reload and display the new displayFields.
This is the select Field:
I hope you could help us with this problem.
Thanks in advance
We have a Listgrid which have a select field with optiondatasource. Data in the listgrid is loaded on dependent select from another listgrid. The OptionDatasource have a diplayField and an ValueField. On fetch operation the valueField is send to he client via xml. This wrks fine, but the displayValue is not displayed. After start editing the selected row the optiondatasource ist fetching new records and we can select them in the select field. After endEditing data is saved and then the displayValue is shown correct for this row. When we select another item from the depenent listgrid the new data ist loaded, but the optiondatasource needs to load specific data for the new selection (the new data for select Field totally differs from the other selection). Unfortunately this don't work. Perhaps we need to call invalidateCache on optiondatasource to force reload and display the new displayFields.
This is the select Field:
Code:
name: 'sheet',type:'select', title:'sheet', width:100, frozen:true, valueField: 'id', displayField: 'sheetname', pickListFields:[{name: 'sheetname'}], filterWithValue: false, autoFetchDisplayMap:true, fetchMissingValues: true,optionDataSource: mydatasource
Thanks in advance
Comment