Hello,
We are using SmartClient_80_Pro. I use isc.RPCManager.sendRequest to get the selection list from server, build a value map (javascript associative array), and use setValueMap to set the selection.
The problem with this approach is that the pickList cannot preserve the order of the data items that were passed back from the server. Is there a method similar to the setData in ListGrid for pickList? The setData method in ListGrid preserves the order
Or is there a way we can call setValueMap and make the value map preserve the order of the list coming from the server? I guess there is no way to do it because of data structure has to be javascript associative array, but just wonder if there is any trick that you can suggest.
I know use data source will resolve this, but it will be a bigger change for me, as I'm getting other data from the same isc.RPCManager.sendRequest call.
Thanks!
We are using SmartClient_80_Pro. I use isc.RPCManager.sendRequest to get the selection list from server, build a value map (javascript associative array), and use setValueMap to set the selection.
The problem with this approach is that the pickList cannot preserve the order of the data items that were passed back from the server. Is there a method similar to the setData in ListGrid for pickList? The setData method in ListGrid preserves the order
Or is there a way we can call setValueMap and make the value map preserve the order of the list coming from the server? I guess there is no way to do it because of data structure has to be javascript associative array, but just wonder if there is any trick that you can suggest.
I know use data source will resolve this, but it will be a bigger change for me, as I'm getting other data from the same isc.RPCManager.sendRequest call.
Thanks!
Comment