Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

combobox Bug

$
0
0
I'm running into an issue with the comboBox. The issue is when you click on the combox it queries the server and creates the list of values to choose from. When you choose an item the javascript runs another query to the server (for some reason) to get the information about the same record in the list. (Note: The UI already had this information and the extra query probably shouldn't happen, but that's not the main problem.) The issues is in that request uses the displayField as the column to filter by and the valueField as the value for the displayField.

Example: Based on the sample code below it will send via GET the column: "name" and the value 843. It needs to send the column "individual_ID" with the value 843.

So when this happens the server obviously returns no results and the UI does nothing and never calls the changed function.

This is happening in version 10.0 (last night build). Version 9.x has no issues.

isc.DynamicForm.create({
items:[
{name: "individual_ID", wrapTitle:false, title: 'To Do List', required: true, type: "comboBox", optionDataSource: toDoDS, valueField: 'individual_ID', displayField: 'name', changed: function(form, item, value){
// do something here.
}}
]
});

Viewing all articles
Browse latest Browse all 4756

Trending Articles