Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello All,
Need your help.
I use .Net Sdk version 2.1.1 and have some troubles with opening my apps in hub from c# code.
I open my Qlik Sense Desktop.
Get location
ILocation location = Location.FromUri(new Uri("http://localhost:4848"));
location.AsDirectConnectionToPersonalEdition();
I can create new apps, and get information about existing, but I can not open app in desktop hub.
var appIdentifier = location.AppWithNameOrDefault("Executive Dashboard");
using (var hub = location.Hub()) // Location specified in Accessing
{
var app = hub.OpenApp(appIdentifier.AppName);
}
Thanks and Regards,
Marina
Hi,
you should use the AppIdentifier and App on Location.
Example:
var appid = location.AppWithNameOrDefault("Executive Dashboard");
using (var app = location.App(appid))
{
// Do work....
}
Best regards
Lars-Göran Book
Hello ext_lgb
Thanks for your response.
The target of my c# code method is an opening my app in a Desktop application.
Sorry but I'm not quite clear how I can open my app in Qlik Sense Desktop application with your example.
I would be grateful if you tell me in details what i should to do.
Best regards
Marina