Good morning,
I'm using actually smartclient version 13.0-p20230720 power. I have a problem with an object type that I have been used already with smatclient version 10.0-p20150415.
The object is a ComboBoxItem which has the ability to filter the content.
isc.DynamicForm.create({
ID: "form",
width: 620,
colWidths: [190, "*"],
fields : [{
name: "itemComb",
title: "ComboBox",
displayField: "code",
valueField: "id",
addUnknowValues: false,
formatOnBlur: true,
formatValue: function (value, record, form, item) {
var selectedRecord = item.getSelectedRecord();
if (selectedRecord != null) {
return selectedRecord.code + " - " + selectedRecord.descr;
} else {
return value;
}
},
formatEditorValue: function (value, record, form, item){
var selectedRecord = item.getSelectedRecord();
if (selectedRecord != null) {
return selectedRecord.code + " - " + selectedRecord.descr;
} else {
return value;
}
},
sortField: "code",
pickListWidth: 200,
pickListFields: [
{
name: "code",
formatCellValue: function (value, record) {
return record.code + " - " + record.descr;
}
}
],
editorType: "ComboBoxItem",
optionDataSource: "ComboDyn",
wrapTitle: false,
width: 200,
valueMap: {
43: '00001 - INDICE',
44: '90000 - 90.000 CODES',
45: 'A0000 - STANDARD'
}
}]
});
Datasource is:
<DataSource
dropExtraFields="true"
ID="ComboDyn"
serverType="generic">
<fields>
<field name="id" hidden="true" canEdit="false" required="false" type="text" autoGenerated="true" primaryKey="true"></field>
<field name="code" canEdit="false" type="text" ></field>
<field name="descr" canEdit="false" type="text" ></field>
</fields>
<serverObject lookupStyle="spring" bean="ComboDynDMI" className="..."/>
</DataSource>
In version 10.0-p20150415 this object correctly filter by code instead in version 13.0-p20230720 power the filter works incorrectly for id.
Could you please help me with this problem.
Thanks for any help.
I'm using actually smartclient version 13.0-p20230720 power. I have a problem with an object type that I have been used already with smatclient version 10.0-p20150415.
The object is a ComboBoxItem which has the ability to filter the content.
isc.DynamicForm.create({
ID: "form",
width: 620,
colWidths: [190, "*"],
fields : [{
name: "itemComb",
title: "ComboBox",
displayField: "code",
valueField: "id",
addUnknowValues: false,
formatOnBlur: true,
formatValue: function (value, record, form, item) {
var selectedRecord = item.getSelectedRecord();
if (selectedRecord != null) {
return selectedRecord.code + " - " + selectedRecord.descr;
} else {
return value;
}
},
formatEditorValue: function (value, record, form, item){
var selectedRecord = item.getSelectedRecord();
if (selectedRecord != null) {
return selectedRecord.code + " - " + selectedRecord.descr;
} else {
return value;
}
},
sortField: "code",
pickListWidth: 200,
pickListFields: [
{
name: "code",
formatCellValue: function (value, record) {
return record.code + " - " + record.descr;
}
}
],
editorType: "ComboBoxItem",
optionDataSource: "ComboDyn",
wrapTitle: false,
width: 200,
valueMap: {
43: '00001 - INDICE',
44: '90000 - 90.000 CODES',
45: 'A0000 - STANDARD'
}
}]
});
Datasource is:
<DataSource
dropExtraFields="true"
ID="ComboDyn"
serverType="generic">
<fields>
<field name="id" hidden="true" canEdit="false" required="false" type="text" autoGenerated="true" primaryKey="true"></field>
<field name="code" canEdit="false" type="text" ></field>
<field name="descr" canEdit="false" type="text" ></field>
</fields>
<serverObject lookupStyle="spring" bean="ComboDynDMI" className="..."/>
</DataSource>
In version 10.0-p20150415 this object correctly filter by code instead in version 13.0-p20230720 power the filter works incorrectly for id.
Could you please help me with this problem.
Thanks for any help.
Comment