Trying to add a valueMap dynamically through the formItem method. It works fine - but it displays items as [object Object]. Did I pass the array format wrong?
<code>
var myForm= isc.DynamicForm.create({
width: 500,
numCols: 4,
fields : [{
name: "bugStatus", title: "Bug Status",
editorType: "comboBox"}]
});
var field = myForm.getField("bugStatus") ;
field.setValueMap( [ {"new" : "New"},{"active" : "Active"}] ) ;
</code>
<code>
var myForm= isc.DynamicForm.create({
width: 500,
numCols: 4,
fields : [{
name: "bugStatus", title: "Bug Status",
editorType: "comboBox"}]
});
var field = myForm.getField("bugStatus") ;
field.setValueMap( [ {"new" : "New"},{"active" : "Active"}] ) ;
</code>
Comment