我正在更新 forms9_x.nsf 数据库以模仿我们为 Notes 客户端定制的一些功能。我在 e-actions-mailedit menuid(新备忘录)中添加了一个操作按钮,该按钮将向主题字段附加一个值,然后发送新备忘录。我已经对主题进行了更新,但工作正常,但不知道该怎么做才能发送备忘录。我试过 xxForm.submit() 但我收到一条错误消息。这是我在 Custom_JS_Lite 中的代码:
function SendEncrypted(sId)
{
var answer = confirm("This memo will be sent in encrypted format to everyone listed in the To, CC and BCC fields. " +
"Are you sure this is what you want to do?");
var x;
if(answer == true){
alert("Yes, please encrypt");
// Get the current backend document ID
var oPanelManager = AAA.Fkb();
var sContentID = oPanelManager.EdI.get('T').oPrev.sId;
// Get the current UI document
var oMainDoc = AAA.EcK;
var subj = oMainDoc.getElementById('e-' + sContentID + '-subject').value;
oMainDoc.getElementById('e-' + sContentID + '-subject').value = "[encrypted] " + subj;
var newsubj = oMainDoc.getElementById('e-' + sContentID + '-subject').value;
alert("The new subject is " + newsubj);
var oForm = oMainDoc.getElementById('e-pageui-' + sContentID);
//oForm['tmpSendOptions'].value = "1"
oForm.Submit();
alert("Document submitted"); }
else{
alert("The answer is cancel");}
return;}
任何帮助将不胜感激。
桑德拉