Comunidad de diseño web y desarrollo en internet online

RELLENAR COMBOBOX CON COLUMNA DE UNA BASE DE DATOS?

Citar            
MensajeEscrito el 15 Feb 2011 10:42 pm
BUENO QUIERO HACER QUE UN COMBOBOX SE AUTORRELLE CON UN LISTADO EN UNA COLUMNA QUE TENGO EN UNA BASE DE DATOS PERO MANDO A LLAMAR LA INFO CON AMFPHP!!! COMO HAGO PARA RELLENARLO EN FLEX?

Por xp3r3grinox

5 de clabLevel



 

firefox
Citar            
MensajeEscrito el 16 Feb 2011 01:39 pm
Creas un ArrayCollection con el resultado. Mira cualquier estructura de dataProvider para un combobox, luego en el onResult de tu llamada a Remoting armas esa misma estructura (array de label/data dentro de un ArrayCollection)

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 21 Feb 2011 05:30 pm
YA ENCONTRE UNA MANERA MAS FACIL, DECLARAS UN ArrayList EN LA PARTE Declarations DE ESTE MODO:

<fx:Declarations>
<s:ArrayList id="localidad" source="{MIP.obtenerLocalidad.lastResult}"/>
</fx:Declarations>

LE PONES UN ID Y EL SOURCE ES DE DONDE MANDAS A LLAMAR LA INFORMACION, Y PARA PONERLO EN UN COMPONENTE COMO UN COMBOBOX O UN DATAGRID SOLO LE PONES EN EL DATAPROVIDER EL NOMBRE DEL ARRAYLIST QUE EN ESTE CASO ES LOCALIDAD Y LISTO!!!! ASI DE SENCILLO!!!

Por xp3r3grinox

5 de clabLevel



 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.