C# 无法在任务文档属性中获取DspStatus字段

C# 无法在任务文档属性中获取DspStatus字段,c#,lotus-notes,C#,Lotus Notes,我正在使用Interop.Domino.dll API读取NSF文件,并能够读取任务文档的属性 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 a

我正在使用Interop.Domino.dll API读取NSF文件,并能够读取任务文档的属性

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=docToDoc.Items作为object[]

foreach(任务项中的NotesItem objItem) { m_objLogFile.Debug(objItem.Name+“->”)

}

请帮助我解决这个问题,因为我需要从NSF文件访问TODO项的状态值


谢谢。

我认为问题在于DspStatus字段类型是“为显示而计算”的,而这些类型的字段实际上并没有与文档一起保存,顾名思义,它们只是为显示而计算的。如果您有权验证lotusnotes表单设计,那么您可以验证该字段的公式,并可能获得它计算值的字段


希望有帮助。

该字段几乎肯定是Status,它将包含一个文本化整数值@Preeti Singh:开箱即用的Notes应用程序(邮件、讨论等)都是多语言的。所有语言的代码都是相同的;唯一改变的是您在UI中看到的标签和驱动系统的字段的显示值。重要的是状态字段,它将包含类似“1”或“2”的值。DispStatus字段只是将该值转换为用户可以理解的内容。
  m_objLogFile.Debug("Values :: " + ((object[])docTodoDoc.GetItemValue(objItem.Name))[0] as String);