SmartClient Version: v10.1p_2016-02-11/Enterprise Development Only (built 2016-02-11)
Chrome on OSX
Hello, please modify the #formatRelatedValue sample like this:
You'll see that showPicker is called only for the comboBox, not for the select.
Also, a call to form.getItem('otherEmployeeName').showPicker() works, while form.getItem('employeeName').showPicker() doesn't show the picker.
Chrome on OSX
Hello, please modify the #formatRelatedValue sample like this:
Code:
isc.DynamicForm.create({ items: [ { name: "employeeName", title: "Employee", optionDataSource: "employees", valueField: "EmployeeId", displayField: "Name", showPicker: function () { isc.logEcho('showPicker') return this.Super("showPicker", arguments); }, pickListFields: [ {name: "Name"}, {name: "Email"} ], width: 250, pickListWidth: 350, formatValue: function (value, record, form, item) { var selectedRecord = item.getSelectedRecord(); if (selectedRecord != null) { return selectedRecord.Name + " (" + selectedRecord.Email + ")"; } else { return value; } } }, { name: "otherEmployeeName", title: "Employee", type: "comboBox", optionDataSource: "employees", valueField: "EmployeeId", displayField: "Name", showPicker: function () { isc.logEcho('showPicker') return this.Super("showPicker", arguments); }, pickListFields: [ {name: "Name"}, {name: "Email"} ], width: 250, pickListWidth: 350, formatOnBlur: true, formatValue: function (value, record, form, item) { var selectedRecord = item.getSelectedRecord(); if (selectedRecord != null) { return selectedRecord.Name + " (" + selectedRecord.Email + ")"; } else { return value; } } } ] });
Also, a call to form.getItem('otherEmployeeName').showPicker() works, while form.getItem('employeeName').showPicker() doesn't show the picker.
Comment