Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I've an issue with a Document Extension (not Object Extension). I've build a little Document Extension on my laptop, it Works.
So I tried to publish on my QlikView Servers 11.2 SR8 11.20.12664.0
I've 2 servers : a "backoffice" dedicated to reload, using Publisher and a Front office used for the Accesspoint only.
1) I've copied my Document Extension from C:\Users\%MyUSER%\AppData\Local\QlikTech\QlikView\Extensions\Document
to the same folder on my server (in order to be able to see it using a local client on my server).
2) in the QlikView local client on the server, I see this extension in Document Properties / Extension. It's active.
3) I copied my Extension folder to C:\ProgramData\QlikTech\QlikViewServer\Extensions\Document on both servers (Back office and Front office) to be sure (I think only the front office is necessary).
4) On QMC, I've check that Extensions are allowed in System / QVS / Security / Allow Extensions
5) In System / QVS / Folders / Alternate extensions folders are empty
6) When I open the application in Full Web on Accesspoint, the Extension isn't working.
My extension is very simple one, I'm trying to load Roboto font from Google Fonts, here is the script.js :
Qva.AddDocumentExtension('RobotoFont', function(){
Qva.LoadCSS("http://fonts.googleapis.com/css?family=Roboto");
});
Maybe a security issue to access an URL ? is the extension code launch on server site or client Site ?
Do you have any idea ?
Best regards
Thanks Adam, within the console I saw clearly the problem,
I used https for QlikView, but http for Google font (so security disabled the http part), I've just added an s and it's working
"https://fonts.googleapis.com/css?family=...
Thanks for your help
Did you get this to work?
Have you checked the console to see what errors you are getting?
have you tried with a local css file instead?
hi Adam,
thanks for your post,
Did you get this to work ?
=> My issue is still active,
Have you checked the console to see what errors you are getting ?
=> No, but I don't see where I should find error log about this ? Where do you think, I should watch ?
Have you tried with a local css file instead ?
=> No, where do you think I should put my Css file ?
Best regards
Hi Bertrand,
No worries, I know how hard extensions are to work with! if you need any sort of tutorial then I did a set on here and also on my blog http://qlikanddirty.com/category/extensions/extension-tutorial-series/
However, the console is very much your friend when trying to debug extensions! this is normally just accessed by hitting F12 in the browser. Chrome's tools are probably the best I think.
You can also use firebug in the actual qlikview application (see the tutorial) but it is limited what you can do.
The extension itself should just have a CSS file with it which you can alter.
If you want to share it, I would be more than happy to debug it for you
Thanks Adam, within the console I saw clearly the problem,
I used https for QlikView, but http for Google font (so security disabled the http part), I've just added an s and it's working
"https://fonts.googleapis.com/css?family=...
Thanks for your help
Hi Bertrand,
Glad to hear it!
The console is a life saver for sure
Kind regards
Adam