Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Troubles with opening my apps in hub from c# code.

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

2 Replies
Not applicable
Author

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

Not applicable
Author

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