It looks like you could create some sort of function in your CognosScript macro that will do this for you. It should not be much more difficult than the explanation you have already given.
In your Send button Code, put the following:
'-------Start of Code-----------------------
Dim objGroupwise as object
Dim objGWaccount as object
Dim objGWmessage as object
Dim objGWrecipient as object
'Dim objGWCC as object
'Dim objGWattachment as object
'only use CC and attachment if you...
You would want to create a for loop in your macro and then execute the line:
Set ImpRep = ImpApp.OpenReport (ImpRepPath & ImpDoc & ".imr", Prompt1)
Using this, you would only have to enter the Prompt1 information one time, and can send it to the report as many times as you need to (the...
Option Explicit
Declare Sub Email(Subject$, SendTo$, Body$, Attach$)
Dim objGroupwise as Object
Dim objGWaccount as Object
Dim objGWmessage as Object
Dim objGWrecipient as Object
Dim objGWattachment as Object
Sub Main()
call Email(something,name,text,attachment)
'Call email function...
I have the same type of problem. When I run my macro manually, it is strait butter. When I had it scheduled to run this morning at 5:00 am, it was still sitting there when I showed up to work. I think the problem has to do with impromptu having to be on the screen and be the active...
I wasn't able to do exactly what you are looking for, but I did come close. What I did was enter the email addresses in a String, separating them by commas(you could use semicolons, or whatever you want). I then wrote a subroutine to split the string into an array of names that the email...
Did you end up finding a way to add more than one recipient without calling the send_email function each time or adding a new line to the function for each new recipient? I've tried doing the same thing, using info from the novell page, but I still haven't got anything to work.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.