I have a SelectItem which has an optionDataSource with paging support.
When I call SelectItem.setValue(theValue) to set a value, I need to fetch the display field from the datasource (otherwise the value field will be used as the display which is not what I want).
I have used setFetchMissingValues(true), and the fetch operation is triggered in the datasource when I call setValue. But I don't know how to get the value field (theValue) I used in the setValue method (which I will use as ID to query the database for the display value).
Is theValue contained in the DSRequest?
The problem is quite like the following thread: http://forums.smartclient.com/showthread.php?t=15134
But my datasource has paging support, so I need to know the value field to fetch the specific record.
I hope I've explained myself clearly. Please tell me if there is anything unclear.
SmartGWT2.1
When I call SelectItem.setValue(theValue) to set a value, I need to fetch the display field from the datasource (otherwise the value field will be used as the display which is not what I want).
I have used setFetchMissingValues(true), and the fetch operation is triggered in the datasource when I call setValue. But I don't know how to get the value field (theValue) I used in the setValue method (which I will use as ID to query the database for the display value).
Is theValue contained in the DSRequest?
The problem is quite like the following thread: http://forums.smartclient.com/showthread.php?t=15134
But my datasource has paging support, so I need to know the value field to fetch the specific record.
I hope I've explained myself clearly. Please tell me if there is anything unclear.
SmartGWT2.1