Hi,
I've encountered a problem in refetching the data for a comboBox/selectItem.
What I have:
2 datasources
- supplierDS - one for main objects (supplierGrid / supplierForm in this case)
- supplierComboDS - one for the comboBox/selectItem as optionDatasource
What I want to achive:
When I'm editing the in the main objects to trigger an update on the combox/select field with optionDatasource.
So in the end I want to syncronize the components.
The listgrid/datasource (myGridWithSupplierComboIn) definition for the Combo/SelectItem is like this:
	I tried to refresh the combo dataset this way:
	and got "myGridWithSupplierComboIn.getField('supplier_id').fetchData not a function"
Thanks in advance,
John
					I've encountered a problem in refetching the data for a comboBox/selectItem.
What I have:
2 datasources
- supplierDS - one for main objects (supplierGrid / supplierForm in this case)
- supplierComboDS - one for the comboBox/selectItem as optionDatasource
What I want to achive:
When I'm editing the in the main objects to trigger an update on the combox/select field with optionDatasource.
So in the end I want to syncronize the components.
The listgrid/datasource (myGridWithSupplierComboIn) definition for the Combo/SelectItem is like this:
Code:
	
	        {name:"supplier_id", title:"Furnizor", required:true,
             filterEditorType: "ComboBoxItem",
             editorType:"SelectItem",                          
             optionDataSource:"supplierComboDS",
             valueField:"supplier_id", displayField:"supplier_name",
             filterFields:["supplier_name","supplier_code"],
             pickListWidth:250,   
             filterEditorProperties: {
               fetchMissingValues: false,               
               valueField:"supplier_id", displayField:"supplier_name",         
               filterFields:["supplier_name","supplier_code"]
             },
             pickListFields: [             
             {name:"supplier_code",title:"Cod", width:60},
             {name:"supplier_name",title:"Furnizor"}
          ]             
        },
Code:
	
	myGridWithSupplierComboIn.getField('supplier_id').fetchData();
Thanks in advance,
John
