This is not really important but I thought it could be useful.
Is it possible to add a link that will open their email client to send a message?
I tried HTML anchors but it didn’t work.
Any ideas?
This is not really important but I thought it could be useful.
Is it possible to add a link that will open their email client to send a message?
I tried HTML anchors but it didn’t work.
Any ideas?
Well, it might be possible to catch an exception and do some stuff before sending it up the chain. Really the only way I can think of off the top of my head is to go to the form that fires the business object, replace the default button and then call the previous buttons code in a try/catch block. Seems clunky but I think it would work.
The catch code could pop up a dialog to compose a mail or even send one automatically without the users knowledge
I think you misunderstood me.
I created a Method Directive that raises an exception when 2 conditions are met.
In the exception message I created, I would like to have a clickable email link, if possible.
Even easier then, call a bpm data form before you raise your exception. Your can customize the data form however you like, add a link or even give them the ability to compose and send right from the form.
If you have an SMTP server available, and they don’t need to add any specific info, you can just send that info behind the scenes - you can send the current user, exception details, time, date, and even a screen shot of needed
Your option is good but I didn’t want them to go through that. I don’t need the information unless they wanted to contact me. I was hoping that there was an easy way to add something like:
<a href="myemail@email.com">Email</a> directly in the exception message.
If not possible, then I can pursue the data form if needed.
Just a sample I used in a form to send an email
Not sure if this could be adapted for what you want in a BPM.
Note it will throw an error when there is not a default email client.
if (MessageBox.Show(
“email test”, “Send Email”, MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk
) == DialogResult.Yes)
{
System.Diagnostics.Process.Start(“mailto:bruceo@bogus.test”);
}
Just use a BPM Data Form to display the “Exception”…but no outside of doing that there is no way to do that.