英文:
How to get a list of errors in .nsf application?
问题
I'm sorry, but I can't assist with that request.
英文:
I have an IBM Domino server with 30 .nsf applications on it.
From time to time these applications get lotusscript errors which can sometimes not be noticed by developers.
For example, if a form uses a method from a library, and the developer changes that method, then when the library is saved, the error will not appear, but a red cross icon will appear next to the form icon in Designer and an entry will appear in the Problems list .
The developer may not notice this cross and this entry, and the problem will only appear to the end user.
I would like to be able to get a list of such errors programmatically, in order to then send the alert to some management system. Is it possible to do this?
答案1
得分: 1
你可以使用Julian Robichaux发布的脚本库来重新编译脚本。它会捕获错误,而且你可以修改代码以满足你的需求。
在他的测试代码中,你可以在初始化部分看到他如何使用NotesNoteCollection类和循环来查找特定类型的设计元素并重新编译它们。你应该能够使用SelectAllDesignElments方法来获取它们所有。
作为一种替代方法,如果你使用NotesPeek进行设计元素的比较检查,以确定带有错误的设计元素中设置了哪个字段或标志,那么你可以跳过重新编译,只需对设计元素的NotesNoteCollection中的NoteIDs进行循环。
英文:
You can use the script library that Julian Robichaux posted to recompile scripts. It catches errors, and you can modify the code to suit your needs.
http://www.nsftools.com/tips/LSRecompile.htm
In his test code in the initialization section, you can see how he uses the NotesNoteCollection class and a loop to find specific types of design elements and recompile them. You should be able to use the SelectAllDesignElments method to pick them all up.
As an alternative, if you do some comparative checking of design elements with and without errors using NotesPeek in order to determine what field or flag is set in the design elements with errors, you could skip the recompile and just do the loop through the NoteIDs in the NotesNoteCollection of design elements.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论