Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
The class bellow from the `eventlogSimple` example of the SDK doesn't seem to work, not supported. Does someone know how to convert this class for version 13 of QlikView? Or replace it with something that can be called from the web file?
/**
* QlikView 12 classes
*/
public override string HandleJsonRequest(string method, string[] userParameters, QvxConnection connection)
{
QvDataContractResponse response;
/**
* -- How to get hold of connection details? --
*
* Provider, username and password are always available in
* connection.MParameters if they exist in the connection
* stored in the QlikView Repository Service (QRS).
*
* If there are any other user/connector defined parameters in the
* connection string they can be retrieved in the same way as seen
* below
*/
string provider, host, username, password;
connection.MParameters.TryGetValue("provider", out provider); // Set to the name of the connector by QlikView Engine
connection.MParameters.TryGetValue("userid", out username); // Set when creating new connection or from inside the QlikView Management Console (QMC)
connection.MParameters.TryGetValue("password", out password); // Same as for username
connection.MParameters.TryGetValue("host", out host); // Defined when calling createNewConnection in connectdialog.js
switch (method)
{
case "getInfo":
response = getInfo();
break;
case "getDatabases":
response = getDatabases(username, password);
break;
case "getTables":
response = getTables(username, password, connection, userParameters[0], userParameters[1]);
break;
case "getFields":
response = getFields(username, password, connection, userParameters[0], userParameters[1], userParameters[2]);
break;
case "testConnection":
response = testConnection(userParameters[0], userParameters[1]);
break;
default:
response = new Info { qMessage = "Unknown command" };
break;
}
return ToJson(response); // serializes response into JSON string
}