<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6450</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6450&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in ASC/DESC on 'fun' / 'ord'  NOT WORKING.]]></description>
		<lastBuildDate>Tue, 06 Sep 2016 09:52:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26259#p26259</link>
			<description><![CDATA[<p>I have tried that ....but as said ...value in column are coming form&nbsp; &nbsp;function within function ....</p><p>allow me some time ...i will post my whole CODE of resp. page .... here so that you can to test from your end .... for future development ....</p>]]></description>
			<author><![CDATA[null@example.com (tester1)]]></author>
			<pubDate>Tue, 06 Sep 2016 09:52:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26259#p26259</guid>
		</item>
		<item>
			<title><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26256#p26256</link>
			<description><![CDATA[<p>For a test just replace your code with that from <strong>sales/inquiry/sales_orders_view.php</strong> and see if it displays correctly from your position in the code tree.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 06 Sep 2016 09:19:38 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26256#p26256</guid>
		</item>
		<item>
			<title><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26251#p26251</link>
			<description><![CDATA[<p>Hey,</p><p>BRO, my all value are coming properly .... as i need from functions .... just ASC/DESC not happening..<br />yes that was typo error.... which i have corrected</p>]]></description>
			<author><![CDATA[null@example.com (tester1)]]></author>
			<pubDate>Tue, 06 Sep 2016 06:31:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26251#p26251</guid>
		</item>
		<item>
			<title><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26250#p26250</link>
			<description><![CDATA[<p>typo:<br /><em>funtionp1val</em> =&gt; <strong>functionp1val</strong></p><p>We need to know what is in the <strong>functionp1val()</strong> as well. Are there any variable missing scope?</p><p>Try calling the function ordinarily and see if the values are available.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 06 Sep 2016 06:24:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26250#p26250</guid>
		</item>
		<item>
			<title><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26249#p26249</link>
			<description><![CDATA[<p>bro ,<br />i tried that to but not working ....</p><p>also what is in function i have called another function value .... then it not work</p><p>i means to say </p><p>function sumplp2($row){<br />&nbsp; &nbsp; &nbsp; $p1 = function p1val($row);<br />&nbsp; &nbsp; &nbsp; $p2 = function p2val($row);<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; $totalp1p2 = $p1[&#039;p1&#039;] + $p2[&#039;p2&#039;] ;</p><p>&nbsp; &nbsp; &nbsp;return $totalp1p2 ;</p><p>}</p><p>above one not work only ... you try your self also ....</p><p>thanks</p>]]></description>
			<author><![CDATA[null@example.com (tester1)]]></author>
			<pubDate>Tue, 06 Sep 2016 04:56:29 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26249#p26249</guid>
		</item>
		<item>
			<title><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26237#p26237</link>
			<description><![CDATA[<p>Try to make the addition of p1+p2 in the sql statement itself.</p><p>List the <strong>function get_prodlist()</strong> here to see if anything is amiss.<br />See if <strong>$result</strong> displays a validly executable sql statement when it is assigned.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 02 Sep 2016 17:31:57 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26237#p26237</guid>
		</item>
		<item>
			<title><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26234#p26234</link>
			<description><![CDATA[<p>@apmuthu,<br />Thanks For reply ....</p><p>i have return &quot; return $sql;&nbsp; &quot; which same done in sales_orders_view.php.</p><p>in my case : my column&nbsp; result output from a function ( sumplp2 ) : _(&quot;p1+p2&quot;)=&gt;array(&#039;align&#039;=&gt;&#039;center&#039;,&#039;fun&#039;=&gt;&#039;sumplp2&#039;,&#039;ord&#039;=&gt;&#039;&#039;)</p><p>where in sales/inquiry....<br />_(&quot;Order Total&quot;) =&gt; array(&#039;type&#039;=&gt;&#039;amount&#039;, &#039;ord&#039;=&gt;&#039;&#039;),&nbsp; --- this result is coming from its sql statement ...not from any Function.</p><p>i even try putting &#039;type&#039;=&gt;&#039;amount&#039;&nbsp; thats :&nbsp; _(&quot;p1+p2&quot;)=&gt;array(&#039;align&#039;=&gt;&#039;center&#039;,&#039;fun&#039;=&gt;&#039;sumplp2&#039;,&#039;type&#039;=&gt;&#039;amount&#039;, &#039;ord&#039;=&gt;&#039;&#039;)</p><p>but still no solution .... when i click on my column name its dont perform any asc/desc just clicking happen </p><p>please help me ....</p>]]></description>
			<author><![CDATA[null@example.com (tester1)]]></author>
			<pubDate>Fri, 02 Sep 2016 11:21:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26234#p26234</guid>
		</item>
		<item>
			<title><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26233#p26233</link>
			<description><![CDATA[<p>Make sure that the <strong>$result</strong> is just an <strong>sql statement</strong> and not the <em>executed resultset</em>.</p><p>Check out the last part of <strong>sales/inquiry/sales_orders_view.php</strong> as an example.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 02 Sep 2016 10:52:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26233#p26233</guid>
		</item>
		<item>
			<title><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26229#p26229</link>
			<description><![CDATA[<p>Any solution on above section ......please let me know anyone ....</p>]]></description>
			<author><![CDATA[null@example.com (tester1)]]></author>
			<pubDate>Fri, 02 Sep 2016 04:58:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26229#p26229</guid>
		</item>
		<item>
			<title><![CDATA[ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=26223#p26223</link>
			<description><![CDATA[<p>$result = get_prodlist();</p><p>$cols = array(<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#039;id&#039;=&gt;&#039;skip&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; _(&quot;Sr.No.&quot;)=&gt;array(&#039;align&#039;=&gt;&#039;center&#039;,&#039;ord&#039;=&gt;&#039;&#039;),<br />&nbsp; &nbsp; &nbsp; &nbsp; _(&quot;Name&quot;)=&gt;array(&#039;align&#039;=&gt;&#039;center&#039;),<br />&nbsp; &nbsp; &nbsp; &nbsp; _(&quot;Wgh&quot;)=&gt;array(&#039;align&#039;=&gt;&#039;center&#039;),<br />&nbsp; &nbsp; &nbsp; &nbsp; _(&quot;p1&quot;)=&gt;array(&#039;align&#039;=&gt;&#039;center&#039;),<br />&nbsp; &nbsp; &nbsp; &nbsp; _(&quot;p2&quot;)=&gt;array(&#039;align&#039;=&gt;&#039;center&#039;),<br />&nbsp; &nbsp; &nbsp; &nbsp; _(&quot;p1+p2&quot;)=&gt;array(&#039;align&#039;=&gt;&#039;center&#039;,&#039;fun&#039;=&gt;&#039;sumplp2&#039;,&#039;ord&#039;=&gt;&#039;&#039;)<br />);<br />$table =&amp;new_db_pager(&#039;prodtable&#039;, $result, $cols, &#039;prodtable&#039;,&#039;id&#039;,10); <br />$table-&gt;width = &quot;99%&quot;;<br />display_db_pager($table);</p><p>-----BELOW IS FUNCTION -------</p><p>function sumplp2($row){<br />&nbsp; &nbsp; &nbsp; $p1 = $row[&#039;p1&#039;]; <br />&nbsp; &nbsp; &nbsp; $p2 = $row[&#039;p2&#039;];<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; $totalp1p2 = $p1 + $p2 ; </p><p>&nbsp; &nbsp; &nbsp;return $totalp1p2 ;</p><p>}</p><br /><p>THAT COLUMN DONT DO ASC/DESC&nbsp; - ordering .... any solution why function &#039;ord&#039; column are not working for asc/desc</p>]]></description>
			<author><![CDATA[null@example.com (tester1)]]></author>
			<pubDate>Thu, 01 Sep 2016 12:04:08 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=26223#p26223</guid>
		</item>
	</channel>
</rss>
