Hi,
We observe two issues from the following standalone. We are using SmartClient v8.3p_2014-10-23 build in IE9.
Issue1: There's a misalignment in the "Ship from" SelectItem. It works fine in earlier build (SmartClient v8.3p_2014-01-24 and SmartClient v9.1p_2014-04-08). Introducing the html5 doctype will resolve this misalignment issue but for some previous complex reasons we are not able to apply it to IE9.
Issue2: Right double click the "Ship to" or "Ship from" field before putting the focus to it.It seems the first right click doesn't put focus on the clicked field so "this.getFocusItem()" in the rightMouseDown event returns null. Therefore, we cannot copy the value of the clicked field to the system clipboard. This behavior works fine on SmartClient v9.1p_2014-09-16 build.
Thanks!
Robin
We observe two issues from the following standalone. We are using SmartClient v8.3p_2014-10-23 build in IE9.
Issue1: There's a misalignment in the "Ship from" SelectItem. It works fine in earlier build (SmartClient v8.3p_2014-01-24 and SmartClient v9.1p_2014-04-08). Introducing the html5 doctype will resolve this misalignment issue but for some previous complex reasons we are not able to apply it to IE9.
Issue2: Right double click the "Ship to" or "Ship from" field before putting the focus to it.It seems the first right click doesn't put focus on the clicked field so "this.getFocusItem()" in the rightMouseDown event returns null. Therefore, we cannot copy the value of the clicked field to the system clipboard. This behavior works fine on SmartClient v9.1p_2014-09-16 build.
Thanks!
Robin
Code:
isc.DynamicForm.create({
width: 500,
showEdges: true,
showContextMenu: function() {return false;},
rightMouseDown: function() {
if(isc.EventHandler.isDoubleClick() && window.clipboardData) {
if (this.getFocusItem()!= null && this.getFocusItem().getValue() != null) {
window.clipboardData.setData("Text", this.getFocusItem().getValue());
pasteField.setValue(window.clipboardData.getData("Text"));
}
}},
fields: [
{allowEmptyValue: true, title: "Ship to", type: "ComboBoxItem", valueMap: ["A","B"], defaultValue: "B"},
{allowEmptyValue: true, title: "Ship from", type:"select", valueMap:["A","B"], defaultValue: "A"},
{title: "Paste", ID: "pasteField", disabled: true}
]
});