<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Dashboard breaks again?]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4054&amp;type=atom" />
	<updated>2013-04-30T04:25:37Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4054</id>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard breaks again?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16518#p16518" />
			<content type="html"><![CDATA[<p>The renderer.php lines 112-114:<br /></p><div class="codebox"><pre><code>                foreach ($sel_application-&gt;modules as $module)
                {
                    echo &quot;&lt;p &quot;.$first.&quot; class=&#039;menu_head&#039;&gt;&quot;.$module-&gt;name.&quot;&lt;/p&gt;\n&quot;;</code></pre></div><p>displays only those modules that are enabled and passed onto it. It appears that the Dashboard module remains inactive as far as ths is concerned even if it has been activated for the company under use.</p><p>Therefore during installation, it must be explicitly be made active in the web root&#039;s installed_extensions.php and accordingly passed on to the one under the company/#/installed_extensions.php as well.</p><p>The non standard approach to having the installed_extensions.php&#039;s array subscript &quot;active&quot; as being <strong>true/false</strong> or <strong>0/1</strong> in the <strong>webroot &#039;s installed_extensions.php</strong> and in the <strong>company/#/installed_extensions.php</strong> may cause problems - better to standardise on either the boolean variant or the integer flag method.</p><p>The dashboard module&#039;s name in line 13 of hooks.php - is it&#039;s case sensitivity important:</p> <br /><div class="codebox"><pre><code>    var $module_name = &#039;dashboard&#039;;</code></pre></div><p>Lines 18-27 of the dashboard module&#039;s dashboard.php:</p><div class="codebox"><pre><code>        //$this-&gt;add_module(_(&quot;Dashboard&quot;));
        $this-&gt;widgets = array();
        $this-&gt;add_extensions();

        $this-&gt;apps = array(&quot;orders&quot;=&gt;_(&quot;Sales&quot;),
                        &quot;AP&quot;=&gt;_(&quot;Purchases&quot;),
                        &quot;stock&quot;=&gt;_(&quot;Items and Inventory&quot;),
                        &quot;manuf&quot;=&gt;_(&quot;Manufacturing&quot;),
                        &quot;GL&quot;=&gt;_(&quot;Banking and General Ledger&quot;),
                        &quot;Dashboard&quot;=&gt;_(&quot;Dashboard&quot;));</code></pre></div><p>also has case sensitive issue for module name and the commented out add_module line.</p><p>Also a list of translatable entries should be placed in an empty.po or some sample language file like en_US.po/mo</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-04-30T04:25:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16518#p16518</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard breaks again?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16517#p16517" />
			<content type="html"><![CDATA[<p>It&#039;s the renderer.php module in the dashboard theme that creates the application tab list, as well as the menu</p>]]></content>
			<author>
				<name><![CDATA[AlastairR]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=9732</uri>
			</author>
			<updated>2013-04-30T03:16:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16517#p16517</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard breaks again?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16514#p16514" />
			<content type="html"><![CDATA[<p>where in the dashboard theme do we enable the dashboard menu tab or where do we enable it by default in the dashboard module install - the hooks.php is quite plain indeed and somewhere defaults are kicking in. The commented out add_module in it does not seem to work even if the comments are removed. Possibly it must be done prior to installation......or activation for a company atleast.....</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-04-30T02:18:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16514#p16514</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard breaks again?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16495#p16495" />
			<content type="html"><![CDATA[<p>I think the user should be able to chose on which tab if need wigdet (and if is ok to waste time or not). My initial point was only that an additional dashboard tab is handy.</p>]]></content>
			<author>
				<name><![CDATA[elax]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6206</uri>
			</author>
			<updated>2013-04-28T08:33:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16495#p16495</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard breaks again?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16494#p16494" />
			<content type="html"><![CDATA[<p>To maintain consistency and backward compatibility, we can have all widgets restricted to the Dashboard Tab with the reminders showing up on the main Dashboard tab by default. This will also make for good help screenshots and menu guides as well.</p><p>Since during FA operation, the end user will be switching between tabs, no need to waste time in having widgets on non-Dashboard tabs.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-04-27T18:11:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16494#p16494</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard breaks again?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16493#p16493" />
			<content type="html"><![CDATA[<p>Why do you need to remove dashboard functionality from other tab ? <br />Maybe it would be just easier to hide dashboard tab when it&#039;s empty (meaning when no widget have been assigned to it) and leave the user put widget wherever he needs to</p>]]></content>
			<author>
				<name><![CDATA[elax]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6206</uri>
			</author>
			<updated>2013-04-27T16:51:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16493#p16493</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard breaks again?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16491#p16491" />
			<content type="html"><![CDATA[<p>The Dashboard menu tab appears only if the <strong>$hide_inaccessible_menu_items = 0;</strong> since it is disabled in the install (how to enable it in the install?) and even then it appears blank.</p><p>The patch needed is to enable all widgets to be available as menu items in the Dashboard menu tab and make it enabled and have the Dashboard functionality removed from other tabs. Possibly the widget display sql can have the WHERE clause tweaked to not care about the menu tab it is to be displayed in and make a decision to display it only if the Dashboard menu tab is selected.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-04-27T14:39:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16491#p16491</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard breaks again?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16489#p16489" />
			<content type="html"><![CDATA[<p>I didn&#039;t do anything to make the dashboard tab appear. As I said I used the normal dashboard module, but my own theme. I understood (I might be wrong) the presence or not if the Dashboard was just a css decision.</p><p>/Elax</p>]]></content>
			<author>
				<name><![CDATA[elax]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6206</uri>
			</author>
			<updated>2013-04-27T09:01:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16489#p16489</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard breaks again?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16485#p16485" />
			<content type="html"><![CDATA[<p>If the <strong>config.php</strong> has:<br /></p><div class="codebox"><pre><code>    $hide_inaccessible_menu_items = 1;</code></pre></div><p>then the Dashboard will not be visible as a menu tab. View it by setting above to 0 (default in FA).</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-04-26T18:06:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16485#p16485</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard breaks again?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16480#p16480" />
			<content type="html"><![CDATA[<p>@elax: You are right. It should be configurable to be either on a separate tab or in each tab. depending on bandwidth, latency and size of recordset the enduser should make an intelligent choice and I would hard code it to be on a separate tab anyway. Please provide patch for hardcoding it on a separate tab and / or making it configurable.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-04-26T15:24:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16480#p16480</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard breaks again?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16479#p16479" />
			<content type="html"><![CDATA[<p>I think the dashboard should be on option. I used a custom theme and have the dashboard tab activated.<br />It&#039;s really usefull as a main dashboard mainly because some widgets can be slow and I don&#039;t want to slow down (too much) my day-to-day workflow with heavy widget.</p><p>Example, I need to enter a customer payment, I press Sales (which display the top 10 customers) then I press payment and pay.</p><p>I have the top 100 customers on the dashboard tab for when I need id .</p><br /><p>/Elax</p>]]></content>
			<author>
				<name><![CDATA[elax]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6206</uri>
			</author>
			<updated>2013-04-26T15:20:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16479#p16479</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Dashboard breaks again?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16478#p16478" />
			<content type="html"><![CDATA[<p>It appears that it is the intended functionality to remove the Menu Tab.</p><p>Quote from <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=15957#p15957">forum post</a>:</p><div class="quotebox"><blockquote><p>There was a dashboard tab in an early iteration because the module adds a new application to FA. It is hidden by the dashboard theme render module (~/themes/dashboard/renderer.php). Originally, only the dashboard tab displayed widgets, but by moving the menu to the side, it made more sense to make every application tab a dashboard and hide the dashboard tab itself. I forgot to hide it from the application list in the dashboard set up form.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-04-26T15:04:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16478#p16478</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Dashboard breaks again?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16473#p16473" />
			<content type="html"><![CDATA[<p>Latest Dashboard theme and module installed and activated from the fa repo does not seem to have a menu tab for itself as was <a href="https://frontaccounting.com/fawiki/uploads/Help/DashboardMenu.png">available earlier and shown in the wiki</a>.</p><p>The current hg 3227 version shows it as in the attachment</p><p>Since the Dashboard Menu tab&#039;s contents like Dashboard Setup and Reminder Setup are now in the Miscellaneous Submenu of the Setup Menu, has the Menu Tab been dispensed with?</p><p>The company/*/js_cache had been flushed and the browser restarted on fresh login to no avail.</p><p>Is this because the Line 18 in <strong>modules/dashboard/dashboard.php</strong> is commented out (line 9-20):<br /></p><div class="codebox"><pre><code>class dashboard_app extends application
{
    var $widgets;
    var $apps;

    function dashboard_app()
    {
        $this-&gt;application(&quot;Dashboard&quot;, _($this-&gt;help_context = &quot;&amp;Dashboard&quot;));

        //$this-&gt;add_module(_(&quot;Dashboard&quot;));
        $this-&gt;widgets = array();
        $this-&gt;add_extensions();</code></pre></div><p>This is so even though the lines 12-21 that call it in <strong>modules/dashboard/hooks.php</strong> are:<br /></p><div class="codebox"><pre><code>class hooks_dashboard extends hooks {
    var $module_name = &#039;dashboard&#039;;

    /*
        Install additonal menu options provided by module
    */
    function install_tabs($app) {

        $app-&gt;add_application(new dashboard_app);
    }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-04-26T11:20:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16473#p16473</id>
		</entry>
</feed>
