When I run this with Desktop it works good, but in the server doesnt work, I have tried System, Setup, QlikView Servers, expand and click, Seucrity tab in the right pane "Allow unsafe macro execution on server" and "Allow macro execution on server" ticked