(1) 302-892-9625

Send an email from outlook or open a second application using OpenLinkDlg

In this tutorial, we will learn some of the use cases of our VirtualUI OpenLinkDlg method that allows you to display a popup with a button to open a web link.
In order to explain how this works, we’ll show you two of the most common use cases we have seen among our users. You can download this C# demo application and integrate it with Thinfinity Virtual UI

Thinfinity VirtualUI Open Link

One of the use cases involves the mailto: HTML email link expression. On the other hand we’ll be using this method to call a second VirtualUI application under a different browser tab.

About the mailto reference.
By clicking on a “Send E-Mailbutton you’ll be triggering the Open Link Dlg method which will open the end-user default email client and a new message we’ll be ready to be written with some of it’s fields pre-populated. These fields may vary from Sender, Subject Line and Email Body up to CC and BCC.
In the example below, we’ll be telling the end-user browser to open their default mail application, and prepare to send an email to both, mail@anymail.com and mail@2ndmail.com addresses, followed by doing a CC on mail@copymail.com and a BCC over mail@bccmail.com and finally the Email Subject and it’s Body.
Click on the following example and test it for yourself:
mailto:mail@anymail.com;mail@2ndmail.com?cc=mail@copymail.com&bcc=mail@bccmail.com&subject=Subject%20Test&body=Body%20Test

Thinfinity VirtualUI Open Link

As you can see, we have mailto: pointing to both, mail@anymail.com and mail@2ndmail.com separated by a Semicolon (;) and finishing the recipients field with a Question Mark (?). Followed by it we have the CC and right away we have the BCC separated in this case with an Ampersand (&). We can notice the same thing when separating the BCC from the Subject, and the Subject, from the Body. Also, as you may have noticed, you can add spaces by writing %20 in the text of the subject or body.

This is a simple process and if you do some research you can even find some online mailto generators. Now we can follow to the next example:

Open a second application with VUI’s OpenLinkDlg method.
Sometimes users need to open more than 1 application through VirtualUI on their browsers, and if you want your users to open your VirtualUI applications by doing just 1 single click, then the OpenLinkDlg method can be very useful for you.
Click on this link to download a second C# demo application to try this case.
Here you just need to know the direct link (URL) to the VirtualUI application you’ll be calling. Most of the times the URL is the same as the name of the VirtualUI profile pointing to that application (default behaviour), but you can change this if you edit the Virtual Path of your profile.
Here you can find a screenshot of the Profile we’ll be using today and it’s Virtual Path highlighted.

Thinfinity VirtualUI Open Link

By knowing our application Virtual Path, we can point our browser to our VirtualUI Server Address and load the application directly without visiting our landing page. In our case, we’ll be pointing the browser to the http://localhost:6580/EMM/ address.
The OpenLinkDlg Method.
You can implement this method easily calling it through the Virtual UI instantiated class and then using the OpenLinkDlg method passing two parameters:

Thinfinity VirtualUI Open Link

So the first parameter is for the virtual path of any other application web enabled with virtual UI. The second parameter is for the message you want to show to the end user on the dialog that will come up to access the second application if the browser doesn’t open the second application automatically.

Thinfinity VirtualUI Open Link

Do not hesitate to contact us. Write your questions and inquiries to info@cybelesoft.com

Related Posts

Leave a comment

I accept the Privacy Policy