1 Reply Latest reply: Jan 4, 2018 5:09 AM by Øystein Kolsrud RSS

    How to load qlik sense data into C# application

    Santosh Chavan

      Hello All,

       

      I'm new to Qlik sense, I'm trying to load the data from Qlik Sense desktop. I could able to connect local Qlik Sense desktop application. I was referring to this document to load script but got stuck  


      Loading data into Qlik Sense ‒ Qlik Sense Developers


       


               IApp app ;

                 

       

       

              public void createCustomScript()

              {

                  string localizationScript = app.GetEmptyScript();

                  string newScript = localizationScript + "LOAD RowNo() AS value, 1 AS myDimension AUTOGENERATE 300;";

       

       

       

       

              }

              public ActionResult Index()

              {

                 

                  Uri uri = new Uri("http://localhost:4848");

                  ILocation location = Qlik.Engine.Location.FromUri(uri);

                  location.AsDirectConnectionToPersonalEdition();

                  var newAppIdentifier = location.HasAppWithName("Consumer Sales");

       

                  using (IHub hub = location.Hub())

                  {

                    

                      Debug.Write($"the local product version {hub.ProductVersion()}");

                      createCustomScript();

                  }

                  Debug.Write($"the local product version {newAppIdentifier}");

       

       

       

       

                  return View();

              }

       

      Any help would be appreciated.

       

      Thanks