Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Framework » PDF - horizontal line in title zone
Re: PDF - horizontal line in title zone [message #5676 is a reply to message #5675] Sat, 25 June 2016 05:01 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2361
Registered: April 2006
Location: Surrey, UK
Senior Member
Your report structure file is wrong. Each line in the report is supposed to contain two fields. In the structure file that you sent me earlier you had the following:
$structure['multi1']['fields'][8][] = array('field' => 'xxx_label',
						       'width' => 15,
						       'border' => '',
						       'style' => 'label_tplan',
						       'ignore_if_empty' => 'y');

$structure['multi1']['fields'][8][] = array('field' => 'xxx',
						       'width' => 180,
						       'x' => 15,
						       'border' => '',
						       'ignore_if_empty' => 'y');

You should change it to the following:
$structure['multi8']['fields'][1][] = array('field' => 'xxx_label',
						       'width' => 15,
						       'border' => '',
						       'style' => 'label_tplan);

$structure['multi8']['fields'][1][] = array('field' => 'xxx',
						       'width' => 180,
						       'x' => 15,
						       'border' => '');

In your _cm_output_multi() method you should have code such as the following:
case 'multi8':
    if (!empty($fieldarray['xxx') {
        $outarray = array('xxx_label' => '...', 'xxx' => '...');
    } else {
        $outarray = array();
    } // if
    break;


The framework will output whatever values you give it. If you give it a row with empty values then it will print empty values. If you do not want the row printed at all then you must output an empty row and not a row containing empty values.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MNU_ACCOUNT - Add new account
Next Topic: Radicore Forum 11th Birthday
Goto Forum:
  


Current Time: Thu Sep 26 19:34:54 EDT 2024

Total time taken to generate the page: 0.01802 seconds