dorado7.x根据一个下拉选项,设置另外一个下拉readOnly或者visible属性

根据一个下拉选项,设置另外一个下拉readOnly或者visible属性。

在datatype对应字段的onset设置:

var type=arg.newValue;
if(isEmpty(type) || type== 1){
    view.get("#aType").set("visible",true);

    //或者 view.get("#aType").set("readOnly",true);
}else{
        view.get("#aType").set("visible",false);
}

另外,可以设置groupbox的收起,展开,如下:

view.get("#groupBox2").set("collapsed", true);

猜你喜欢

转载自blog.csdn.net/chlx2008/article/details/84777558