I'm working on developing this multi-use emailer for our company apps. One of the most recent things i implemented was a com object for an outlook address book via mapi.
I have got it down to pass out multiple emails and singles to the screen-value.
There's a couple things i wanted to know to help this run a little more efficiently.
1). How can i pass a fill-in:handle into this so it returns the "Tostring" to the fill-in's screen-value.
2). The com objects work great when you do everything but press cancel. When the address book comes up and you press cancel you get a mad amount of errors.
3). When i click the trigger that triggers the address book, a choose profile comes up, And outlook will always be our only profile, is there a way of setting that so it don't come up?
these are jsut some of the help things i needed, i plan on developing a nice email app via MAPI and once i get it fairly good i'll post it for anyone who like to know how to do some of it's features, such as read receipts, deliv receipts address books and so on.
But here's the code part for the address book
(please feel free to copy it in the proc editor or what ever to see what im talking about.)
NB. I'm unable to test your code, so I'm interpreting it by reading it here.
1). How can i pass a fill-in:handle into this so it
returns the "Tostring" to the fill-in's
screen-value.
I wouldn't do that; You are making assumptions about how you will use the string in future, so pass the string back instead, and display it on return.
However, if you must, then run snippet.p(fill-in:handle).
then assign h:screen-value in snippet.p where h is the input handle.
2). The com objects work great when you do everything
but press cancel. When the address book comes up and
you press cancel you get a mad amount of errors.
You don't say what errors, however it's probably to do with cancel making one of your objects invalid/null/empty so looping and trying to read an invalid object is causing errors.
Test your objects before trying to access them.
3). When i click the trigger that triggers the
address book, a choose profile comes up, And outlook
will always be our only profile, is there a way of
setting that so it don't come up?
I don't use outlook, so can't help you further, I'm afraid.
thanks, the information was greatly appreciated. I figured out most of the problems but now still have a few hanging there. I figured out how to bypass outlook security by using the redemption.dll (has anyone heard negative info about this dll?) Also i was thinking about posting this somewhere to have other's take a look at it and let me know what they think about it.
that way i coulod probably have fresh eyes looking at it and giving me suggestion from people who have a lot more exp than myself.
If anyone is interested then just send me and email at dpipes@aimntls.com