Qlik Community

Ask a Question

QlikView Integrations

Discussion Board for collaboration on QlikView Integration.

Announcements
Our next Qlik Insider session will cover new key capabilities. Join us August 11th REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
Gazza
Contributor II
Contributor II

Create a Checkbox Custom Extension

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>

Labels (2)
5 Replies
rwunderlich
Luminary Alumni
Luminary Alumni

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

Gazza
Contributor II
Contributor II
Author

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)

 

 

rwunderlich
Luminary Alumni
Luminary Alumni

<input type="checkbox" id="mybox">

Gazza
Contributor II
Contributor II
Author

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

rwunderlich
Luminary Alumni
Luminary Alumni

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