[Openroad-users] Using a Lotus NotesSession in OpenRaod

cpszallies at mmm.com cpszallies at mmm.com
Thu Feb 14 02:03:18 EST 2008


Hi all,

I want to create a Lotus Notes Memo out of OpenRoad. Therefore I need to 
get the MailServer and MailFile from the Notes.ini.
I tried using following script

DECLARE 
        subject_line          email_address         text          
        MailServer            MailFile      
        notessession              notesuiworkspace          notesuidocument    
ENDDECLARE 

BEGIN 

END; 

on click mail_bf declare

enddeclare

begin

  text 
  MailServer   MailFile   
  subject_line   email_address 
  notesUIWorkspace.OpenDatabase( MailServer, MailFile, , , 0, 0 );

  notesuidocument 'Memo',,);

  notesuidocument.fieldsettext('Entersendto',email_address);
  notesuidocument.fieldsettext('subject', subject_line);
  notesuidocument.fieldsettext('Body', text);

end;


But invoking the NotesSession.GetEnvironmentString method returns no value 
allthough these values are provided in the Notes.ini.
And I am not even able to examine the attributes of the declared 
NotesSession while in debug mode. If I try so the following error appears 
in the OpenRoad Trace Window and w4gl.log

E_WT0029 Error at line 1076 of scriptwin.


E_WT006D The invocation of an external object method failed.
    The method 'classname' for source '<missing>' returned an error code 
of
    -2147352573 and the error message: 
 '<missing>'

Any help would be very appreciated.

Kind regards
Christoph Szallies
3M Deutschland GmbH
Carl-Schurz-Str. 1
D-41453 Neuss
Information Technology, NADS
Tel:  +49 (0) 2131 14 2825       Triminet 444 2825
Fax:  +49 (0) 2131 14 12 2825

3M Deutschland GmbH
Sitz: 41453 Neuss; Handelsregister: B 1878 Amtsgericht Neuss
Geschäftsführer: Jürgen Jaworski; Josef Mrozek; Theo Nöcker; Kurt-Henning
Wiethoff
Managing Director: Kurt-Henning Wiethoff; Vorsitzender des Aufsichtsrates:
Reinhold Hiersemann

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.peerlessit.com/pipermail/openroad-users/attachments/20080213/620189c8/attachment.html 


More information about the Openroad-users mailing list