<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Unable to Access Global Variables on Reports]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8225</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8225&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Unable to Access Global Variables on Reports.]]></description>
		<lastBuildDate>Tue, 18 Jun 2019 16:59:53 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Unable to Access Global Variables on Reports]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35253#p35253</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Tue, 18 Jun 2019 16:59:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35253#p35253</guid>
		</item>
		<item>
			<title><![CDATA[Re: Unable to Access Global Variables on Reports]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35252#p35252</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Braath Waate)]]></author>
			<pubDate>Tue, 18 Jun 2019 14:17:32 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35252#p35252</guid>
		</item>
		<item>
			<title><![CDATA[Unable to Access Global Variables on Reports]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35251#p35251</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Tue, 18 Jun 2019 12:32:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35251#p35251</guid>
		</item>
	</channel>
</rss>
