Im using SmartClient 8.3 power edition. The default value for a datasourcefield is not loaded while it is in edit mode. It displays empty. The values for that specific field is based on another field 'nodeTypeId' (Dependent select).
<field name="nodeTypeId" title="Node Type" type="CustomSelectItem" length="50" width="150" optionDataSource="comboNodeTypeForNodeProfile" showHover ="true" displayField="name" valueField="nodeTypeId"/>
<field name="primarySoftware" showHover ="true" title="Primary Software*" width="120" type="CustomSelectItem" optionDataSource="comboSoftwareForNodeProfile" displayField="label" valueField="value" required="true" exportData="true">
<getPickListFilterCriteria>
<JS>
function() {
if(this.form != null && this.form.getField('nodeTypeId') != null){
var nodeTypeId = this.form.getField('nodeTypeId').getValue();
return {nodeTypeId: '' + nodeTypeId};
}
}
</JS>
</getPickListFilterCriteria>
</field>
<field name="nodeTypeId" title="Node Type" type="CustomSelectItem" length="50" width="150" optionDataSource="comboNodeTypeForNodeProfile" showHover ="true" displayField="name" valueField="nodeTypeId"/>
<field name="primarySoftware" showHover ="true" title="Primary Software*" width="120" type="CustomSelectItem" optionDataSource="comboSoftwareForNodeProfile" displayField="label" valueField="value" required="true" exportData="true">
<getPickListFilterCriteria>
<JS>
function() {
if(this.form != null && this.form.getField('nodeTypeId') != null){
var nodeTypeId = this.form.getField('nodeTypeId').getValue();
return {nodeTypeId: '' + nodeTypeId};
}
}
</JS>
</getPickListFilterCriteria>
</field>
Comment