0
我试图通过使用getDocumentByUNID函数来输入一个笔记文档。运行以下代码剪切输出错误:使用getDocumentByKey:'未定义'不是函数
var unid = (function() {
for (var x in e.row.children) {
if (e.row.children[x].content == "id") {
return e.row.children[x].text;
}
}
})();
if (!unid) {
YN.exception("Function displayGeraet: Document ID could not be found!");
} else {
var Geraete_db = app.notes_db_geraete;
YN.log("Unid: "+unid); //Output: Unid: 22EC92ED5AF33138C1257BA30053E753
YN.log("URL: "+Geraete_db.baseURL); //Output: URL: http://MT04.wd.isernhagen/HKMT/Ticket/Geraete.nsf
var Geraete_doc = Geraete_db.getDocumentbyUNID(unid); //EXCEPTION: openGeraet, TypeError: 'undefined' is not a function (evaluating 'db.getDocumentbyUNID(unid)')
任何建议我失踪了?
谢谢你,朱利安。这就是诀窍!为了您的信息:我复制了wiki中的代码: http://youatnotes.com/web/youatnotes/wiki-dtg.nsf/dx/NotesDocument 代码示例以小写字母写在那里。 – user2902118
感谢关于wiki的提示,现在错字已经修复。请不要忘记投票给我的回答:) –