首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将UserProperties保存为XML

将UserProperties保存为XML
EN

Stack Overflow用户
提问于 2013-07-19 15:56:07
回答 1查看 401关注 0票数 0

将用户属性保存到zimlet文件夹中的XML文件时遇到问题。

XML结构:

代码语言:javascript
复制
<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>

应保存属性的函数:

代码语言:javascript
复制
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文件中...

EN

回答 1

Stack Overflow用户

发布于 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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17740908

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档