2010-03-25 26 views
0

我正在使用Interop.Domino.dll API来读取NSF文件并能够读取任务文档的属性。无法获取任务文档属性中的DspStatus字段

When i view the Task Document properties in the Lotus Notes, i am able to view the Status Field, Importance Field and few others, but when i programatically dump all the Field Names and their values i am unable to get few of them as mentioned above. 

So, how to get all the Field Names and their values as i iterate through all the document properties. Is this the problem of IBM Lotus Notes Application or the Domino API ? 

Here is my sample code to iterate the TODO document properties : 

object [] TaskItems = docTodoDoc.Items as object []; (objItem.Name +“ - >”);这个函数可以在任何时候使用,但是不需要使用任何其他的方法来实现这个功能。

m_objLogFile.Debug("Values :: " + ((object[])docTodoDoc.GetItemValue(objItem.Name))[0] as String); 

}

请帮我向你过来这个问题,我需要从NSF文件访问TODO项的状态值。

谢谢。

回答

0

我认为问题是DspStatus字段类型是“Computed for display”,并且这些类型的字段实际上并没有与文档保存在一起,因为它们的名称意味着只为显示计算。如果您有权验证莲花笔记的表单设计,您可以验证该字段的公式,并可能从计算它的估值的字段中获得。

希望有所帮助。

+0

该字段几乎可以肯定状态,它将包含一个特定的整数值。 @Preeti Singh:开箱即用的Notes应用程序(邮件,讨论等)都是多语言的。所有语言的代码都是一样的;唯一改变的是您在UI中看到的标签以及驱动系统的字段的显示值。状态字段是重要的,它将包含像“1”或“2”这样的值。 DispStatus字段只是将该值转换为用户可以理解的内容。 – 2010-09-19 12:13:01

相关问题