CSDN博客

img chenyg2000

检测iNotes的新邮件数目

发表于2004/11/2 13:55:00  707人阅读

分类: Lotus BS

1、代码
mailDB = “/mail/admin.nsf“;
oXml  = new ActiveXObject("Microsoft.XMLDOM");
oXml.async = false;
oXml.load(mailDB + "/iNotes/Proxy/?OpenDocument&Form=s_ReadViewEntries&PresetFields=FolderName;($Inbox)&Start=1&Count=-1");

oXsl = new ActiveXObject("Microsoft.XMLDOM");
oXsl.async = false;
oXsl.load("/jszx/WorkFlow/data/APPSystemAlteration.nsf/(bbb)?ReadForm");

strRet = oXml.transformNode(oXsl);

oCounterXml = new ActiveXObject("Microsoft.XMLDOM");
oCounterXml.async = false;
oCounterXml.loadXML(strRet);

counterNode = oCounterXml.selectSingleNode("UnreadMailCounter");

alert(counterNode.text);
2、表单(bbb)设置属性“将表单内容作为HTML”,其内容如下:
<?xml version="1.0" encoding="gb2312" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"/>
<xsl:template match="/">
 <xsl:element name="UnreadMailCounter">
  <xsl:value-of select="count(//viewentry/@unread)" />
 </xsl:element>
</xsl:template>
</xsl:stylesheet>

阅读全文
0 0

相关文章推荐

img
取 消
img