Hello,
We are using SmartClient version 70rc2. After calling SelectItem.setValueMap(), the dropdown doesn't show the selection. It can show the default selection, but the selection list is empty. Is this a bug or something I missed? Here is a simple test case:
<HTML><HEAD>
<SCRIPT>var isomorphicDir="../isomorphic/";</SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Core.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Containers.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Grids.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Forms.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
<SCRIPT SRC=../isomorphic/skins/TreeFrog/load_skin.js></SCRIPT>
</HEAD><BODY>
<SCRIPT>
isc.DynamicForm.create({
width:650,
colWidths:[130,'*'],
cellPadding:2,
cellBorder:0,
numCols:6,
ID:"ctIndustrySegmentForm",
titleOrientation:"left",
fields: [
{name: "portfolios",
colSpan:2,
displayField:"portfolio_name",
ID:"portfolios",
title:"Portfolios",
defaultToFirstOption:true,
type:"select",
width:190,
changed : function() {
},
dataArrived : function () {
}
}
]
});
portfolios.setValueMap({a:"A test", b:"B test"});
</SCRIPT>
</BODY></HTML>
Thanks!
We are using SmartClient version 70rc2. After calling SelectItem.setValueMap(), the dropdown doesn't show the selection. It can show the default selection, but the selection list is empty. Is this a bug or something I missed? Here is a simple test case:
<HTML><HEAD>
<SCRIPT>var isomorphicDir="../isomorphic/";</SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Core.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Containers.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Grids.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_Forms.js></SCRIPT>
<SCRIPT SRC=../isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
<SCRIPT SRC=../isomorphic/skins/TreeFrog/load_skin.js></SCRIPT>
</HEAD><BODY>
<SCRIPT>
isc.DynamicForm.create({
width:650,
colWidths:[130,'*'],
cellPadding:2,
cellBorder:0,
numCols:6,
ID:"ctIndustrySegmentForm",
titleOrientation:"left",
fields: [
{name: "portfolios",
colSpan:2,
displayField:"portfolio_name",
ID:"portfolios",
title:"Portfolios",
defaultToFirstOption:true,
type:"select",
width:190,
changed : function() {
},
dataArrived : function () {
}
}
]
});
portfolios.setValueMap({a:"A test", b:"B test"});
</SCRIPT>
</BODY></HTML>
Thanks!
Comment