• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
I think she's lovely. It's this tiny ad that called her crazy:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic