<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Unable to Access Global Variables on Reports]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8225&amp;type=atom" />
	<updated>2019-06-18T16:59:53Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8225</id>
		<entry>
			<title type="html"><![CDATA[Re: Unable to Access Global Variables on Reports]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35253#p35253" />
			<content type="html"><![CDATA[<p>I think I didn&#039;t sleep well last night. All is working now <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2019-06-18T16:59:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35253#p35253</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unable to Access Global Variables on Reports]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35252#p35252" />
			<content type="html"><![CDATA[<p>What happens if you add</p><div class="codebox"><pre><code>global $bank_account_types;</code></pre></div><p>or<br /></p><div class="codebox"><pre><code>include_once($path_to_root . &quot;/includes/ui/ui_lists.inc&quot;);</code></pre></div><p>before your code?</p>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2019-06-18T14:17:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35252#p35252</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Unable to Access Global Variables on Reports]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35251#p35251" />
			<content type="html"><![CDATA[<p>Hello, I am unable to access system global variables on reports. While they are accessible on any other page. Any Idea?</p><p>For example I tried calling on rep501.php the global variable <strong>$bank_account_types</strong> even exclusively including <strong>includes/sysnames.inc</strong> like below code</p><div class="codebox"><pre><code>$page_security = &#039;SA_DIMENSIONREP&#039;;
// ----------------------------------------------------------------
// $ Revision:    2.0 $
// Creator:    Joe Hunt
// date_:    2005-05-19
// Title:    Dimension Summary
// ----------------------------------------------------------------
$path_to_root=&quot;..&quot;;

include_once($path_to_root . &quot;/includes/session.inc&quot;);
include_once($path_to_root . &quot;/includes/date_functions.inc&quot;);
include_once($path_to_root . &quot;/includes/data_checks.inc&quot;);
include_once($path_to_root . &quot;/gl/includes/gl_db.inc&quot;);
include_once($path_to_root . &quot;/includes/sysnames.inc&quot;);


//----------------------------------------------------------------------------------------------------

write_sql_to_file(&quot;Dimension Inquiry control_cols&quot;.print_r($bank_account_types,true));</code></pre></div><p>but it gives following error and the global variable is not read</p><div class="codebox"><pre><code>Undefined variable: bank_account_types in file: /home/pakerp/web/pakerp.net/public_html/reporting/rep501.php at line 30</code></pre></div><p>While these variables are accessible from all other UI pages. Why?</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2019-06-18T12:32:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35251#p35251</id>
		</entry>
</feed>
