来自 Domino Web Access 的 XML阅读查看条目
我正在使用 Domino Web Access 访问 Notes 服务器版本 8.5 并检索 XML 格式的日历数据。这本身不是问题,但我对结果有点问题。我的 Notes url 看起来像这样
http://<server>/mail/<user>.nsf/$Calendar?ReadViewEntries
,生成的 XML 可能看起来像这样:
<viewentries toplevelentries="1">
<viewentry position="1" unid="8EC793F198E10F9A4125E824003E8152" noteid="92A" siblings="1">
<entrydata columnnumber="0" name="$134">
<datetime>20110126T100000,00+01</datetime>
</entrydata>
<entrydata columnnumber="1" name="$149">
<number>158</number>
</entrydata>
<entrydata columnnumber="2" name="$144">
<datetime>20110126T100000,00+01</datetime>
</entrydata>
<entrydata columnnumber="3" name="$145">
<text>-</text>
</entrydata>
<entrydata columnnumber="4" name="$146">
<datetime>20110126T110000,00+01</datetime>
</entrydata>
<entrydata columnnumber="5" name="$147">
<textlist>
<text>En lille nisse rejste</text>
</textlist>
</entrydata>
</viewentry>
</viewentries>
有没有办法找出实际的列名称而不是像 $134、$149 这样的名称?我用谷歌搜索了这个,并看到了许多带有这些符号名称的示例,但只有少数具有正确的列名称。 XML 的其余部分当然没有问题。
如果这是一个微不足道的问题,请原谅我 - 我是 Notes 世界的新手。
- 都灵
I am using Domino Web Access to access a Notes server version 8.5 and retrieve calendar data in XML format. That in itself is not a problem, but i'm having a bit of a problem with the results. My url to Notes looks like
http://<server>/mail/<user>.nsf/$Calendar?ReadViewEntries
and the resulting XML might look like this:
<viewentries toplevelentries="1">
<viewentry position="1" unid="8EC793F198E10F9A4125E824003E8152" noteid="92A" siblings="1">
<entrydata columnnumber="0" name="$134">
<datetime>20110126T100000,00+01</datetime>
</entrydata>
<entrydata columnnumber="1" name="$149">
<number>158</number>
</entrydata>
<entrydata columnnumber="2" name="$144">
<datetime>20110126T100000,00+01</datetime>
</entrydata>
<entrydata columnnumber="3" name="$145">
<text>-</text>
</entrydata>
<entrydata columnnumber="4" name="$146">
<datetime>20110126T110000,00+01</datetime>
</entrydata>
<entrydata columnnumber="5" name="$147">
<textlist>
<text>En lille nisse rejste</text>
</textlist>
</entrydata>
</viewentry>
</viewentries>
Is there a way to find out the actual column names instead of namess like $134, $149? I've googled for this and have seen many examples with these symbolic names, but only a few with proper column names. The rest of the XML is of course no problem.
Forgive me if this is a trivial question - I'm a complete novice in the world of Notes.
- turino
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
还有另一个(不支持/未记录?)url 命令
?ReadDesign
,它将返回视图设计的Domino XML。这包括列标题以及每列的编程名称。There is another (unsupported/undocumented?) url command
?ReadDesign
that will return the Domino XML for the view's design. This includes the column titles as well as the programmatic name for each column.我认为这是视图列的编程名称。您可以在视图属性的最后一个选项卡中更改它。
I think that is the programmatic name of the view column. You can change that in the last tab of the view properties.
如果列包含字段,则字段名称将用作列的名称,并可在 ReadViewEntries XML 的 name="" 属性中找到。如果视图列有公式,Domino Designer 会生成一个与您指定的名称类似的唯一名称。设计视图的人可以用其他名称替换 $## 名称,但显然他们在邮件模板设计中没有这样做。
需要注意的一件事是,我过去发现,如果您有一个公式,并且您在列属性的高级选项卡上的名称字段中输入了字段名称,那么该公式将被您指定的字段替换。
If the column contains a field, then the field name is used for the name for the column and is found in the ReadViewEntries XML in the name="" attribute. If the view column has a formula, Domino Designer generates a unique name like the ones you gave. The person designing the view can replace that $## name with something else, but obviously they didn't do that for the mail template design.
One thing to note, I've found in the past that if you have a formula and you put a field name in the name field on the advanced tab of the column properties then the formula will get replaced by the field you specified.