<?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: Drop in replacement for V and NV function</title>
	<atom:link href="http://www.inside-oracle-apex.com/drop-in-replacement-for-v-and-nv-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.inside-oracle-apex.com/drop-in-replacement-for-v-and-nv-function/</link>
	<description>Inside Oracle APEX - a blog that helps to get more out of Oracle Application Express (APEX) for your daily development work!</description>
	<lastBuildDate>Mon, 19 Dec 2011 12:04:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Patrick Wolf</title>
		<link>http://www.inside-oracle-apex.com/drop-in-replacement-for-v-and-nv-function/comment-page-1/#comment-66139</link>
		<dc:creator>Patrick Wolf</dc:creator>
		<pubDate>Mon, 11 Oct 2010 15:46:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.inside-oracle-apex.com/en/?p=14#comment-66139</guid>
		<description>Hi David,

actually the drop in replacement for V, NV and DV where just to fix the deterministic problem. In my ApexLib framework I have implemented ApexLib_Item.NV and ApexLib_Item.DV which are taking care of that.

Regards
Patrick</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>actually the drop in replacement for V, NV and DV where just to fix the deterministic problem. In my ApexLib framework I have implemented ApexLib_Item.NV and ApexLib_Item.DV which are taking care of that.</p>
<p>Regards<br />
Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Gale</title>
		<link>http://www.inside-oracle-apex.com/drop-in-replacement-for-v-and-nv-function/comment-page-1/#comment-65965</link>
		<dc:creator>David Gale</dc:creator>
		<pubDate>Sun, 10 Oct 2010 19:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.inside-oracle-apex.com/en/?p=14#comment-65965</guid>
		<description>Patrick,

Sorry to comment on such an old post, but I just got burned by the nv() function, and noticed that your version here has the same (potential) issue. It&#039;s basically the same issue noted by Lev on the dv() function--nv() doesn&#039;t pay attention to format masks. So if a number has a grouping separator, nv() throws an invalid number error. I posted a solution to this using the apex dictionary to get the proper format mask on my blog.

