<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5016855170928100386</id><updated>2024-03-05T22:30:44.146-08:00</updated><category term=".NET"/><category term="JQuery"/><category term="ASP.NET"/><category term="ActionScript"/><category term="Ajax"/><category term="Flex"/><category term="WebService"/><category term="ArrayCollection"/><category term="Birt"/><category term="C#"/><category term="FileUpload"/><category term="Flash Builder"/><category term="Web.config"/><category term="beforeDrawDataPointLabel"/><category term="chart"/><category term="combobox"/><category term="crosstab"/><category term="dropdownlist"/><category term="eclipse"/><category term="fundamentos de programación"/><category term="maxJsonLength"/><category term="métodos extendidos"/><category term="oracle 10g"/><category term="pivot"/><category term="pl/sql"/><category term="propiedades"/><title type='text'>BitacoraWeb</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mybinnacle.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mybinnacle.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Omar</name><uri>http://www.blogger.com/profile/11442695596394102178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5016855170928100386.post-3159601392752524731</id><published>2012-09-21T14:49:00.000-07:00</published><updated>2012-09-21T14:49:01.232-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="fundamentos de programación"/><category scheme="http://www.blogger.com/atom/ns#" term="métodos extendidos"/><title type='text'>Métodos extendidos C#</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Métodos extendidos C#&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
Los métodos &amp;nbsp;extendidos son una forma conveniente de
agregar funcionalidad a una clase que no creamos y que por lo tanto no podemos
modificar directamente.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
Por ejemplo, tenemos la clase Producto:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;public class Producto { &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 35.4pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;public int IdProducto
{ get; set; } &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 35.4pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;public string Nombre {
get; set;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 35.4pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;public string Descripcion
{ get; set;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 35.4pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;public decimal Precio
{ get; set; } &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 35.4pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;public string Categoria
{ set; get;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;Y la clase CarritoCompras:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;public class CarritoCompras { &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt; text-indent: 35.4pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;public List&amp;lt;Producto&amp;gt; Productos { get;
set; } &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
Ésta es una clase muy simple que sirve
como envoltura de la lista de productos. Supongamos que necesitamos obtener el
importe total de un listado de productos pero no podemos modificar la clase
porque no tenemos el código fuente. Afortunadamente podemos usar un método extendido
para obtener la funcionalidad que necesitamos.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;public static class MetodosExtendidos { &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 35.4pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;public static decimal PrecioTotal(this
CarritoCompras carrito) { &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 70.8pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;decimal total = 0; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 70.8pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;foreach (Producto prod
in carrito.Productos) { &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 70.8pt; text-indent: 35.4pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;total
+= prod.Precio; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 70.8pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 70.8pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;return total; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 35.4pt;&quot;&gt;
} &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
La palabra reservada &lt;i&gt;&lt;u&gt;this &lt;/u&gt;&lt;/i&gt;en el primer parámetro,
marca el método PrecioTotal como un método extendido. El primer parámetro le
dice a .NET cual es la clase a la que se le aplicará el método extendido; CarritoCompras
en este caso. Éste método recorre la lista de productos y obtiene el precio
total. Despues es tan fácil de usar como si se tratara de un mtodo propio de la
clase:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;class Program { &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 35.4pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;static void
Main(string[] args) { &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 35.4pt;&quot;&gt;
CarritoCompras carrito = new CarritoCompras { &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 70.8pt;&quot;&gt;
Productos = new List&amp;lt;Producto&amp;gt; { &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 70.8pt;&quot;&gt;
new Producto {Nombre = &quot;Kayak&quot;, Precio = 275M}, &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 70.8pt;&quot;&gt;
new Producto { Nombre = &quot;Salvavidas&quot;, Precio = 48.95M}, &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 70.8pt;&quot;&gt;
new Producto { Nombre = &quot;Balón&quot;, Precio = 19.50M}, &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 70.8pt;&quot;&gt;
new Producto { Nombre = &quot;Espinilleras&quot;, Precio = 34.95M} &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 70.8pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 35.4pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;}; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 35.4pt;&quot;&gt;
&lt;span lang=&quot;EN-US&quot;&gt;// get the total value
of the products in the cart &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 35.4pt;&quot;&gt;
decimal total = carrito.PrecioTotal(); &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 35.4pt;&quot;&gt;
Console.WriteLine(&quot;Total: {0:c}&quot;, total); &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin: 0cm 0cm 0.0001pt 35.4pt;&quot;&gt;
} &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormalCxSpMiddle&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mybinnacle.blogspot.com/feeds/3159601392752524731/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mybinnacle.blogspot.com/2012/09/metodos-extendidos-c.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/3159601392752524731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/3159601392752524731'/><link rel='alternate' type='text/html' href='http://mybinnacle.blogspot.com/2012/09/metodos-extendidos-c.html' title='Métodos extendidos C#'/><author><name>Omar</name><uri>http://www.blogger.com/profile/11442695596394102178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5016855170928100386.post-5052141522423797258</id><published>2012-08-02T10:30:00.005-07:00</published><updated>2012-08-02T10:31:38.905-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="crosstab"/><category scheme="http://www.blogger.com/atom/ns#" term="oracle 10g"/><category scheme="http://www.blogger.com/atom/ns#" term="pivot"/><category scheme="http://www.blogger.com/atom/ns#" term="pl/sql"/><title type='text'>Crosstab Oracle 10g</title><content type='html'>La posibilidad de crear tablas cruzadas (crosstab) apareció hasta oracle 11g con la introducción del operador PIVOT; así que si queremos crear una crosstab en versiones anteriores se deben hacer unos cuantos trucos como el que muestro a continuación y que encontre en web de &lt;a asktom.oracle.com=&quot;asktom.oracle.com&quot; asktom=&quot;asktom&quot; f=&quot;f&quot; href=&quot;http://www.blogger.com/href&quot; p=&quot;100:11:0::::P11_QUESTION_ID:7086279412131&quot; pls=&quot;pls&quot; traget=&quot;_blank&quot;&gt;Ask Tom&lt;/a&gt;&amp;nbsp;pero con el inconveniente de que debes saber los valores de la columna que quieres convertir en varias.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;jive-pre&quot;&gt;&lt;code class=&quot;jive-code jive-java&quot;&gt;select name, 
sum(decode(trunc(d,&lt;span style=&quot;color: navy;&quot;&gt;&#39;MM&#39;&lt;/span&gt;),date &lt;span style=&quot;color: navy;&quot;&gt;&#39;2005-06-01&#39;&lt;/span&gt;,amount)) Jun05,
sum(decode(trunc(d,&lt;span style=&quot;color: navy;&quot;&gt;&#39;MM&#39;&lt;/span&gt;),date &lt;span style=&quot;color: navy;&quot;&gt;&#39;2005-07-01&#39;&lt;/span&gt;,amount)) Jul05,
sum(decode(trunc(d,&lt;span style=&quot;color: navy;&quot;&gt;&#39;MM&#39;&lt;/span&gt;),date &lt;span style=&quot;color: navy;&quot;&gt;&#39;2005-08-01&#39;&lt;/span&gt;,amount)) Aug05
from t
group by name;
&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;jive-pre&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
También en la misma
se menciona que si no se saben los valores se debe hacer un procedimiento almacenado que genere una consulta dinamica y dá un ejemplo; así lo hice y funciona de maravilla.&lt;br /&gt;
&lt;br /&gt;
create or replace &lt;br /&gt;
procedure crosstab(o_cursor out sys_refcursor)&lt;br /&gt;
is&lt;br /&gt;
&amp;nbsp;v_cadena VARCHAR2 (10000) := &#39;&#39;;&lt;br /&gt;
&amp;nbsp;esce varchar2 (100) := &#39;&#39;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor c1 is select escenario from tabla where 0 = 0 group by escenario order by 1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; begin&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v_cadena := v_cadena || &#39;select actividad &#39;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; open c1;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOOP&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FETCH c1 INTO esce;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXIT WHEN c1%NOTFOUND;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v_cadena := v_cadena || &#39;, sum(decode(escenario, &#39;&#39;&#39; || esce || &#39;&#39;&#39;, ftotper)) &#39; || esce || &#39; &#39;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end LOOP;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v_cadena := v_cadena || &#39;from tabla where 0=0 &#39;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v_cadena := v_cadena || &#39;group by actividad &#39;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms_output.put_line(v_cadena);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; open o_cursor for v_cadena;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mybinnacle.blogspot.com/feeds/5052141522423797258/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mybinnacle.blogspot.com/2012/08/crosstab-oracle-10g.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/5052141522423797258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/5052141522423797258'/><link rel='alternate' type='text/html' href='http://mybinnacle.blogspot.com/2012/08/crosstab-oracle-10g.html' title='Crosstab Oracle 10g'/><author><name>Omar</name><uri>http://www.blogger.com/profile/11442695596394102178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5016855170928100386.post-6829651945684010649</id><published>2012-07-09T10:44:00.000-07:00</published><updated>2012-07-09T10:47:11.436-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beforeDrawDataPointLabel"/><category scheme="http://www.blogger.com/atom/ns#" term="Birt"/><category scheme="http://www.blogger.com/atom/ns#" term="chart"/><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><title type='text'>Ocultar series label si el valor es 0 (BIRT)</title><content type='html'>El día de hoy me encontré con un problema que no había tenido antes; se me pidió hacer un reporte en birt que tenga una grafica de barras apiladas, que muestre las etiquetas con los valores de cada barra y que si el valor de la barra es 0 no se muestre la etiqueta.&lt;br /&gt;
Parecía facil, lo cierto es que en birt no lo es, así que me dí a la tarea de buscar y encontré por ahí que cuando se va creando la grafica se ejecutan una serie de eventos; uno de ellos es &lt;br /&gt;
beforeDrawDataPointLabel que recibe como parametros los DataPointHints, la etiqueta Label y el &lt;br /&gt;
IChartScriptContext. Al usar éste evento me fué posible lograr lo que se me pidió.&lt;br /&gt;
&lt;br /&gt;
Aqui el código:&lt;br /&gt;
&lt;br /&gt;
function beforeDrawDataPointLabel( dph, label, icsc )&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;if(dph.getDisplayValue() != &quot;0&quot; ){ &lt;br /&gt;
&amp;nbsp;&amp;nbsp;label.setVisible(true);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;else{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;label.setVisible(false);&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
}</content><link rel='replies' type='application/atom+xml' href='http://mybinnacle.blogspot.com/feeds/6829651945684010649/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mybinnacle.blogspot.com/2012/07/el-dia-de-hoy-me-encontre-con-un.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/6829651945684010649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/6829651945684010649'/><link rel='alternate' type='text/html' href='http://mybinnacle.blogspot.com/2012/07/el-dia-de-hoy-me-encontre-con-un.html' title='Ocultar series label si el valor es 0 (BIRT)'/><author><name>Omar</name><uri>http://www.blogger.com/profile/11442695596394102178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5016855170928100386.post-7322707163182410981</id><published>2012-07-05T14:45:00.000-07:00</published><updated>2012-07-05T14:45:21.482-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="maxJsonLength"/><category scheme="http://www.blogger.com/atom/ns#" term="Web.config"/><category scheme="http://www.blogger.com/atom/ns#" term="WebService"/><title type='text'>Incrementar la propiedad maxJsonLength</title><content type='html'>Hace un tiempo hice una pantalla que consultaba una tabla de base de datos y con el resultado llenaba un tabla html con jquery; para ello usaba un servicio web y devolvia los valores en formato JSON y funcionaba bien hasta que los datos devueltos por la consulta se hicieron muy grandes por lo que comenzó a aparecer el clasico error 500. Investigando un poco encontré que esto sucedía porque el tamaño del JSON devuelto superaba el tamaño predeterminado y la solución es agregar lassiguientes lineas al archivo Web.config de la aplicación web.&lt;br /&gt;
&lt;br /&gt;
Espero sea de utilidad&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;system.web.extensions&amp;gt;&lt;br /&gt;
&amp;lt;scripting&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;lt;webServices&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;jsonSerialization maxJsonLength=&quot;50000000&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/webServices&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;lt;/scripting&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;lt;/system.web.extensions&amp;gt;</content><link rel='replies' type='application/atom+xml' href='http://mybinnacle.blogspot.com/feeds/7322707163182410981/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mybinnacle.blogspot.com/2012/07/incrementar-la-propiedad-maxjsonlength.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/7322707163182410981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/7322707163182410981'/><link rel='alternate' type='text/html' href='http://mybinnacle.blogspot.com/2012/07/incrementar-la-propiedad-maxjsonlength.html' title='Incrementar la propiedad maxJsonLength'/><author><name>Omar</name><uri>http://www.blogger.com/profile/11442695596394102178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5016855170928100386.post-6846107033641860088</id><published>2012-06-12T11:24:00.004-07:00</published><updated>2012-06-12T11:25:46.628-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="combobox"/><category scheme="http://www.blogger.com/atom/ns#" term="dropdownlist"/><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="WebService"/><title type='text'>Dropdownchecklist jquery</title><content type='html'>En días pasados encontré esté control de jquery que me resultó muy útil se llama dropdownchelist, éste es el link para su descrga&amp;nbsp;
&lt;a href=&quot;http://dropdown-check-list.googlecode.com/svn/trunk/doc/dropdownchecklist.html&quot;&gt;http://dropdown-check-list.googlecode.com/svn/trunk/doc/dropdownchecklist.html&lt;/a&gt;, en ésta página se explica como utilizarlo y se muestran las limitaciones; en lo personal me gustó por la posibilidad de seleccionar varias opciones, para eso se debe establecer la propiedad &quot;multiple&quot; del control select. Yo lo llené con un webservice y con la ayuda de una libreria jquery llamada jquery.selectboxes.js y el resultado es bastante bueno.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
La manera de inicializar el control es la siguiente&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
$(document).ready(function(){&lt;/div&gt;
&lt;div&gt;
$(&quot;#nombreCombo&quot;).dropdownchecklist();&lt;/div&gt;
&lt;div&gt;
});&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mybinnacle.blogspot.com/feeds/6846107033641860088/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mybinnacle.blogspot.com/2012/06/dropdownchecklist-jquery.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/6846107033641860088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/6846107033641860088'/><link rel='alternate' type='text/html' href='http://mybinnacle.blogspot.com/2012/06/dropdownchecklist-jquery.html' title='Dropdownchecklist jquery'/><author><name>Omar</name><uri>http://www.blogger.com/profile/11442695596394102178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5016855170928100386.post-884199024241904067</id><published>2011-11-22T14:29:00.001-08:00</published><updated>2011-11-22T14:41:07.070-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="Ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="FileUpload"/><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><title type='text'>Subir multiples archivos con JQuery y ASP.NET</title><content type='html'>Para conseguir subir varios archivos con un solo control hay un plugin de JQuery que permite hacerlo. El plugin se llama&amp;nbsp;jquery.MultiFile.js y se puede encontrar en la sig. dirección:&amp;nbsp;&lt;a href=&quot;http://www.fyneworks.com/jquery/multiple-file-upload/&quot;&gt;http://www.fyneworks.com/jquery/multiple-file-upload/&lt;/a&gt;&amp;nbsp;y se puede implementar en un control FileUpload de ASP.NET. A continuación muestro la forma de implementarlo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;asp:FileUpload ID=&quot;uploadFile1&quot; runat=&quot;server&quot; class=&quot;multi&quot; maxlength=&quot;4&quot; accept=&quot;xls|doc|xlsx|docx|pdf&quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Se establece el atributo class=&quot;multi&quot; para que el plugin reconozca que el control va a subir varios archivos y en el atributo maxlength se especifica el número máximo de archivos que se van a subir.&lt;br /&gt;
&lt;br /&gt;
Del lado del servidor se debe implementar el siguiente código en la función que guarda los archivos:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For i As Integer = 0 To files.Count - 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Dim postedFile As HttpPostedFile = files(i)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If postedFile.ContentLength &amp;gt; 0 Then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; postedFile.SaveAs(ConfigurationManager.AppSettings.Item(&quot;ruta&quot;) &amp;amp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Path.GetFileName(postedFile.FileName))&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;br /&gt;
Next i&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mybinnacle.blogspot.com/feeds/884199024241904067/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mybinnacle.blogspot.com/2011/11/subir-multiples-archivos-con-jquery-y.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/884199024241904067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/884199024241904067'/><link rel='alternate' type='text/html' href='http://mybinnacle.blogspot.com/2011/11/subir-multiples-archivos-con-jquery-y.html' title='Subir multiples archivos con JQuery y ASP.NET'/><author><name>Omar</name><uri>http://www.blogger.com/profile/11442695596394102178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5016855170928100386.post-1983929465849189884</id><published>2011-11-22T11:38:00.000-08:00</published><updated>2011-11-22T14:16:59.899-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><title type='text'>Validación de campos vacios del lado del cliente con JQuery</title><content type='html'>.NET tiene controles de validación pero a veces es mejor hacer las validaciones en la maquina del cliente para no cargar mucho de trabajo al servidor; para ello JQuery nos dá muy buenas opciones:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$(&quot;#&amp;lt;%=imbGuardar.ClientId %&amp;gt;&quot;).click(function () {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var errores = &#39;&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($(&quot;#&amp;lt;%=textbox1.ClientId %&amp;gt;&quot;).val() == &#39;&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errores += &#39;Nombre obligatorio. \n&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($(&quot;#&amp;lt;%=textbox2.ClientId %&amp;gt;&quot;).val() == &#39;&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errores += &#39;Lugar obligatorio. \n&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($(&quot;#&amp;lt;%=textbox3.ClientId %&amp;gt;&quot;).val() == &#39;&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errores += &#39;Objetivo obligatorio. \n&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($(&quot;#&amp;lt;%=textbox4.ClientId %&amp;gt;&quot;).val() == &#39;&#39;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; errores += &#39;Fecha obligatoria. \n&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (errores.length &amp;gt; 0) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(errores);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
así al hacer click en el botón asp.net primero hace la validacion del lado del cliente y si no se cumple un criterio no hace la llamada al servidor.&lt;br /&gt;
&lt;br /&gt;
Si te sirve deja un comentario.</content><link rel='replies' type='application/atom+xml' href='http://mybinnacle.blogspot.com/feeds/1983929465849189884/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mybinnacle.blogspot.com/2011/11/validacion-de-campos-vacios-del-lado.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/1983929465849189884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/1983929465849189884'/><link rel='alternate' type='text/html' href='http://mybinnacle.blogspot.com/2011/11/validacion-de-campos-vacios-del-lado.html' title='Validación de campos vacios del lado del cliente con JQuery'/><author><name>Omar</name><uri>http://www.blogger.com/profile/11442695596394102178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5016855170928100386.post-5272377633610660244</id><published>2011-11-22T11:16:00.000-08:00</published><updated>2012-05-22T10:55:09.751-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="Ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="WebService"/><title type='text'>DropDownList asp.net en cascada con JQuery</title><content type='html'>Para usar el siguiente script se debe tener la referencia hacia la libreria&amp;nbsp;jquery.selectboxes.min.js que se puede descargar de la siguiente dirección:&amp;nbsp;&lt;a href=&quot;http://code.google.com/p/jqueryjs/source/browse/trunk/plugins/selectboxes/?r=6185&quot;&gt;http://code.google.com/p/jqueryjs/source/browse/trunk/plugins/selectboxes/?r=6185&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
$(document).ready(function () {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&quot;#dropdownlist1&quot;).change(function () {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $.ajax({&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; type: &quot;POST&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; url: &quot;Servicio.asmx/NombreFuncion&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data: &quot;{parametro1:&#39;&quot; + $(&#39;#dropdownlist1&#39;).val() + &quot;&#39;}&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; contentType: &quot;application/json; charset=utf-8&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dataType: &quot;json&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; success: function (response) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var foros = response;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&#39;#dropdownlist2&#39;).attr(&#39;disabled&#39;, false).removeOption(/./).addOption(&#39;&#39;, &#39;Seleccionar&#39;);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (var i = 0; i &amp;lt; foros.length; i++) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var val = foros[i].valor;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var text = foros[i].nombre;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&#39;#dropdownlist2&#39;).addOption(val, text, false);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; failure: function (response) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(response.d);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;br /&gt;
&lt;br /&gt;
Si te sirve deja un comentario.</content><link rel='replies' type='application/atom+xml' href='http://mybinnacle.blogspot.com/feeds/5272377633610660244/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mybinnacle.blogspot.com/2011/11/dropdownlist-aspnet-en-cascada-con.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/5272377633610660244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/5272377633610660244'/><link rel='alternate' type='text/html' href='http://mybinnacle.blogspot.com/2011/11/dropdownlist-aspnet-en-cascada-con.html' title='DropDownList asp.net en cascada con JQuery'/><author><name>Omar</name><uri>http://www.blogger.com/profile/11442695596394102178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5016855170928100386.post-6166055306455214641</id><published>2011-11-22T10:43:00.001-08:00</published><updated>2011-11-22T10:46:44.859-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript"/><category scheme="http://www.blogger.com/atom/ns#" term="ArrayCollection"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash Builder"/><category scheme="http://www.blogger.com/atom/ns#" term="Flex"/><category scheme="http://www.blogger.com/atom/ns#" term="propiedades"/><title type='text'>Acceder a nombres de propiedades.</title><content type='html'>En ocasiones cuando llenamos un ArrayCollection en base a un HttpService no sabemos como se llaman las propiedades de cada objeto guardado en el. Así que investigué y encontré una forma de saber cuales son las propiedades. Es un código muy sencillo pero en lo personal me ayudó mucho.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
var arr1:Array = new Array();&lt;br /&gt;
for (var propiedad:String in dpAuxiliar[0]){&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;arr1.push(propiedad);&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&lt;br /&gt;
}&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mybinnacle.blogspot.com/feeds/6166055306455214641/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mybinnacle.blogspot.com/2011/11/acceder-nombres-de-propiedades.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/6166055306455214641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/6166055306455214641'/><link rel='alternate' type='text/html' href='http://mybinnacle.blogspot.com/2011/11/acceder-nombres-de-propiedades.html' title='Acceder a nombres de propiedades.'/><author><name>Omar</name><uri>http://www.blogger.com/profile/11442695596394102178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5016855170928100386.post-119462328835520131</id><published>2011-07-14T07:40:00.000-07:00</published><updated>2011-07-14T07:41:27.613-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript"/><category scheme="http://www.blogger.com/atom/ns#" term="Flex"/><title type='text'>Como crear una gráfica de valores acumulados en Flex</title><content type='html'>En cierta ocasión me pidieron que hiciera una gráfica que mostrara el avance acumulado por meses pero que la comumna siguiente se dibujara a partir del valor maximo de la barra anterior asi que se me ocurrió hacer lo siguiente: &lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&#39;color:#000000;background:#ffffff;&#39;&gt;&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;public&lt;/span&gt; function set dataProvider&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;dp&lt;span style=&#39;color:#808030; &#39;&gt;:&lt;/span&gt;ArrayCollection&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;void&lt;/span&gt; &lt;span style=&#39;color:#800080; &#39;&gt;{&lt;/span&gt;

            _dataProvider &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; dp&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

            &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;var&lt;/span&gt; i&lt;span style=&#39;color:#808030; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;int&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#008c00; &#39;&gt;0&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

            &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;for&lt;/span&gt; each &lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;var&lt;/span&gt; obj&lt;span style=&#39;color:#808030; &#39;&gt;:&lt;/span&gt;Object &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;in&lt;/span&gt; _dataProvider&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;{&lt;/span&gt;

                &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;if&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;i&lt;span style=&#39;color:#808030; &#39;&gt;!=&lt;/span&gt;&lt;span style=&#39;color:#008c00; &#39;&gt;0&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;{&lt;/span&gt;

                    &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;if&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;i&lt;span style=&#39;color:#808030; &#39;&gt;!=&lt;/span&gt;&lt;span style=&#39;color:#008c00; &#39;&gt;0&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;&amp;amp;&amp;amp;&lt;/span&gt; i &lt;span style=&#39;color:#808030; &#39;&gt;&amp;lt;&lt;/span&gt; _dataProvider&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;length&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;-&lt;/span&gt;&lt;span style=&#39;color:#008c00; &#39;&gt;1&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;{&lt;/span&gt;

                        &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;if&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;isNaN&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;programado&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;

                        obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;acumulado_programado &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;programado&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

                        &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;else&lt;/span&gt;

                        obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;acumulado_programado &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; Number&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;programado&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;+&lt;/span&gt; Number&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;_dataProvider&lt;span style=&#39;color:#808030; &#39;&gt;[&lt;/span&gt;i&lt;span style=&#39;color:#808030; &#39;&gt;-&lt;/span&gt;&lt;span style=&#39;color:#008c00; &#39;&gt;1&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;]&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;acumulado_programado&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

                        &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;if&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;isNaN&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;real&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;

                        obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;acumulado_real &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;real&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

                        &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;else&lt;/span&gt;

                        obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;acumulado_real &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; Number&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;real&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;+&lt;/span&gt; Number&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;_dataProvider&lt;span style=&#39;color:#808030; &#39;&gt;[&lt;/span&gt;i&lt;span style=&#39;color:#808030; &#39;&gt;-&lt;/span&gt;&lt;span style=&#39;color:#008c00; &#39;&gt;1&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;]&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;acumulado_real&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

                        obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;min&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; Number&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;_dataProvider&lt;span style=&#39;color:#808030; &#39;&gt;[&lt;/span&gt;i&lt;span style=&#39;color:#808030; &#39;&gt;-&lt;/span&gt;&lt;span style=&#39;color:#008c00; &#39;&gt;1&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;]&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;acumulado_programado&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

                        _dataProvider&lt;span style=&#39;color:#808030; &#39;&gt;[&lt;/span&gt;i&lt;span style=&#39;color:#808030; &#39;&gt;]&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;obj&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;                    

                    &lt;span style=&#39;color:#800080; &#39;&gt;}&lt;/span&gt;

                    &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;else&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;{&lt;/span&gt;

                        &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;if&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;isNaN&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;programado&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;

                        obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;acumulado_programado &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;programado&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

                        &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;else&lt;/span&gt;

                        obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;acumulado_programado &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; Number&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;programado&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;+&lt;/span&gt; Number&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;_dataProvider&lt;span style=&#39;color:#808030; &#39;&gt;[&lt;/span&gt;i&lt;span style=&#39;color:#808030; &#39;&gt;-&lt;/span&gt;&lt;span style=&#39;color:#008c00; &#39;&gt;1&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;]&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;acumulado_programado&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

                        &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;if&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;isNaN&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;real&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;

                        obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;acumulado_real &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;real&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

                        &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;else&lt;/span&gt;

                        obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;acumulado_real &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; Number&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;real&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;+&lt;/span&gt; Number&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;_dataProvider&lt;span style=&#39;color:#808030; &#39;&gt;[&lt;/span&gt;i&lt;span style=&#39;color:#808030; &#39;&gt;-&lt;/span&gt;&lt;span style=&#39;color:#008c00; &#39;&gt;1&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;]&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;acumulado_real&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;    

                        obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;min&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; &lt;span style=&#39;color:#008c00; &#39;&gt;0&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

                        _dataProvider&lt;span style=&#39;color:#808030; &#39;&gt;[&lt;/span&gt;i&lt;span style=&#39;color:#808030; &#39;&gt;]&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;obj&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

                    &lt;span style=&#39;color:#800080; &#39;&gt;}&lt;/span&gt;

                &lt;span style=&#39;color:#800080; &#39;&gt;}&lt;/span&gt;

                &lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;else&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;{&lt;/span&gt;

                    obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;acumulado_programado &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; Number&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;programado&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

                    obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;acumulado_real &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; Number&lt;span style=&#39;color:#808030; &#39;&gt;(&lt;/span&gt;obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;real&lt;span style=&#39;color:#808030; &#39;&gt;)&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

                    obj&lt;span style=&#39;color:#808030; &#39;&gt;.&lt;/span&gt;&lt;span style=&#39;color:#800000; font-weight:bold; &#39;&gt;min&lt;/span&gt; &lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt; &lt;span style=&#39;color:#008c00; &#39;&gt;0&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

                    _dataProvider&lt;span style=&#39;color:#808030; &#39;&gt;[&lt;/span&gt;i&lt;span style=&#39;color:#808030; &#39;&gt;]&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;obj&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

                &lt;span style=&#39;color:#800080; &#39;&gt;}&lt;/span&gt;

                i&lt;span style=&#39;color:#808030; &#39;&gt;++&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;;&lt;/span&gt;

            &lt;span style=&#39;color:#800080; &#39;&gt;}&lt;/span&gt;

        &lt;span style=&#39;color:#800080; &#39;&gt;}&lt;/span&gt;

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
y el código mxml para el columnChart es el siguiente:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&#39;color:#000000;background:#ffffff;&#39;&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;ColumnChart&lt;/span&gt; &lt;span style=&#39;color:#274796; &#39;&gt;id&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;chartConfDisp&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt; 
                &lt;span style=&#39;color:#274796; &#39;&gt;dataProvider&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;{dataProvider}&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt; 
                &lt;span style=&#39;color:#274796; &#39;&gt;showDataTips&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;true&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;
                &lt;span style=&#39;color:#274796; &#39;&gt;dataTipFunction&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;dtFunc&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;
                &lt;span style=&#39;color:#274796; &#39;&gt;height&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;100%&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt; &lt;span style=&#39;color:#274796; &#39;&gt;width&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;100%&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt; 
                &lt;span style=&#39;color:#274796; &#39;&gt;itemClick&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;showDetail(event)&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt;
                &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;horizontalAxis&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt;
                    &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;CategoryAxis&lt;/span&gt;  &lt;span style=&#39;color:#274796; &#39;&gt;dataProvider&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;{this.dataProvider}&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt; 
                        &lt;span style=&#39;color:#274796; &#39;&gt;categoryField&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;nombre&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt; &lt;span style=&#39;color:#274796; &#39;&gt;id&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;cat&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;/&gt;&lt;/span&gt;
                &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;horizontalAxis&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt;
                &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;series&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt;
                    &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;ColumnSeries&lt;/span&gt; &lt;span style=&#39;color:#274796; &#39;&gt;id&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;serie1&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt; 
                        &lt;span style=&#39;color:#274796; &#39;&gt;xField&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;nombre&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt; 
                        &lt;span style=&#39;color:#274796; &#39;&gt;yField&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;acumulado_programado&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt; 
                        &lt;span style=&#39;color:#274796; &#39;&gt;displayName&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;{_Programado}&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;
                        &lt;span style=&#39;color:#274796; &#39;&gt;showDataEffect&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;{seriesInterpolate}&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt; &lt;span style=&#39;color:#274796; &#39;&gt;minField&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;min&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt;
                        &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;fill&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt;
                            &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;LinearGradient&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt;
                                &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;GradientEntry&lt;/span&gt; &lt;span style=&#39;color:#274796; &#39;&gt;color&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;#ECE10F&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt; &lt;span style=&#39;color:#274796; &#39;&gt;ratio&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;.0&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;  &lt;span style=&#39;color:#a65700; &#39;&gt;/&gt;&lt;/span&gt;
                                &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;GradientEntry&lt;/span&gt; &lt;span style=&#39;color:#274796; &#39;&gt;color&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;#D3B127&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt; &lt;span style=&#39;color:#274796; &#39;&gt;ratio&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;.8&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;  &lt;span style=&#39;color:#a65700; &#39;&gt;/&gt;&lt;/span&gt;                                
                            &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;LinearGradient&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt;
                        &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;fill&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt;
                    &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;ColumnSeries&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt;
                     &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;LineSeries&lt;/span&gt; 
                         &lt;span style=&#39;color:#274796; &#39;&gt;horizontalAxis&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;{cat}&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;
                        &lt;span style=&#39;color:#274796; &#39;&gt;dataProvider&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;{dataProvider}&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;
                        &lt;span style=&#39;color:#274796; &#39;&gt;xField&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;nombre&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;
                        &lt;span style=&#39;color:#274796; &#39;&gt;yField&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;acumulado_real&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt; 
                        &lt;span style=&#39;color:#274796; &#39;&gt;displayName&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;{_Real}&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt;  
                           &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;lineStroke&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt;
                            &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;Stroke&lt;/span&gt; 
                                &lt;span style=&#39;color:#274796; &#39;&gt;color&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;#587793&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;
                                &lt;span style=&#39;color:#274796; &#39;&gt;weight&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;2&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt; 
                                &lt;span style=&#39;color:#274796; &#39;&gt;alpha&lt;/span&gt;&lt;span style=&#39;color:#808030; &#39;&gt;=&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;.9&lt;/span&gt;&lt;span style=&#39;color:#0000e6; &#39;&gt;&quot;&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;/&gt;&lt;/span&gt;
                         &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;lineStroke&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt; 
                     &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;LineSeries&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt;        
                    
            &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;series&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt;
        
        &lt;span style=&#39;color:#a65700; &#39;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&#39;color:#666616; &#39;&gt;mx&lt;/span&gt;&lt;span style=&#39;color:#800080; &#39;&gt;:&lt;/span&gt;&lt;span style=&#39;color:#5f5035; &#39;&gt;ColumnChart&lt;/span&gt;&lt;span style=&#39;color:#a65700; &#39;&gt;&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;br /&gt;
y el resultado es el siguiente:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT5yQ0fu38I-VNZiK0hf8cm8p4Yq05MBv0pUL4MotQ2mRuiLQ0nGMFV2gApjNRVb9wEyrIUAi4yKi1MeOONVMLeBVz6cDuAgbZH5Gm1_s5Nz4zCki4JUsa-G6DJsC5vEf9aarAvM4CBrGl/s1600/ejemplo_grafica.png&quot; imageanchor=&quot;1&quot; style=&quot;clear:left; float:left;margin-right:1em; margin-bottom:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;82&quot; width=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT5yQ0fu38I-VNZiK0hf8cm8p4Yq05MBv0pUL4MotQ2mRuiLQ0nGMFV2gApjNRVb9wEyrIUAi4yKi1MeOONVMLeBVz6cDuAgbZH5Gm1_s5Nz4zCki4JUsa-G6DJsC5vEf9aarAvM4CBrGl/s320/ejemplo_grafica.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Espero sea de utilidad.</content><link rel='replies' type='application/atom+xml' href='http://mybinnacle.blogspot.com/feeds/119462328835520131/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mybinnacle.blogspot.com/2011/07/como-crear-una-grafica-de-valores.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/119462328835520131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/119462328835520131'/><link rel='alternate' type='text/html' href='http://mybinnacle.blogspot.com/2011/07/como-crear-una-grafica-de-valores.html' title='Como crear una gráfica de valores acumulados en Flex'/><author><name>Omar</name><uri>http://www.blogger.com/profile/11442695596394102178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhT5yQ0fu38I-VNZiK0hf8cm8p4Yq05MBv0pUL4MotQ2mRuiLQ0nGMFV2gApjNRVb9wEyrIUAi4yKi1MeOONVMLeBVz6cDuAgbZH5Gm1_s5Nz4zCki4JUsa-G6DJsC5vEf9aarAvM4CBrGl/s72-c/ejemplo_grafica.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5016855170928100386.post-8375809282647695223</id><published>2011-07-11T08:10:00.000-07:00</published><updated>2011-07-13T07:28:20.193-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript"/><category scheme="http://www.blogger.com/atom/ns#" term="Flex"/><title type='text'>Ocultar columnas de un ColumnChart de Flex dinamicamente</title><content type='html'>En alguna ocasión podriamos necesitar mostrar u ocultar las columnas de una gráfica y encontré que se puede hacer creando controles checkbox e insertandolos en un HBox o un VBox segun se quiera y asignado a la propiedad visible de la serie, el valor de la propiedad selected del checkbox ligado a la serie. Aqui el código:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: rgb(255, 255, 255); color: black;&quot;&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;private&lt;/span&gt; function filtrosGraficas(grafica&lt;span style=&quot;color: #808030;&quot;&gt;:&lt;/span&gt;ColumnChart&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
            hbFiltro&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;removeAllChildren&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
            &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;var&lt;/span&gt; i&lt;span style=&quot;color: #808030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #008c00;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;i&lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt;grafica&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;series&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;i&lt;span style=&quot;color: #808030;&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
                &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;var&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;cos&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;:&lt;/span&gt;ColumnSet &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; grafica&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;series&lt;span style=&quot;color: #808030;&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: #808030;&quot;&gt;]&lt;/span&gt; as ColumnSet&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
                &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;cos&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;==&lt;/span&gt; &lt;span style=&quot;color: #0f4d75;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
                    chkFiltro &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;new&lt;/span&gt; CheckBox&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
                    chkFiltro&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;label &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; grafica&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;series&lt;span style=&quot;color: #808030;&quot;&gt;[&lt;/span&gt;i&lt;span style=&quot;color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;displayName&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
                    chkFiltro&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;selected &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0f4d75;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
                    chkFiltro&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;addEventListener&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;Event&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;CHANGE&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;ocultarColumnSerie&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
                    hbFiltro&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;addChild&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;chkFiltro&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
                &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
                    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;var&lt;/span&gt; col&lt;span style=&quot;color: #808030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #008c00;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;col&lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;cos&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;series&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;col&lt;span style=&quot;color: #808030;&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
                        chkFiltro &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;new&lt;/span&gt; CheckBox&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
                        chkFiltro&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;label &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;cos&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;series&lt;span style=&quot;color: #808030;&quot;&gt;[&lt;/span&gt;col&lt;span style=&quot;color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;displayName&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
                        chkFiltro&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;selected &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0f4d75;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
                        chkFiltro&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;addEventListener&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;Event&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;CHANGE&lt;span style=&quot;color: #808030;&quot;&gt;,&lt;/span&gt;ocultarColumnSerie&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
                        hbFiltro&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;addChild&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;chkFiltro&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
                    &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
                &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;                            
            &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
        &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
        
        &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;private&lt;/span&gt; function ocultarColumnSerie(e&lt;span style=&quot;color: #808030;&quot;&gt;:&lt;/span&gt;Event&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
            &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;var&lt;/span&gt; string1&lt;span style=&quot;color: #808030;&quot;&gt;:&lt;/span&gt;String &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; e&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;currentTarget&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;label&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
            &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;var&lt;/span&gt; cs1&lt;span style=&quot;color: #808030;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;int&lt;/span&gt; &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008c00;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
            &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;cs1&lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #008c00;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;cs1&lt;span style=&quot;color: #808030;&quot;&gt;&amp;lt;&lt;/span&gt;ChPEO&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;series&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;cs1&lt;span style=&quot;color: #808030;&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
                    &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;(&lt;/span&gt;ChPEO&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;series&lt;span style=&quot;color: #808030;&quot;&gt;[&lt;/span&gt;cs1&lt;span style=&quot;color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;displayName&lt;span style=&quot;color: #808030;&quot;&gt;==&lt;/span&gt;string1&lt;span style=&quot;color: #808030;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: purple;&quot;&gt;{&lt;/span&gt;
                        ChPEO&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;series&lt;span style=&quot;color: #808030;&quot;&gt;[&lt;/span&gt;cs1&lt;span style=&quot;color: #808030;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;visible &lt;span style=&quot;color: #808030;&quot;&gt;=&lt;/span&gt; e&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;currentTarget&lt;span style=&quot;color: #808030;&quot;&gt;.&lt;/span&gt;selected&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
                        &lt;span style=&quot;color: maroon; font-weight: bold;&quot;&gt;break&lt;/span&gt;&lt;span style=&quot;color: #808030;&quot;&gt;;&lt;/span&gt;
                    &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
                &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;                                
           &lt;span style=&quot;color: purple;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://mybinnacle.blogspot.com/feeds/8375809282647695223/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mybinnacle.blogspot.com/2011/07/ocultar-columnas-dinamicamente.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/8375809282647695223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/8375809282647695223'/><link rel='alternate' type='text/html' href='http://mybinnacle.blogspot.com/2011/07/ocultar-columnas-dinamicamente.html' title='Ocultar columnas de un ColumnChart de Flex dinamicamente'/><author><name>Omar</name><uri>http://www.blogger.com/profile/11442695596394102178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5016855170928100386.post-4430300158426219990</id><published>2011-07-09T10:46:00.000-07:00</published><updated>2011-07-09T10:46:37.495-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ActionScript"/><category scheme="http://www.blogger.com/atom/ns#" term="Flex"/><title type='text'>Creación de ColumnSeries dinamicas</title><content type='html'>En ocasiones no es posible saber el número de series que tendra nuestra gráfica hasta que tenemos el dataProvider de la misma asi decidí crear una función que resolviera ese detalle. Aqui el código:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;actionscript3&quot; style=&quot;font-family:monospace;color: #006; border: 1px solid #d0d0d0; background-color: #f0f0f0;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #339966; font-weight: bold;&quot;&gt;function&lt;/span&gt; construirArrayGrafica&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;ac&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;ArrayCollection&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;,&lt;/span&gt; data1&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?q=object%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:object.html&quot;&gt;&lt;span style=&quot;color: #004993;&quot;&gt;Object&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #6699cc; font-weight: bold;&quot;&gt;var&lt;/span&gt; series&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;ArrayCollection = &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;new&lt;/span&gt; ArrayCollection&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #6699cc; font-weight: bold;&quot;&gt;var&lt;/span&gt; cs&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;ColumnSeries = &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;new&lt;/span&gt; ColumnSeries&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt; &amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dato = data1&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt; &amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: bold; vertical-align:top;font-weight: bold; color: #006060;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ChGenerico&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;dataProvider = ac&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ChGenerico&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;series = &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;cs&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt; &amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #6699cc; font-weight: bold;&quot;&gt;var&lt;/span&gt; testArrCol&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;ArrayCollection = &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;new&lt;/span&gt; ArrayCollection&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #6699cc; font-weight: bold;&quot;&gt;var&lt;/span&gt; numSerie&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?q=int%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:int.html&quot;&gt;&lt;span style=&quot;color: #004993;&quot;&gt;int&lt;/span&gt;&lt;/a&gt; = &lt;span style=&quot;color: #000000; font-weight:bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #6699cc; font-weight: bold;&quot;&gt;var&lt;/span&gt; i&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?q=int%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:int.html&quot;&gt;&lt;span style=&quot;color: #004993;&quot;&gt;int&lt;/span&gt;&lt;/a&gt; = &lt;span style=&quot;color: #000000; font-weight:bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;,&lt;/span&gt; j&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?q=int%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:int.html&quot;&gt;&lt;span style=&quot;color: #004993;&quot;&gt;int&lt;/span&gt;&lt;/a&gt; = &lt;span style=&quot;color: #000000; font-weight:bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: bold; vertical-align:top;font-weight: bold; color: #006060;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;each&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #6699cc; font-weight: bold;&quot;&gt;var&lt;/span&gt; serie&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?q=object%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:object.html&quot;&gt;&lt;span style=&quot;color: #004993;&quot;&gt;Object&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;in&lt;/span&gt; dato&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;series&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #6699cc; font-weight: bold;&quot;&gt;var&lt;/span&gt; ar&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;ArrayCollection = serie &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;as&lt;/span&gt; ArrayCollection&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;ar &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;!&lt;/span&gt;= &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;each&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #6699cc; font-weight: bold;&quot;&gt;var&lt;/span&gt; elemento&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?q=object%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:object.html&quot;&gt;&lt;span style=&quot;color: #004993;&quot;&gt;Object&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;in&lt;/span&gt; serie&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; series&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;addItem&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;elemento&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: bold; vertical-align:top;font-weight: bold; color: #006060;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;else&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; series&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;addItem&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;serie&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: bold; vertical-align:top;font-weight: bold; color: #006060;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;i=&lt;span style=&quot;color: #000000; font-weight:bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;i&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt;series&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #004993;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;i&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; testArrCol= &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;new&lt;/span&gt; ArrayCollection&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;j=&lt;span style=&quot;color: #000000; font-weight:bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;j&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt;ac&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #004993;&quot;&gt;length&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;j&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;++&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: bold; vertical-align:top;font-weight: bold; color: #006060;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; testArrCol&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;addItem&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;mData&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;ac&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;j&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;nombre&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;,&lt;/span&gt;nData&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;ac&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;j&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;series&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;i&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;yfield&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;,&lt;/span&gt;oData&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;ac&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;j&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;id_unico&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;,&lt;/span&gt;displayName&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;series&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;i&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;display_name&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;,&lt;/span&gt;colorSerie&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;:&lt;/span&gt;series&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;i&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;color_serie&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cs = &lt;span style=&quot;color: #0033ff; font-weight: bold;&quot;&gt;new&lt;/span&gt; ColumnSeries&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cs&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;id = series&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;i&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;display_name&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt; &amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cs&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #004993;&quot;&gt;name&lt;/span&gt; = series&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;i&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;display_name&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: bold; vertical-align:top;font-weight: bold; color: #006060;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cs&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;displayName = series&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;i&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;display_name&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt; &amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cs&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;xField = &lt;span style=&quot;color: #990000;&quot;&gt;&amp;quot;oData&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cs&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;yField = &lt;span style=&quot;color: #990000;&quot;&gt;&amp;quot;nData&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; testArrCol&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;refresh&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: bold; vertical-align:top;font-weight: bold; color: #006060;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cs&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;dataProvider = testArrCol&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt; &amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ChGenerico&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;series&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;numSerie&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; = cs&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; numSerie&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;++;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: bold; vertical-align:top;font-weight: bold; color: #006060;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ChGenerico&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;.&lt;/span&gt;dataProvider=ac&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;;&lt;/span&gt; &amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;font: normal normal 130% &#39;Courier New&#39;, Courier, monospace; color: #003030;&quot;&gt;&lt;div style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mybinnacle.blogspot.com/feeds/4430300158426219990/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mybinnacle.blogspot.com/2011/07/creacion-de-columnseries-dinamicas.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/4430300158426219990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/4430300158426219990'/><link rel='alternate' type='text/html' href='http://mybinnacle.blogspot.com/2011/07/creacion-de-columnseries-dinamicas.html' title='Creación de ColumnSeries dinamicas'/><author><name>Omar</name><uri>http://www.blogger.com/profile/11442695596394102178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5016855170928100386.post-1484758216265496355</id><published>2011-07-07T09:29:00.000-07:00</published><updated>2011-07-07T09:29:09.917-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><title type='text'>Como crear un GridView anidado</title><content type='html'>No te ha pasado que quieres mostrar un lista de datos en una tabla tipo anidado?  Lo mas rápido sería comprar un control, pero se me ocurrió hacer el mio. Aqui la solución:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Private &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;span&gt; consultaUsuarios()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;   Dim&lt;/span&gt;&lt;/span&gt;&lt;span&gt; obj &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt;&lt;/span&gt;&lt;span&gt; Usuario()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;   Dim&lt;/span&gt;&lt;/span&gt;&lt;span&gt; lista &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt;&lt;/span&gt;&lt;span&gt; List(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Of&lt;/span&gt;&lt;/span&gt;&lt;span&gt; Usuario)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;   Try&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;obj.consultaUsuariosRol(lista)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;span&gt; lista.Count &amp;gt; 0 &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;         Dim&lt;/span&gt;&lt;/span&gt;&lt;span&gt; ar &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span&gt; ArrayList = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt;&lt;/span&gt;&lt;span&gt; ArrayList()&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;         Dim&lt;/span&gt;&lt;/span&gt;&lt;span&gt; i &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt;&lt;/span&gt;&lt;span&gt; = 0, j &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt;&lt;/span&gt;&lt;span&gt; = 0&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;ar.Add(i)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;         For&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Each&lt;/span&gt;&lt;/span&gt;&lt;span&gt; user &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span&gt; Usuario &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;In&lt;/span&gt;&lt;/span&gt;&lt;span&gt; lista&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;            If&lt;/span&gt;&lt;/span&gt;&lt;span&gt; user.rol &amp;lt;&amp;gt; lista(i).rol &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Then&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;i = j&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;ar.Add(i)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;            End&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;         j = j + 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;        Next&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;       For&lt;/span&gt;&lt;/span&gt;&lt;span&gt; i = 0 &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;To&lt;/span&gt;&lt;/span&gt;&lt;span&gt; ar.Count – 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;lista.Insert(ar(i) + i, &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt;&lt;/span&gt;&lt;span&gt; Usuario)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;ar(i) = ar(i) + i&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;        Next&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;gvwUsuarios.DataSource = lista&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;gvwUsuarios.DataBind()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;For&lt;/span&gt;&lt;/span&gt;&lt;span&gt; i = 0 &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;To&lt;/span&gt;&lt;/span&gt;&lt;span&gt; ar.Count – 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;gvwUsuarios.Rows(ar(i)).Cells.Clear()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;gvwUsuarios.Rows(ar(i)).Cells.Add(&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt;&lt;/span&gt;&lt;span&gt; TableCell())&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;gvwUsuarios.Rows(ar(i)).Attributes.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;“style”&lt;/span&gt;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;“background-color:#836A5F;color:White”&lt;/span&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;gvwUsuarios.Rows(ar(i)).Cells(0).ColumnSpan = 2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;gvwUsuarios.Rows(ar(i)).Cells(0).Text = lista(ar(i) + 1).rol&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Next&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Catch&lt;/span&gt;&lt;/span&gt;&lt;span&gt; ex &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span&gt; Exception&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Finally&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;obj =&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Nothing&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;lista =&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Nothing&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Try&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mybinnacle.blogspot.com/feeds/1484758216265496355/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mybinnacle.blogspot.com/2011/07/como-crear-un-gridview-anidado.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/1484758216265496355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5016855170928100386/posts/default/1484758216265496355'/><link rel='alternate' type='text/html' href='http://mybinnacle.blogspot.com/2011/07/como-crear-un-gridview-anidado.html' title='Como crear un GridView anidado'/><author><name>Omar</name><uri>http://www.blogger.com/profile/11442695596394102178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>