Friday, June 19, 2009

Send an email with a button that has Lotusscript in it (Part 2)

And the winner is…….. DXL.

As expected, the “simplest” way to do this turned out to be creating the button with a bit of magic DXL. I stole the method and the skeleton of the code from Bryce Berry’s excellent article Create Hotspot Buttons on the Fly Using DXL. So I won’t bother going through all of that again here. I’d recommend you look at the article.

From this, I can create an email with a button. The other thing I might use it for is creating a form with a button on it so I can dictate which version of a document gets opened from a portal link. The basics will be the same, but instead of creating an email I’ll just create a document which has a button in a rich text field. Then that link (notes://whatever) can be generated and plonked down on an intranet page.

I’ll let you know.

Wednesday, June 3, 2009

Send an email with a button that has Lotusscript in it (Part I)

This is where I’m at today. I’ve been trying to figure out how (in Notes 6.5.x) to automate the sending of an email with a button in it which contains script which varies depending on certain criteria.

I’ve tried a few different ways to do it, all failing miserably. The one I’m going with at the moment (and the one that still looks promising) is to do it using DXL. By creating the DXL on the fly and then importing it back into the body of an email I should be able to get it to work.

I’ll post again when I get further……