Launch WebHostedApplication Dynamically

Feb 11, 2013 at 7:06 PM
I'm trying to launch WebHostedApplication dynamically, but I have not been possible. Do you have any example where we can see this, is this possible?
Feb 12, 2013 at 7:17 AM
Edited Feb 12, 2013 at 7:17 AM

of course this is possible. Just configure your WebHostedApplication as Dynamic and Global if you want a global behaviour.
Then simply open it from a point where you have access to an instance of an implementation of IDesktopUserActions (this could be in your DesktopService or from every HostedControl ... ):
if you dont need it anymore just close it:
hope that helps

feel free to ask any further questions.
Feb 12, 2013 at 6:53 PM
In addition to the above, after you call CreateDynamicApplication, you should also call the SetFocus() method. This will ensure that the default action triggers for the application. I ran into this issue in a deployment where we generate all applications dynamically based on an incoming interaction. We ran into a few timing type issues that were resolved after calling SetFocus().