The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
Interested
Rating: 11
Joined: Nov 10, 2011
Company: 1A Software e.U

Hello!

It should be very simple but I couldn't find it in Help  :)

How can I do so, when an email-address is written in a field of catalog Addresses and user clicks on this field, an email program is opened?

Similarly as in MS-Word for example.

Thank you in advance!

 
#2
People who like this: 0 Yes / 0 No
Active user
Rating: 3
Joined: Nov 1, 2011
Company:

Use OnClick event and code:

Code
RunApp("mailto:example@example.com");

 
#3
People who like this: 0 Yes / 0 No
Interested
Rating: 11
Joined: Nov 10, 2011
Company: 1A Software e.U

Thanks, Alexey!

It works rather fine, but only in case I change the Email-Address and press enter key. If I only mark this field and then press enter, nothing happens.

 
#4
People who like this: 0 Yes / 0 No
Active user
1C:Professional
Rating: 8
Joined: Jun 25, 2013
Company: 1C Company

You can add, for example, OpenButton with the following handler:

Code
StandardProcessing = False;
RunApp("mailto:example@example.com");


The email application will be started by pressing this button.

1C Company support team
 
#5
People who like this: 0 Yes / 0 No
Interested
Rating: 11
Joined: Nov 10, 2011
Company: 1A Software e.U

Thank you! It really works!  :)

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)