Home » RADICORE development » Transaction Patterns » Output2 - Options / 90° cell rotation
Re: Output2 - Options / 90° cell rotation [message #7383 is a reply to message #7382] |
Tue, 22 October 2019 07:14 |
AJM
Messages: 2367 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
This is the sequence of events in the OUTPUT2 pattern:
1) The report structure file is read into memory during execution of the initsession() function.
2) The following methods are called: $dbobject->initialise(), $dbobject->getExtraData(), $dbobject->getData_serial().
3) The PDF object is instantiated and the $pdf->outputPDF_ListView() method is called which has the following steps:
3.1) Call the $dbobject->_cm_pre_output() method.
3.2) Call the $pdf->listView() method which has the following steps:
3.2.1) Call $dbobject->fetchRow().
3.2.2) Call $dbobject->_cm_post_fetchRow().
3.3.3) Call $pdf->listView_print().
3.3.4) Call $dbobject->_cm_formatData().
3.3.5) Call $pdf->listView_assemble_row() for each column.
3.3.6) Call $pdf->printRow() to output the row to the PDF document, which calls the following at the start of each page:
3.3.6.1) Call $dbobject->_cm_ListView_header()
3.3.6.2) Call $pdf->Header() to print the page heading.
3.3.6.3) Output the column labels.
While testing this I discovered that the ability to use dynamic column labels was not available, so I have amended std.pdf_list.class.inc (which is attached) to add this ability. To use this feature you need to do the following:
a) In your report structure file change the column label from a literal to '%%id' where 'id' is the label identity.
b) In your object's _cm_ListView_header() method (see step 3.3.6.1 above) insert code similar to the following:
$this->dynamic_column_headings = array('id' => 'whatever');
This will then enable the step at 3.3.6.3 (which I have amended) to replace '%%id' with 'whatever'.
Try it and see.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
|
Output2 - Options / 90° cell rotation
By: htManager on Mon, 30 September 2019 09:55
|
|
|
Re: Output2 - Options / 90° cell rotation
By: AJM on Tue, 01 October 2019 04:42
|
|
|
Re: Output2 - Options / 90° cell rotation
By: AJM on Tue, 01 October 2019 09:49
|
|
|
Re: Output2 - Options / 90° cell rotation
|
|
|
Re: Output2 - Options / 90° cell rotation
By: AJM on Thu, 03 October 2019 05:26
|
|
|
Re: Output2 - Options / 90° cell rotation
|
|
|
Re: Output2 - Options / 90° cell rotation
|
|
|
Re: Output2 - Options / 90° cell rotation
By: AJM on Sun, 06 October 2019 03:51
|
|
|
Re: Output2 - Options / 90° cell rotation
|
|
|
Re: Output2 - Options / 90° cell rotation
By: AJM on Sat, 19 October 2019 04:21
|
|
|
Re: Output2 - Options / 90° cell rotation
|
|
|
Re: Output2 - Options / 90° cell rotation
By: AJM on Sun, 20 October 2019 05:02
|
|
|
Re: Output2 - Options / 90° cell rotation
|
|
|
Re: Output2 - Options / 90° cell rotation
By: AJM on Tue, 22 October 2019 07:14
|
|
|
Re: Output2 - Options / 90° cell rotation
|
|
|
Re: Output2 - Options / 90° cell rotation
By: AJM on Fri, 25 October 2019 04:37
|
|
|
Re: Output2 - Options / 90° cell rotation
|
|
|
Re: Output2 - Options / 90° cell rotation
By: AJM on Sat, 26 October 2019 04:45
|
|
|
Re: Output2 - Options / 90° cell rotation
|
|
|
Re: Output2 - Options / 90° cell rotation
By: AJM on Sun, 15 December 2019 04:03
|
|
|
Re: Output2 - Options / 90° cell rotation
|
|
|
Re: Output2 - Options / 90° cell rotation
By: AJM on Thu, 02 January 2020 02:02
|
|
|
Re: Output2 - Options / 90° cell rotation
|
|
|
Re: Output2 - Options / 90° cell rotation
|
|
|
Re: Output2 - Options / 90° cell rotation
By: AJM on Tue, 07 January 2020 06:01
|
|
|
Re: Output2 - Options / 90° cell rotation
By: AJM on Wed, 08 January 2020 11:52
|
|
|
Re: Output2 - Options / 90° cell rotation
|
|
|
Re: Output2 - Options / 90° cell rotation
By: AJM on Thu, 09 January 2020 04:56
|
|
|
Re: Output2 - Options / 90° cell rotation
|
|
|
Re: Output2 - Options / 90° cell rotation
|
|
|
Re: Output2 - Options / 90° cell rotation
By: AJM on Sat, 11 January 2020 05:46
|
Goto Forum:
Current Time: Fri Nov 22 22:13:53 EST 2024
Total time taken to generate the page: 0.01547 seconds
|