<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6450&amp;type=atom" />
	<updated>2016-09-06T09:52:06Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6450</id>
		<entry>
			<title type="html"><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26259#p26259" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[tester1]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18290</uri>
			</author>
			<updated>2016-09-06T09:52:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26259#p26259</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26256#p26256" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-09-06T09:19:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26256#p26256</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26251#p26251" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[tester1]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18290</uri>
			</author>
			<updated>2016-09-06T06:31:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26251#p26251</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26250#p26250" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-09-06T06:24:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26250#p26250</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26249#p26249" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[tester1]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18290</uri>
			</author>
			<updated>2016-09-06T04:56:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26249#p26249</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26237#p26237" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-09-02T17:31:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26237#p26237</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26234#p26234" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[tester1]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18290</uri>
			</author>
			<updated>2016-09-02T11:21:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26234#p26234</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26233#p26233" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-09-02T10:52:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26233#p26233</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26229#p26229" />
			<content type="html"><![CDATA[<p>Any solution on above section ......please let me know anyone ....</p>]]></content>
			<author>
				<name><![CDATA[tester1]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18290</uri>
			</author>
			<updated>2016-09-02T04:58:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26229#p26229</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ASC/DESC on 'fun' / 'ord'  NOT WORKING]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26223#p26223" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[tester1]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18290</uri>
			</author>
			<updated>2016-09-01T12:04:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26223#p26223</id>
		</entry>
</feed>
