Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
edwin
Master II
Master II

how to enable Show Column If in extensions

Hi, ive checked the knowledge base and all i can find is a conditional show of the whole chart but not for individual dimension or measures
how do you make the SHOW COLUMN IF option appear in your extension?  how do you add it to the definition:

definition: {type: "items",component: "accordion",
			items: {
				dimensions: {uses: "dimensions",min: 1, max: 1},  
				measures: {uses: "measures",min: 1, max: 50}, 
				sorting: {uses: "sorting"},				
				settings: {uses: "settings"},	
				addons: {uses: "addons",
                    items: {dataHandling: {uses: "dataHandling"}}
                },
				abouttxt:{label: "",type: "items",items: {abouttxt2:{label: "About",type: "items",
					items: {aboutt:{component: "text",
					label: ""}}}}} 
			}
		},

 

where do you add it in this script and what is the syntax.

anyone who has done this already?  any help will be appreciated.

Labels (1)
1 Reply
ChrisSL
Partner - Contributor II
Partner - Contributor II

Hi,  I just had this very problem, and figured out how to do it.    Not sure if you did but here is the answer...
The Idea is to open a text expression and reference it to the proper property on the dimension (or measure) like so:

Note: you can also use qCalcCondition.qCond.qv

 

dimensions: {
  uses: "dimensions",
  min: 1,		
  items: {
     calcCond: {
	type: "string",
	label: "Show Column If",
	ref :"qCalcCond.qv",     // this is the important line.  
	expression: "always"
	}
  },
},