Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to assign Doc Cal's through API?

Is there a way to modify the amount of assigned doc cals to a QVW through code/API, etc? Thanks,

3 Replies
dde
Employee
Employee

Yes, it can be done in the QMS API.  Have a look in the SDK:

http://community.qlik.com/docs/DOC-2639

For a working piece of code take a look at the source for qv-user-manager:

https://github.com/braathen/qv-user-manager

Not applicable
Author

hi Dave,

I found the part of code that should do what I'm looking for:

if (users.Count > allocatedCals)

     metaData.Licensing.CALsAllocated = users.Count();

but when this executes, it causes error "System.Exception: Too many document CALs assigned". Is there something missing?

thanks

dde
Employee
Employee

Is what it is saying true?  Do you have enough free CALs to assign more?  Remember that for Document CALs you have to specify a total number to allocate within the QlikView Management Console.  Even the API won't break those rules.