on 05-16-2008 10:00 PM
Good Day
Experts:
I have been assigned a new task of e-mailing attachements from one of out AddOn screens. The requirement would be to pop-up the "Send Message" box just like when you are in the Sales Order screen and hit the e-mail button in the Toolbar.
How can I get to this using my vb.net code?
Thank,
Ed
You should activate the proper menu id. Im not sure which id it is (you should use event filter for this or Ill check on Monday), but the code is
oMenuItem = SBO_Application.Menus.Item("2079") - instead of 2079 use proper id for emailing
oMenuItem.Activate()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, the form of email is sbo form with formUID, so when you want to prefill it, before opening the form of emailing, save to some global variable, that the form of email is opened by you, then catch the event for opening form with email, and beforeaction = false, check if is your opening by global variable (to prevent situation that the form is opened from other form), set global variable to other value and prefill the values.
Petr
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.