-David</description>
		<content:encoded><![CDATA[<p>Patrick,</p>
<p>Sorry to comment on such an old post, but I just got burned by the nv() function, and noticed that your version here has the same (potential) issue. It&#8217;s basically the same issue noted by Lev on the dv() function&#8211;nv() doesn&#8217;t pay attention to format masks. So if a number has a grouping separator, nv() throws an invalid number error. I posted a solution to this using the apex dictionary to get the proper format mask on my blog.</p>
<p>-David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Wolf</title>
		<link>http://www.inside-oracle-apex.com/drop-in-replacement-for-v-and-nv-function/comment-page-1/#comment-740</link>
		<dc:creator>Patrick Wolf</dc:creator>
		<pubDate>Thu, 08 Feb 2007 19:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.inside-oracle-apex.com/en/?p=14#comment-740</guid>
		<description>Hi Lev,&lt;br/&gt;&lt;br/&gt;you are right, I have added an optional p_format_mask parameter.&lt;br/&gt;&lt;br/&gt;But anyway, it&#039;s better to use the ApexLib function ApexLib_Item.DV, because it automatically knows which format mask has to be used for the conversion.&lt;br/&gt;&lt;br/&gt;Thanks for your suggestion&lt;br/&gt;Patrick</description>
		<content:encoded><![CDATA[<p>Hi Lev,</p>
<p>you are right, I have added an optional p_format_mask parameter.</p>
<p>But anyway, it&#8217;s better to use the ApexLib function ApexLib_Item.DV, because it automatically knows which format mask has to be used for the conversion.</p>
<p>Thanks for your suggestion<br />Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.inside-oracle-apex.com/drop-in-replacement-for-v-and-nv-function/comment-page-1/#comment-739</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 08 Feb 2007 18:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.inside-oracle-apex.com/en/?p=14#comment-739</guid>
		<description>Hi, Patrick&lt;br/&gt;I think that it is better to add format mask to DV function.&lt;br/&gt;Some thing like:&lt;br/&gt;CREATE OR REPLACE FUNCTION DV&lt;br/&gt;  ( p_item   IN VARCHAR2, p_fm  in varchar2&lt;br/&gt;  )&lt;br/&gt;  RETURN DATE DETERMINISTIC&lt;br/&gt;IS&lt;br/&gt;BEGIN&lt;br/&gt;    RETURN TO_DATE(FLOWS_020200.V(p_item), p_fm);&lt;br/&gt;END DV;&lt;br/&gt;/ &lt;br/&gt;&lt;br/&gt;Lev</description>
		<content:encoded><![CDATA[<p>Hi, Patrick<br />I think that it is better to add format mask to DV function.<br />Some thing like:<br />CREATE OR REPLACE FUNCTION DV<br />  ( p_item   IN VARCHAR2, p_fm  in varchar2<br />  )<br />  RETURN DATE DETERMINISTIC<br />IS<br />BEGIN<br />    RETURN TO_DATE(FLOWS_020200.V(p_item), p_fm);<br />END DV;<br />/ </p>
<p>Lev</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Wolf</title>
		<link>http://www.inside-oracle-apex.com/drop-in-replacement-for-v-and-nv-function/comment-page-1/#comment-738</link>
		<dc:creator>Patrick Wolf</dc:creator>
		<pubDate>Sat, 16 Dec 2006 03:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.inside-oracle-apex.com/en/?p=14#comment-738</guid>
		<description>Hi Damir,&lt;br /&gt;&lt;br /&gt;I&#039;m not so familiar with database links, especially if different version are involved. I&#039;m not sure which optimizer (on which db) is responsible. I think the 9.2 one is asked at least for one part of the query (his tables), because only he can has the statistics and can decide what is the best explain plan.&lt;br /&gt;&lt;br /&gt;Be on the save side in that case and use&lt;br /&gt;&lt;br /&gt;SELECT * FROM ORA92_TABLE WHERE ID = (SELECT V(&#039;APEX_ITEM_VALUE&#039;) FROM DUAL);&lt;br /&gt;&lt;br /&gt;That always works, with all DB versions!&lt;br /&gt;&lt;br /&gt;Which &quot;check images&quot; do you mean?&lt;br /&gt;&lt;br /&gt;Patrick</description>
		<content:encoded><![CDATA[<p>Hi Damir,</p>
<p>I&#8217;m not so familiar with database links, especially if different version are involved. I&#8217;m not sure which optimizer (on which db) is responsible. I think the 9.2 one is asked at least for one part of the query (his tables), because only he can has the statistics and can decide what is the best explain plan.</p>
<p>Be on the save side in that case and use</p>
<p>SELECT * FROM ORA92_TABLE WHERE ID = (SELECT V(&#8216;APEX_ITEM_VALUE&#8217;) FROM DUAL);</p>
<p>That always works, with all DB versions!</p>
<p>Which &#8220;check images&#8221; do you mean?</p>
<p>Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damir</title>
		<link>http://www.inside-oracle-apex.com/drop-in-replacement-for-v-and-nv-function/comment-page-1/#comment-737</link>
		<dc:creator>Damir</dc:creator>
		<pubDate>Fri, 15 Dec 2006 16:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.inside-oracle-apex.com/en/?p=14#comment-737</guid>
		<description>We have 10.2.0.2 and db_link to 9.2.06.&lt;br /&gt;&lt;br /&gt;In view on 10g side there is call like:&lt;br /&gt;&lt;br /&gt;select * from ora92_table&lt;br /&gt;where id = v(&#039;APEX_ITEM_VALUE&#039;)&lt;br /&gt;&lt;br /&gt;What is fancy that saving that query in Apex, creates loooong query ...&lt;br /&gt;&lt;br /&gt;This is just a small add to 10g2 deterministic function which should solve the problem of that...looks like the problems still remains ...&lt;br /&gt;&lt;br /&gt;Just my proved 2 c!&lt;br /&gt;&lt;br /&gt;P.S.&lt;br /&gt;BTW, how do you generate these &quot;check images&quot;? THX</description>
		<content:encoded><![CDATA[<p>We have 10.2.0.2 and db_link to 9.2.06.</p>
<p>In view on 10g side there is call like:</p>
<p>select * from ora92_table<br />where id = v(&#8216;APEX_ITEM_VALUE&#8217;)</p>
<p>What is fancy that saving that query in Apex, creates loooong query &#8230;</p>
<p>This is just a small add to 10g2 deterministic function which should solve the problem of that&#8230;looks like the problems still remains &#8230;</p>
<p>Just my proved 2 c!</p>
<p>P.S.<br />BTW, how do you generate these &#8220;check images&#8221;? THX</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Wolf</title>
		<link>http://www.inside-oracle-apex.com/drop-in-replacement-for-v-and-nv-function/comment-page-1/#comment-736</link>
		<dc:creator>Patrick Wolf</dc:creator>
		<pubDate>Fri, 01 Dec 2006 13:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.inside-oracle-apex.com/en/?p=14#comment-736</guid>
		<description>Hi,&lt;br /&gt;&lt;br /&gt;thanks for the info. Don&#039;t know what&#039;s going wrong here.&lt;br /&gt;&lt;br /&gt;Added the content of the script to the posting.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Patrick</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>thanks for the info. Don&#8217;t know what&#8217;s going wrong here.</p>
<p>Added the content of the script to the posting.</p>
<p>Thanks<br />Patrick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.inside-oracle-apex.com/drop-in-replacement-for-v-and-nv-function/comment-page-1/#comment-735</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 01 Dec 2006 13:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.inside-oracle-apex.com/en/?p=14#comment-735</guid>
		<description>script header=access denied!</description>
		<content:encoded><![CDATA[<p>script header=access denied!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

