| Change number of columns in PDF list report [message #4078] | 
			Thu, 27 February 2014 22:45   | 
		 
		
			
				
				
				
					
						  
						haider.faraz
						 Messages: 15 Registered: July 2013 
						
					 | 
					Junior Member  | 
					 | 
		 
		 
	 | 
 
	
		That works, thankyou. 
 
There is another issue I am trying to work around and I would be greatful for your help. The issue is as follows: 
I have a report where the number of columns may vary from one instance of the report to another. The only work around I can think of within the framework was to use the '_cm_output_multi' function and to define in the report structure file a number of zones such as multiK, multiK+1,...multiN where K is the minimum number of columns and N is the maximum number of possible columns.  
 
In the function I will always know the number of columns to output and so having determined that I would output the data as an array/resultset only in the multiK+X zone.  
 
I attempted to use the 'ignore_if_empty' flag in the style for all my zones with data only in the multiK+X zone. I had expected that this would lead the other zones not to appear and that using this method I could resolve the issue of a dynamic number of columns for my report. 
 
However, the 'ignore_if_empty' flag did not work as I expected. Is this a bug? Or if not is there another workaround?
		
		
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 | 
	
		
		
			| Re: Change number of columns in PDF list report [message #4081 is a reply to message #4080] | 
			Fri, 28 February 2014 06:18    | 
		 
		
			
				
				
				
					
						  
						haider.faraz
						 Messages: 15 Registered: July 2013 
						
					 | 
					Junior Member  | 
					 | 
		 
		 
	 | 
 
	
		I am using the following function to change the column count at run time: 
 
    function _cm_pre_output($filename)
    {
    	array_pop($this->report_structure['multi1']['fields'][0]);
        return $filename;
    } // _cm_pre_output
 
 
One can then have a single report structure file with N number of columns defined in it and call the function: 
array_pop($this->report_structure['multi1']['fields'][0]);
  
Y times such that N-Y = K.
		
		
		[Updated on: Fri, 28 February 2014 06:40] by Moderator Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	
		
		
			| Re: Change number of columns in PDF list report [message #4084 is a reply to message #4082] | 
			Sun, 02 March 2014 19:32    | 
		 
		
			
				
				
				
					
						  
						haider.faraz
						 Messages: 15 Registered: July 2013 
						
					 | 
					Junior Member  | 
					 | 
		 
		 
	 | 
 
	
		I am stumbling on another issue in my report and I wonder if this one is possible: 
 
I need to create a report with multiple cells per line, such that the first three cells fill the entire height of the line, but the cells that follow are made up of 3 vertically stacked sub-cells within a cell. 
 
In HTML this can be achieved using the rowspan attribute. Is there a way to achieve the same effect within the radicore framework?
		
		
		[Updated on: Sun, 02 March 2014 23:40] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 |