Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Script for Extension

Hello Qlik Community,

I am trying to write an expression for a QV extension. It says error expression but I have mirrored it to the sample script provided. Can anyone notice anything wrong with it. The leading parenthesis in front of concat is red. If I add another ending parenthesis it errors out the ' " ' at the end of the script.  Thanks

Mine:

=' "color":#42CB10",

"width":"2",

"style":"straight",

"line":"solid",

"children":" ' & (concat(if(len(field)>0, field,field2,'|')) & ' " '

Sample:

=' "color":"4#2CB10",

"width":"2",

"style":"straight",

"line":"dashed",

"children":" ' & (concat(DISTINCT TOTAL Store ID,"|")) & ' " '

2 Replies
its_anandrjs
Champion III
Champion III

Hi,

Try this sexpression

='"color":#42CB10",'&

'"width":"2",'& 

'"style":"straight",'& 

'"line":"solid",'&

'"children":" '&concat(if(len(field) > 0, field,field2),'|') & ' " '

Regards

Anand

its_anandrjs
Champion III
Champion III

And this one

='"color":#42CB10",

  "width":"2", 

  "style":"straight", 

  "line":"solid",

  "children":" '& concat(if(len(field) > 0, field,field2),'|') & ' " '

Regards

Anand