Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 satyaprakash
		
			satyaprakash
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Team,
How to call backend api in qlik mashup ?
In extensions it is available with this inside paint and controller. But not able to get it in mashup.
Regards,
Satya
 
					
				
		
 ErikWetterberg
		
			ErikWetterberg
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi,
The visualization you get from the visualization API has a model with expand and collapse methods, try those.
Something like:
app.visualization.get('xxx').then(function(vis){ //also works with visualization.create
vis.model.expandLeft('/qHyperCubeDef',row,col,false);
});
I assume you would want to do this on a click somewhere, but you need to save a reference to the visualization object.
The documentation for this method is here.
Erik Wetterberg
 
					
				
		
 ErikWetterberg
		
			ErikWetterberg
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi,
What do you want the backend API for? It's really part of the extension framework, and you can do most of the stuff with other APIs.
Erik Wetterberg
 satyaprakash
		
			satyaprakash
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		I have built pivot table using visualization API. In pivot, expand and collapse functionality currently I am providing. I also need to provide collapse left ( in back end API) for rows and columns.
Is there any other api, using which this can be done?
Regards,
Satya
 
					
				
		
 ErikWetterberg
		
			ErikWetterberg
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi,
The visualization you get from the visualization API has a model with expand and collapse methods, try those.
Something like:
app.visualization.get('xxx').then(function(vis){ //also works with visualization.create
vis.model.expandLeft('/qHyperCubeDef',row,col,false);
});
I assume you would want to do this on a click somewhere, but you need to save a reference to the visualization object.
The documentation for this method is here.
Erik Wetterberg
 satyaprakash
		
			satyaprakash
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Thank you!
 xunziheng
		
			xunziheng
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		
@satyaprakash wrote:
Hi Team,
How to call backend api in qlik mashup ?
In extensions it is available with this inside paint and controller. But not able to get it in mashup.
Regards,
Satya
Hi, why can't I get this in the controller?
Regards
