• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Invoking Lotus Notes by JavaScript code

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello guys,
I have wrote the following lines of code for to send a report.
I am using mailItem.HTMLBODY for embedding the HTML content in my mail.


BUt this piece ofcode is not working.

I am getting a TYPE MISMATCH ERROR. PLease help.
I want lotus mail client to invoke where content should be that i have in HTML BODY and want to give to mail id explicitely there only.I just want to open the lotus mail clients.

notesSession = new ActiveXObject('Notes.NotesSession');
notesDatabase = notesSession.GetDatabase("","");
notesDatabase.open();
mailItem = notesDatabase.CreateDocument;
mailItem.Subject="<%= subject%>";
mailItem.To = "";
mailItem.Cc = "";
mailItem.HTMLBody = "<%= session.getAttribute("partone") + accTable + swerapp + swerca + sanityTeam%>";
mailItem.display (0);

 
chetan sisodiya
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is my code below :

var notesDatabase;
var notesSessiona;
notesSessiona = new ActiveXObject("Notes.NotesSession");
notesDatabase = notesSessiona.GetDatabase("","");
notesDatabase.open();
var mailItem = notesDatabase.createDocument();
mailItem.Subject="hi";
mailItem.To = "";
mailItem.Cc = "";
mailItem.Body = "hi";
mailItem.display (0);


With this script my lotus notes desktop client is opening but I am also getting an error TYPE MISMATCH
Please tell me where I am wrong


Thanks
Chetan
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

In case you are still after an answer (I found your post very useful, thankyou) here is my code, based on yours, that works:

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good Day,

I see this is very useful for me and this was what I was looking for. I would much appreciate if you could advise how to use this javascript code with HTML in it so that like when click on link or button it opens notes etc.

Much appreciated.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic