Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am pretty new to QlikView and have been tasked with creating a Custom CheckBox that when clicked writes to a database.
From what I understand I first need to create a QlikView Custom Extension.
To do this I first need to create an Definition.xml file. (xml is new to me but the code i have is below)
When I add this to QlikView I can see the Custom Extension, looks like a box, but how do I turn it into a CheckBox?
I tried changing Type="Object" to Type="Checkbox" but it makes no difference.
Can anyone please help me?
(a step by step idiots guide to creating custom extension would be nice if anyone has such a thing to help me)
I have looked at many online pages but most are quite confusing.
Thank you.
<?xml version="1.0" encoding="utf-8"?>
<ExtensionObject
Path="Folder1"
Label="CheckBox Extension"
Description="CheckboxCustom Extension"
Type="Object">
</ExtensionObject>
The definition.xml file describes what kind of extension this is, so it is correct to leave it as Type="Object". An object extension creates something visible on the sheet.
Your next step is to create your script.js file. The code in this file will create the checkbox and the associated behavior for the checkbox. See "Creating the main script file" in https://help.qlik.com/en-US/qlikview-developer/April2019/Subsystems/Extensions/Content/QV_Extensions....
Note that you must be familiar with HTML and javascript to author a useful extension.
-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com
Thanks for the reply, I have had a go and I am absolutely stumped.
Could you please show me literally what I should put in my Script.js file to create the checkbox?
(hoping for a light bulb moment at some point)
<input type="checkbox" id="mybox">
Hi, when I create the Script.js file containing only your line of code, I get this error:
http://qlikview/QvAjaxQvsViewClient.aspx?public=only&name=Extensions/myfolder/script.js&xrfkey=q35zlXgX4ZBWGbsw
I gave you just the html piece. You have to wrap that in the javascript as shown in the doc. Did you do that?
-Rob