Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
DanaL
Creator
Creator

Custom Theme - adding KPI to JSON file

Hi People,

I'm just beginning to develop custom themes.

I used a theme I customized with  SenseTheme ( https://sensetheme.com/).

I wanted to add custom properties for KPI.

Therefore, I edited the JSON file, based on what is written in here: https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/Extensions/Content/Sense_Extensions/C...

After loading the theme, the KPI is not affected.

What did I do wrong?

I've marked the updates I did.

Attached is the JSON file.

Thanks!

JSON UpdatesJSON Updates

 

Labels (1)
1 Solution

Accepted Solutions
ajaykakkar93
Specialist III
Specialist III

i hope this helps you

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

View solution in original post

6 Replies
EliGohar
Partner - Creator III
Partner - Creator III

@DanaL 

You probably place the KPI as a separate object in the JSON file, it should be located under the "object" object.

If you need assistance feel free to contact me in DM.

Eli.

DanaL
Creator
Creator
Author

Hi Eli,

I replaced the KPI definition as you suggested, but it still didn't work.

Attached is the updated file.

Thanks!

EliGohar
Partner - Creator III
Partner - Creator III

@DanaL In the file you attached The KPI is still outside the "object".

I fixed it, please see attached.

DanaL
Creator
Creator
Author

Hi,

I replaced your file, but now the theme doesn't work at all..

I'm not familiar with JSON, so can't tell if it's a syntax issue.

Thanks for your kind help!

ajaykakkar93
Specialist III
Specialist III

i hope this helps you

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

DanaL
Creator
Creator
Author

It works!

Thank you!