Qlik Community

QlikView Deployment

Discussion Board for collaboration related to QlikView Deployment.

Employee
Employee

QVS API Support

Use the method GetDocumentTask(). It takes "DocumentTaskID" and "Scope" as parameters. You can get the Document task ID from a number of methods, but if you do not have it listed, you will probably have to go via GetSourceDocumentFolders, GetSourceDocumentNodes, GetTasksforDocument and then from there extract the task id and send into GetDocumentTask.

Not applicable

QVS API Support

Thank you Stefan. It worked fine.

I have another issues now. While I was developing the website, I could use the API. After I published the website, I get a "Forbidden" server error on the pages that uses the API. When I do a test to see who the current user identity is when running the website in the deployed environment, I get my username back so it should have worked.

Do you have any ideas how I could solve this?

Not applicable

QVS API Support

Stefan,

Thanks a lot for the help provided. I have succesfully created all the functions i need.

The problem is that i have done them in C#, but i have converted it to VB because i need to mix it up with another code i already have. Now when i converted it to VB, i had to convert also the classes ServiceKeyBehaviorExtensionElement, ServiceKeyClientMessageInspector and ServiceKeyEndpointBehavior, but something seems to not work because the function QMSClient.GetServices(ServiceTypes.QlikViewServer) doesn´t get me an ID that i can then pass to the other functions.

Do you have any ideas? Have you happened to work it out on VB?

thanks

Pablo

Not applicable

QVS API Support

Hello Amien, I cant find the the attachment for managing CALs etc you put in as a response to this topic. Could you put it up again for me, it would be very helpful for me - would save me hours

regards,

Johan

Not applicable

QVS API Support

Does anyone have an example for managing CALs using the API?

Not applicable

Re: QVS API Support

I am also interested in finding out how to unassign a CAL programatically.  I am able to use the API to list the CALs but I can't find any methods to un-assign a CAL.  Below is how I am listing them:

QMSBackendClient apiClient = new QMSBackendClient();

ServiceKeyClientMessageInspector.ServiceKey = apiClient.GetTimeLimitedServiceKey();

List<ServiceInfo> qvsServices = apiClient.GetServices(ServiceTypes.QlikViewServer);

CALConfiguration NamedCALConfig = apiClient.GetCALConfiguration(qvsServices[0].ID, CALConfigurationScope.NamedCALs);
CALConfiguration.CALConfigurationNamedCALs namedcals = NamedCALConfig.NamedCALs;


foreach (AssignedNamedCAL cal in namedcals.AssignedCALs)
{

     Console.WriteLine(String.Concat(cal.UserName, "|", cal.QuarantinedUntil, "|", cal.LastUsed));

}

Not applicable

QVS API Support

Can you send me your code?  I am having a hard time trying to implement this into my current program.  I think I am missing a service reference somewhere.

Highlighted
venkeytcs
New Contributor III

QVS API Support

Hi Stefan,

I am able to create and built a sample in console application but the same is not working in ASP.net application.

Could you please provide a sample code or step by step guide using ASP.net application.

especially step 10-13 in Qlikview Management API help file.

Thank you.

Venkatesh

lhr
Contributor III

QVS API Support

i think SaveCALConfiguration could be the call you are looking for.

venkeytcs
New Contributor III

Re: QVS API Support

Can anyone help me

I am getting the following error when executing my project.

The type 'Qv_License_Management.Service_Support.ServiceKeyBehaviorExtensionElement, Qv_License_Management, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' registered for extension 'serviceKeyBehavior' could not be loaded. (C:\Users\e0615022\documents\visual studio 2010\Projects\Qv License Management\Qv License Management\bin\Debug\Qv License Management.vshost.exe.config line 12)

Attached my project.

Community Browser