Hi,
for a few week we're using smartclient version 9.0 and recently i've tried to
use your new read only feature for the formItems. Sadly i've found a bug.
I've created a form with three formItems, of the types text, boolean and date. The "readOnlyDisplay" attribute of each formItem was set to "static".
If the Form is not editable from the begin, it's not possible to make the form editable again. The formItems remain as static text. You'll see the example code below
I've tested this with todays build of smartclient version 9.0
Regards
Marcus
for a few week we're using smartclient version 9.0 and recently i've tried to
use your new read only feature for the formItems. Sadly i've found a bug.
I've created a form with three formItems, of the types text, boolean and date. The "readOnlyDisplay" attribute of each formItem was set to "static".
If the Form is not editable from the begin, it's not possible to make the form editable again. The formItems remain as static text. You'll see the example code below
Code:
sc.DynamicForm.create( { "ID":"form", "autoFocus":true, "selectOnFocus":true, "canEdit":false, "fields": [ {"name":"textItem", "title":"Text", "type":"text", "readOnlyDisplay":"static"}, {"name":"checkBoxItem", "title":"Boolean", "type":"boolean", "readOnlyDisplay":"static"}, {"name":"dateItem", "title":"Date", "type":"date", "useTextField": true, "readOnlyDisplay":"static"}, ], "values": { "textItem":"Text", "checkBoxItem": true, "dateItem": new Date() } } ); isc.Button.create( { title: "change", left: 10, top: 200, click: function() {console.log(form.canEdit);console.log(!form.canEdit); form.setCanEdit(!form.canEdit);form.markForRedraw();} });
Regards
Marcus
Comment