<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — date_picker is not defined in version 2. 4RC.]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6484&amp;type=atom" />
	<updated>2016-09-23T13:43:30Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6484</id>
		<entry>
			<title type="html"><![CDATA[Re: date_picker is not defined in version 2. 4RC.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26443#p26443" />
			<content type="html"><![CDATA[<p>Thanks @Joe&nbsp; And @Apmuthu,&nbsp; I have solved the problem by referring the js file.&nbsp; It&#039;s solved now.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2016-09-23T13:43:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26443#p26443</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: date_picker is not defined in version 2. 4RC.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26436#p26436" />
			<content type="html"><![CDATA[<p>The function user_use_date_picker() is defined in release 2.4 in file /includes/current_user.inc on line 582. </p><p>Check that you have this file included, otherwise the function is undefined.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2016-09-23T06:46:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26436#p26436</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: date_picker is not defined in version 2. 4RC.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26435#p26435" />
			<content type="html"><![CDATA[<p>The <strong>function user_use_date_picker ()</strong> is not part of core FA 2.3 but in <strong>includes/current_user.inc</strong> in FA 2.4. <s>Assume it is part of your module.</s><br /></p><div class="codebox"><pre><code>function user_use_date_picker()
{
    return $_SESSION[&quot;wa_current_user&quot;]-&gt;prefs-&gt;use_date_picker();
}</code></pre></div><p>The <strong>function get_js_date_picker</strong> is in FA 2.3 and FA 2.4 in <strong>includes/ui/ui_view.inc</strong>.</p><p>The version of the above function in FA 2.3 uses:<br /></p><div class="codebox"><pre><code>$fpath = company_path().&#039;/js_cache/&#039;.&#039;date_picker.js&#039;;</code></pre></div><p>whilst that in FA 2.4 uses:<br /></p><div class="codebox"><pre><code>$fpath = user_js_cache().&#039;/&#039;.&#039;date_picker.js&#039;;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-09-23T03:39:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26435#p26435</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: date_picker is not defined in version 2. 4RC.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26432#p26432" />
			<content type="html"><![CDATA[<p>It looks like a missing include file.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2016-09-22T16:13:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26432#p26432</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[date_picker is not defined in version 2. 4RC.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26431#p26431" />
			<content type="html"><![CDATA[<p>I am working with a custom module. When i have used the code </p><div class="codebox"><pre><code> if (user_use_date_picker ()){
 $js .= get_js_date_picker (); 
} </code></pre></div><p>And i used date_row () function for the date picker. </p><p>But it&#039;s not working.&nbsp; I have seen this error on the console. </p><p>`date_picker is not defined`</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2016-09-22T15:10:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26431#p26431</id>
		</entry>
</feed>
