lotus notes - How do I customize iNotes (forms9_x.nsf) to send an alterered e-mail -
i in process of updating forms9_x.nsf database mimic functionality we've customized notes client. i've added action button e-actions-mailedit menuid (new memo) append value subject field , send new memo. i've got update subject working fine, don't know memo sent. i've tried xxform.submit() error message. here's code in custom_js_lite looks like:
function sendencrypted(sid) { var answer = confirm("this memo sent in encrypted format listed in to, cc , bcc fields. " + "are sure want do?"); var x; if(answer == true){ alert("yes, please encrypt"); // current backend document id var opanelmanager = aaa.fkb(); var scontentid = opanelmanager.edi.get('t').oprev.sid; // 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 " + newsubj); var oform = omaindoc.getelementbyid('e-pageui-' + scontentid); //oform['tmpsendoptions'].value = "1" oform.submit(); alert("document submitted"); } else{ alert("the answer cancel");} return;}
any appreciated.
sandra
oform.submit(); // submit method of form object lower case, code shows ".**s**ubmit()" // should evaluate form object. var oform = omaindoc.getelementbyid('e-pageui-' + scontentid); // display value? window.alert( oform.subject.value );
Comments
Post a Comment