Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

DynamicForm with canEdit=false: includeFrom item remains editable

$
0
0
SmartClient Version: v10.0p_2014-10-18/EVAL Development Only (expires 2014.12.17_14.26.18) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)

Chrome on Mac OSX

please try this test case in the showcase, #SQLsqlIncludeFrom sample:
Code:

isc.DynamicForm.create({
    ID:"cityForm",
    dataSource:cityIncludeFromSQL,
    canEdit: false,
    items: [
        { name: "cityName" },
        { name: "countryId" },
        { name: "continent" }
    ]
});

you'll see that the 'continent' FormItem remains editable (in the dataSource it is included from another datasource).

Also, there's another problem related to this field:
if you add canEdit:false to the FormItem, it behaves correctly.
Instead, if you add canEdit="false" to the dataSource.field, the FormItem remains editable.

Viewing all articles
Browse latest Browse all 4756

Trending Articles