Hi,
I've implemented an Admin Extension that adds a new Tab to the Zimbra Account panel - ZaAccountXFormView. I added a new LDAP schema to Zimbra, added new LDAP objects to Zimbra accounts and mapped the new fields with that objects and all is working well - data is stored and retrieved correctly.
But after doing all that, now I would like to get access to Account data within the ZaAccountXFormView panel but I couldn't find any documentation explaining how to achieve this.
Basically what I would like to do is to set textfield edition enabled / disabled depending on the value of one property. Something like:
"
if( ZaTabView.XFormModifiers["ZaAccountXFormView"] ) {
my_extension_ext.AccountXFormModifier = function (xFormObject, entry) {
if(ZaTabView.isTAB_ENABLED(entry,ZaAccountXFormVie w.PERSON_TAB_ATTRS, ZaAccountXFormView.PERSON_TAB_RIGHTS)) {
...
...
if( accountx.propertyy == "" )
enable_edition_on_fieldx; <- this would be the definition of the items to display
else
disable_edition_on_fieldx;
...
...
"
This seemed, at first, some trivial thing to do but I couldn't get this to work so far.
If someone could give me a hand on this I would surely appreciated.


LinkBack URL
About LinkBacks

