Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 21-Jul-2009, 09:16 AM
Junior Member
 
Join Date: Jul 2009
Posts: 5
novelltry 0 reputation points
Default Re: OpenItem with VBScript - Problem

Originally Posted by novelltry View Post
Hello,

I am trying to open an email from a VBScript.

Here is the actual code snippet:

Code:
Set oApp = CreateObject("NovellGroupWareSession")
Set oAcct = oApp.Login(strGwLoginName, "", "novell")

Set GWDDE = CreateObject("GroupwiseCommander")
Set sResult = nothing
'Message Id is from a SOAP request. Is here the problem?
GWDDE.Execute "ItemOpen (""""4A5EE77A.GWDom.GWPO.100.1766576.1.5F.1@1:4A5DB4D8.GWDom.GWPO.100.1766576.1.39.1@35"""", """"Test"""")",""

'executing NewMail works fine!
'GWDDE.Execute "NewMail()", ""
The problem is that when I am trying to open the item nothing happens.
Calling the NewMail method works very well. Then a new mail window appears.

Any help would be appreciated.
Ok, I have solved one problem. I am now able to open a mail object.

Code:
Set oApp = CreateObject("NovellGroupWareSession")
Set oAcct = oApp.Login(strGwLoginName, "", "novell")

Set GWDDE = CreateObject("GroupwiseCommander")
Set sResult = nothing
'Message Id is from a SOAP request. Is here the problem?
GWDDE.Execute "ItemOpen (""""4A5EE77A.GWDom.GWPO.100.1766576.1.5F.1@1:4A5DB4D8.GWDom.GWPO.100.1766576.1.39.1@35"""", """"Test"""")",""
' Opens the item in a popup
GWDDE.Execute "ViewItem ()",""
But when I try to open another different mail object it still opens the old one.
This is confusing. Do I have to reset the view or something?
Any help is appreciated again :)
Thank you.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 08:47 AM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2