<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: P4A 3 goes RC</title>
	<atom:link href="http://fabrizioballiano.net/2008/05/05/p4a-3-goes-rc/feed/" rel="self" type="application/rss+xml" />
	<link>http://fabrizioballiano.net/2008/05/05/p4a-3-goes-rc/</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 15:05:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Fabrizio Balliano</title>
		<link>http://fabrizioballiano.net/2008/05/05/p4a-3-goes-rc/comment-page-1/#comment-2372</link>
		<dc:creator>Fabrizio Balliano</dc:creator>
		<pubDate>Sun, 11 May 2008 13:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/?p=155#comment-2372</guid>
		<description>hum, a data source in a &quot;not loaded&quot; state is completely unuseful and broken thus you should avoid that state, I&#039;m thinking about the unload but i&#039;m a bit skeptical, I&#039;ll talk to andrea about that :-)</description>
		<content:encoded><![CDATA[<p>hum, a data source in a &#8220;not loaded&#8221; state is completely unuseful and broken thus you should avoid that state, I&#8217;m thinking about the unload but i&#8217;m a bit skeptical, I&#8217;ll talk to andrea about that :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://fabrizioballiano.net/2008/05/05/p4a-3-goes-rc/comment-page-1/#comment-2364</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Sat, 10 May 2008 06:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/?p=155#comment-2364</guid>
		<description>Fabrizio,

i&#039;m reading your code to understand the load() method, to avoid the reloading i use a flag, this flag should be in the class (_loaded), and two methods could be implemented: isLoaded() and unload(). What do you think..?

Saludos..!!


Eddie</description>
		<content:encoded><![CDATA[<p>Fabrizio,</p>
<p>i&#8217;m reading your code to understand the load() method, to avoid the reloading i use a flag, this flag should be in the class (_loaded), and two methods could be implemented: isLoaded() and unload(). What do you think..?</p>
<p>Saludos..!!</p>
<p>Eddie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrizio Balliano</title>
		<link>http://fabrizioballiano.net/2008/05/05/p4a-3-goes-rc/comment-page-1/#comment-2343</link>
		<dc:creator>Fabrizio Balliano</dc:creator>
		<pubDate>Fri, 09 May 2008 06:51:31 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/?p=155#comment-2343</guid>
		<description>@Eddie:
1 - i think we should not have methods that make users think that reloading a db_source is possible when it shuld not be done :-(

2 - if you don&#039;t want to share the code you should buy a commercial license (it&#039;s not available now, we&#039;re working on that)

3 - try removing the &quot;;&quot; char from the query</description>
		<content:encoded><![CDATA[<p>@Eddie:<br />
1 &#8211; i think we should not have methods that make users think that reloading a db_source is possible when it shuld not be done :-(</p>
<p>2 &#8211; if you don&#8217;t want to share the code you should buy a commercial license (it&#8217;s not available now, we&#8217;re working on that)</p>
<p>3 &#8211; try removing the &#8220;;&#8221; char from the query</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://fabrizioballiano.net/2008/05/05/p4a-3-goes-rc/comment-page-1/#comment-2335</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Thu, 08 May 2008 17:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/?p=155#comment-2335</guid>
		<description>Fabrizio,

Since the update to 3.0.0-rc my forms with select fields which the source is a query, resets the application.

Ex. (in form):

$field
   -&gt;setSource(P4A::singleton()-&gt;lasts)
   -&gt;setSourceDescriptionField(&quot;code&quot;);

Ex. (in main class):

$lasts =&amp; $this-&gt;build(&quot;P4A_DB_Source&quot;, &quot;lasts&quot;);
$lasts
   -&gt;setQuery(&quot;SELECT * FROM periods;&quot;)
   -&gt;setPk(&quot;id&quot;)
   -&gt;load();

---------------------------------------

Eddie</description>
		<content:encoded><![CDATA[<p>Fabrizio,</p>
<p>Since the update to 3.0.0-rc my forms with select fields which the source is a query, resets the application.</p>
<p>Ex. (in form):</p>
<p>$field<br />
   -&gt;setSource(P4A::singleton()-&gt;lasts)<br />
   -&gt;setSourceDescriptionField(&#8220;code&#8221;);</p>
<p>Ex. (in main class):</p>
<p>$lasts =&amp; $this-&gt;build(&#8220;P4A_DB_Source&#8221;, &#8220;lasts&#8221;);<br />
$lasts<br />
   -&gt;setQuery(&#8220;SELECT * FROM periods;&#8221;)<br />
   -&gt;setPk(&#8220;id&#8221;)<br />
   -&gt;load();</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Eddie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://fabrizioballiano.net/2008/05/05/p4a-3-goes-rc/comment-page-1/#comment-2334</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Thu, 08 May 2008 16:16:32 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/?p=155#comment-2334</guid>
		<description>Ok, i&#039;ll try to implement my solution via helpers, anyway if you can add the methods resetJoin and resetMultivalueFields i&#039;ll be satisfied.

In other words, i need to buy the license to use my application internally without share the source code. What is the procedure...?

Eddie</description>
		<content:encoded><![CDATA[<p>Ok, i&#8217;ll try to implement my solution via helpers, anyway if you can add the methods resetJoin and resetMultivalueFields i&#8217;ll be satisfied.</p>
<p>In other words, i need to buy the license to use my application internally without share the source code. What is the procedure&#8230;?</p>
<p>Eddie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrizio Balliano</title>
		<link>http://fabrizioballiano.net/2008/05/05/p4a-3-goes-rc/comment-page-1/#comment-2333</link>
		<dc:creator>Fabrizio Balliano</dc:creator>
		<pubDate>Thu, 08 May 2008 06:57:52 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/?p=155#comment-2333</guid>
		<description>@Eddie: cause it recreated all data fields destroying the old ones, thus if you used them the references will be lost.

you should not change the structure of a db_source once it&#039;s created, you should only change where/filters/orders but not its structure</description>
		<content:encoded><![CDATA[<p>@Eddie: cause it recreated all data fields destroying the old ones, thus if you used them the references will be lost.</p>
<p>you should not change the structure of a db_source once it&#8217;s created, you should only change where/filters/orders but not its structure</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://fabrizioballiano.net/2008/05/05/p4a-3-goes-rc/comment-page-1/#comment-2332</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Wed, 07 May 2008 22:08:39 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/?p=155#comment-2332</guid>
		<description>Fabrizio,

Why re-call the load() method must be avoided..? Which is the best practice to solve my problem..?


Eddie</description>
		<content:encoded><![CDATA[<p>Fabrizio,</p>
<p>Why re-call the load() method must be avoided..? Which is the best practice to solve my problem..?</p>
<p>Eddie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrizio Balliano</title>
		<link>http://fabrizioballiano.net/2008/05/05/p4a-3-goes-rc/comment-page-1/#comment-2324</link>
		<dc:creator>Fabrizio Balliano</dc:creator>
		<pubDate>Tue, 06 May 2008 19:54:38 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/?p=155#comment-2324</guid>
		<description>@Eddie: I&#039;m wondering if add those methods to core but... I think that you&#039;ve to launch the load() after modifying joins, but re-loading a db_source should be avoided</description>
		<content:encoded><![CDATA[<p>@Eddie: I&#8217;m wondering if add those methods to core but&#8230; I think that you&#8217;ve to launch the load() after modifying joins, but re-loading a db_source should be avoided</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrizio Balliano</title>
		<link>http://fabrizioballiano.net/2008/05/05/p4a-3-goes-rc/comment-page-1/#comment-2323</link>
		<dc:creator>Fabrizio Balliano</dc:creator>
		<pubDate>Tue, 06 May 2008 19:53:33 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/?p=155#comment-2323</guid>
		<description>@Eddie: you could create 2 helpers instead of patching p4a&#039;s files, check the p4a/helpers directory but it&#039;s really easy :-)</description>
		<content:encoded><![CDATA[<p>@Eddie: you could create 2 helpers instead of patching p4a&#8217;s files, check the p4a/helpers directory but it&#8217;s really easy :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://fabrizioballiano.net/2008/05/05/p4a-3-goes-rc/comment-page-1/#comment-2322</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Tue, 06 May 2008 19:48:20 +0000</pubDate>
		<guid isPermaLink="false">http://fabrizioballiano.net/?p=155#comment-2322</guid>
		<description>Fabrizio, a process of my application re-configures the datasources and his relations, i use addJoin and addMultivalueField, but i had to implement two methods in P4_DB_Source: resetJoin and resetMultivalueField. These methods delete all or one indexed element. May be you can implement in the official version.

Saludos. Eddie.</description>
		<content:encoded><![CDATA[<p>Fabrizio, a process of my application re-configures the datasources and his relations, i use addJoin and addMultivalueField, but i had to implement two methods in P4_DB_Source: resetJoin and resetMultivalueField. These methods delete all or one indexed element. May be you can implement in the official version.</p>
<p>Saludos. Eddie.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

