将用户属性保存到zimlet文件夹中的XML文件时遇到问题。
XML结构:
<zimlet name="ca_uoguelph_ccs_archive" version="2.0.2" label="Archive" description="Archives emails in the inbox by date.">
<include>ca_uoguelph_ccs_archive.js</include>
<includeCSS>ca_uoguelph_ccs_archive.css</includeCSS>
<handlerObject>ca_uoguelph_ccs_archiveHandlerObject</handlerObject>
<userProperties>
<property type="string" name="archive_mainFolderId" value="" />
<property type="string" name="archive_by_preference" value="y" />
<property type="string" name="archive_auto_enabled" value="false" />
<property type="string" name="archive_auto_last_run" value="" />
<property type="string" name="archive_auto_settings" value="" />
</userProperties>
</zimlet>应保存属性的函数:
CcsArchive.prototype.setArchiveFolderId = function(id) {
if (this.getArchiveFolderId() !== id) {
this.setUserProperty(CcsArchive.CCS_ARCHIVE_FOLDER_ID, id, true);
}
};// (CcsArchive.CCS_ARCHIVE_FOLDER_ID = archive_mainFolderId)
setUserProperty被调用,它没有给出任何错误,但是属性没有保存到xml文件中...
发布于 2013-11-06 02:16:09
你有没有尝试过ZDesktop或Zimbra环境?
我认为问题出在"ModifyPropertiesRequest“soap请求中:http://files.zimbra.com/docs/soap_api/8.0/soapapi-zimbra-doc/api-reference/index.html
在带有ZDesktop的开发模式下,似乎无法正常工作。
我通常使用ZmMetaData来持久化用户信息。
http://files.zimbra.com/docs/zimlet/zcs/8.0.4/jsdocs/symbols/ZmMetaData.html
https://stackoverflow.com/questions/17740908
复制相似问题