<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>glufke.net &#187; Oracle Reports</title>
	<atom:link href="http://glufke.net/tag/oracle-reports/feed/" rel="self" type="application/rss+xml" />
	<link>http://glufke.net</link>
	<description></description>
	<lastBuildDate>Fri, 03 Sep 2010 13:42:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Formatar máscara no Reports dinâmicamente</title>
		<link>http://glufke.net/2008/10/14/formatar-mascara-no-reports-dinamicamente/</link>
		<comments>http://glufke.net/2008/10/14/formatar-mascara-no-reports-dinamicamente/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 13:43:03 +0000</pubDate>
		<dc:creator>glufke</dc:creator>
				<category><![CDATA[Oracle Reports]]></category>

		<guid isPermaLink="false">http://glufke.net/?p=33</guid>
		<description><![CDATA[É possível formatar o número de casas decimais de um campo no Oracle Reports dinâmicamente. Um exemplo de uso deste recurso é quando o usuário deseja escolher a precisão das informações.  
1. Passo &#8211; Criar uma Procedure no Reports
Procedure Config_Format ( P_Format IN NUMBER) is
Begin
  Srw.Attr.Mask :=  Srw.ForMatMask_Attr;
  If   [...]]]></description>
			<content:encoded><![CDATA[<p>É possível formatar o número de casas decimais de um campo no Oracle Reports dinâmicamente. Um exemplo de uso deste recurso é quando o usuário deseja escolher a precisão das informações. <span id="more-33"></span> </p>
<p><strong>1. Passo &#8211; Criar uma Procedure no Reports</strong></p>
<pre class="brush: sql;">Procedure Config_Format ( P_Format IN NUMBER) is
Begin
  Srw.Attr.Mask :=  Srw.ForMatMask_Attr;
  If    P_Format = 0  Then Srw.Attr.ForMatMask  := '-NNNGNNNGNNNGNN0';
  ElsIf P_Format = 1  Then Srw.Attr.ForMatMask  := '-NNNGNNNGNNNGNN0D0';
  ElsIf P_Format = 3  Then Srw.Attr.ForMatMask  := '-NNGNNNGNNNGNN0D000';
  Elsif P_Format = 4  Then Srw.Attr.ForMatMask  := '-NGNNNGNNNGNN0D0000';
  ElsIf P_Format = 5  Then Srw.Attr.ForMatMask  := '-NNNGNNNGNN0D00000';
  ElsIf P_Format = 6  Then Srw.Attr.ForMatMask  := '-NNGNNNGNN0D000000';
  ElsIf P_Format = 7  Then Srw.Attr.ForMatMask  := '-NGNNNGNN0D0000000';
  Else Srw.Attr.ForMatMask  :=  '-NNNGNNNGNNNGNN0D00';
  End If;
  Srw.Set_Attr(0,Srw.Attr);
End;</pre>
<div id="ads_336x280"><script type="text/javascript"><!--
google_ad_client = "pub-8964513116661040";
google_alternate_color = "ffffFF";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text_image";
//2007-09-07: wp_quadrado_gra
google_ad_channel = "0247072216";
google_color_border = "FFFFFF";
google_color_bg = "FFFFff";
google_color_link = "4F82CB";
google_color_text = "000000";
google_color_url = "4F82CB";
//-->
</script><script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p><strong>2. Passo &#8211; Criar uma Trigger no Campo a ser alterado o Formato</strong></p>
<pre class="brush: sql;">  --Incluir a linha abaixo antes do Return(True)
  Config_Format( 4 );  --número de decimais </pre>
<p>Comentários <a href="http://glufke.net/oracle/viewtopic.php?t=540">aqui</a></p>
]]></content:encoded>
			<wfw:commentRss>http://glufke.net/2008/10/14/formatar-mascara-no-reports-dinamicamente/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
