Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
fkeuroglian
Partner - Master
Partner - Master

RELOAD SENSE

Hi expert

I am creating an external app in C # that call to Sense.exe, I would like to know if I can call to sense and reload automatically? i want to avoid that the user have to go to the menu and push the button "load data".

of course it is very easy to do this load data and simple but i want to know if i can do automaticaly?

thank you a lot

Fernando

ps: i do not have license and server of sense

1 Solution

Accepted Solutions
elyM
Partner - Creator
Partner - Creator

Hi Fernando,

at the moment I don't have implemented any solution about Qlik Sense Desktop batch reload.

But I have find an interesting not batch reload Object Extension.

mhamano/Qlik-Sense-Reload-Button · GitHub

Regards,

Ely

View solution in original post

5 Replies
elyM
Partner - Creator
Partner - Creator

Hi Fernando,

at the moment I don't have implemented any solution about Qlik Sense Desktop batch reload.

But I have find an interesting not batch reload Object Extension.

mhamano/Qlik-Sense-Reload-Button · GitHub

Regards,

Ely

petter
Partner - Champion III
Partner - Champion III

I think this thread should be of help for you:

Create reload task with the QRS API

petter
Partner - Champion III
Partner - Champion III

Actually this is also interesting:

Qlik Sense Partial Reload - now possible (>=2.0.1)

Not applicable

Hi,

You may also look at the .Net SDK, see http://help.qlik.com/sense/2.0/en-us/developer/#Home-developer.htm

There you will find how to, documentation and be able to download samples.

Note you will find the .Net SDK on Nuget NuGet Gallery | Packages matching Qlik Sense

Here is the code to do a reload on a Qlik Sense Desktop.

static void Main()
{
  ILocation location = Qlik.Engine.Location.FromUri(new Uri("ws://127.0.0.1:4848"));
  location.AsDirectConnectionToPersonalEdition();
  var appIdentifier = location.AppWithNameOrDefault("MyApp.qvf");

  if (appIdentifier == null)
  {
    Console.WriteLine(@"The app does not exist.");
  }
  else
  {
    var app = location.App(appIdentifier);
    var reloadSucceded = app.DoReload();
    if (reloadSucceded)
    {
      app.DoSave();
      Console.WriteLine(@"The app is reloaded and saved.");
    }
    else
    {
      Console.WriteLine(@"Reload failed.");
    }
  }
}

Best Regards

Lars-Göran Book

fkeuroglian
Partner - Master
Partner - Master
Author

Thank you Eli

Good solution and works OK!