When you create DynamicForm with field which is 'canEdit:false' but icon is 'neverDisable:true' single click doesn't work. Interesting is that doubleClick still get through.
For us is important to have fields which are 'readOnly' but have icons for opening additional dialog or detail. How to achieve this? Try following sample:
Single click don't work. Double click is OK. That's not way how it's documented and very impractical.
Responsible for this is additional code introduced in 8.2 in DynamicForm.js on line 7141:
For us is important to have fields which are 'readOnly' but have icons for opening additional dialog or detail. How to achieve this? Try following sample:
Code:
isc.DynamicForm.create({ width: 200, fields : [ {name: "severityLevel", title: "Severity Level", canEdit: false, type: "staticText", defaultValue: "Severity 2", icons: [{ src: "other/help.png", click: "isc.say('Some text')", neverDisable: true }] } ] });
Responsible for this is additional code introduced in 8.2 in DynamicForm.js on line 7141:
Code:
if (item.isReadOnly()) return this.Super("handleClick", arguments);
Comment