Skip to main content

Loading data into QlikView or Qlik Sense using a connector

There are two ways to get data into QlikView or Qlik Sense using a connector. You can either:

  • Use a named pipe to stream data into QlikView or Qlik Sense.
  • Let your connector create a QVX file.

This section describes both approaches.

Take Program.cs in QvEventLogConnectorElaborate as an example. The connector has two ways to fetch data from the data source. It can be invoked from the script editor in QlikView or Qlik Sense, or it can be run as a standalone program.

  • If the connector is started from QlikView or Qlik Sense, it is given two arguments and therefore enters into the if clause. This means that it will send received data directly to QlikView or Qlik Sense using a named pipe.
  • If it runs as a standalone connector instead, it is not given any arguments and the program enters into the else if clause. In this case, all received data is saved in a QVX file.

Program.cs

namespace QvEventLogConnectorElaborate

{

static class Program

{

[STAThread]

static void Main(string[] args)

{

if (args != null && args.Length >= 2)

{

new QvEventLogServer().Run(args[0], args[1]); <- data piped to Qlik Sense

}

else if (args != null && args.Length == 0)

{

Application.EnableVisualStyles();

Application.SetCompatibleTextRenderingDefault(false);

Application.Run(new Standalone()); <- data directed to QVX file

}

}

}

}

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!