It looks like the problem is in the tab definition. You have
var myTab = [
{type:_SWITCH_, items:[
{type:_CASE_, relevant: ("instance[ZaModel.currentTab] == " + myTabIndex),
items:[
{ ref: ZaDomain.A_domainName, type:_OUTPUT_,
label:ZaMsg.Domain_DomainName
},
{ ref: ZaDomain.A_notes, type:_TEXTAREA_,
label:"Texto Devel", labelCssStyle:"vertical-align:top", width:250
}
]
}
]
}
];
but you should have:
var myTab = {type:_CASE_, relevant: ("instance[ZaModel.currentTab] == " + myTabIndex),
items:[
{ ref: ZaDomain.A_domainName, type:_OUTPUT_,
label:ZaMsg.Domain_DomainName
},
{ ref: ZaDomain.A_notes, type:_TEXTAREA_,
label:"Texto Devel", labelCssStyle:"vertical-align:top", width:250
}
]
};
because items array and SWITCH element are already defined in the original form in ZaDomainXFormView, and your extension only needs to add one more tab. |