<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Sequencing Header2() in reports]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5428</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5428&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Sequencing Header2() in reports.]]></description>
		<lastBuildDate>Mon, 09 Feb 2015 19:06:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Sequencing Header2() in reports]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22469#p22469</link>
			<description><![CDATA[<p>Thanks @joe: The sequencing of the header type assignment listed in the previous posts here is not necessary as the actual file inclusion of the <strong>header2.inc</strong> happens only when the new page method is called in line 944-945 of <strong>reporting/includes/pdf_report.inc</strong>. It still does no harm in keeping them together.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 09 Feb 2015 19:06:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22469#p22469</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sequencing Header2() in reports]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=21946#p21946</link>
			<description><![CDATA[<p>For <strong>reporting/rep110.php</strong> the following is in order:<br /></p><div class="codebox"><pre><code>--- old/reporting/rep110.php    Mon Sep 29 21:21:28 2014
+++ new/reporting/rep110.php    Mon Dec 29 23:35:10 2014
@@ -94,13 +95,13 @@
                     $rep-&gt;filename = &quot;Packing_slip&quot; . $myrow[&#039;reference&#039;] . &quot;.pdf&quot;;
                 }
             }
-            $rep-&gt;SetHeaderType(&#039;Header2&#039;);
             $rep-&gt;currency = $cur;
             $rep-&gt;Font();
             $rep-&gt;Info($params, $cols, null, $aligns);
 
             $contacts = get_branch_contacts($branch[&#039;branch_code&#039;], &#039;delivery&#039;, $branch[&#039;debtor_no&#039;], true);
             $rep-&gt;SetCommonData($myrow, $branch, $sales_order, &#039;&#039;, ST_CUSTDELIVERY, $contacts);
+            $rep-&gt;SetHeaderType(&#039;Header2&#039;);
             $rep-&gt;NewPage();
 
                $result = get_customer_trans_details(ST_CUSTDELIVERY, $i);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 29 Dec 2014 19:06:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=21946#p21946</guid>
		</item>
		<item>
			<title><![CDATA[Sequencing Header2() in reports]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=21943#p21943</link>
			<description><![CDATA[<p>The FrontReport method Header2() uses the property $formData which gets populated in it&#039;s method SetCommonData(). Therefore in all the reports, the SetCommonData() method and it&#039;s dependant data must be called before the header2() method is called. It is the Header2() method that calls the doctext.inc and header2.inc file which need the elements of the $formData property.</p><p>The $formData property is primarily a single dimension array with fields from various tables and variables. <br />If the same field name is culled from several tables and populated into the said property, then only the last one prevails.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 29 Dec 2014 17:41:49 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=21943#p21943</guid>
		</item>
	</channel>
</rss>
