Custom Extension doesn't fetch a value to the variables
Hi,
I've Qlik sense Cloud. I created a custom extension in the Dev Hub through extension creator to create a variable which gets its value from a formula. Custom extension is also visible in the custom objects under extension tab.
LET vTotalHQDCExtension = if(isnull($(vTotalHQDC)), 'TotalHQDC', $(vTotalHQDC));
LET vTotalHQDC = Num($(#=app.variable.get("TotalHQDC").value));
it basically check if the variable vTotalHQDC is null or not, and if it is null then set the vTotalHQDCExtension variable to "TotalHQDC". The second LET statement then converts the value of the TotalHQDC variable to a number using the Num function.
then I added a text in a sheet and added fx = $(vTotalHQDC)
I am getting no error but value is coming as zero in the text. even if I used KPI object then value returns as 0. so not sure where I'm going wrong. is it something to do with my limited access in Qlik cloud or there is flaw in this entire approach?