View Single Post
  #2 (permalink)  
Old 11-20-2007, 02:34 PM
Greg Greg is offline
Zimbra Employee
 
Posts: 123
Default

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.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
P.S.: don't forget to vote on this bug
add Samba LDAP entries to Exchange Migration Tool
Reply With Quote