Hi,

I'am Spanish and my english is too badddd, sorry 

The question:

1 selectbox connect to json query to server ( uController with temp.
sensor), the json is:

{"query": [{"json_id": "Puerto serie disponible", "fecha": "2012-01-22
13:40:40.836348", "editor": "JGenicio"}], "datos": [{"temperatura": 19.0625,
"TL": 23.1875, "TH": 25.0}], "puertos": [{"puerto": "/dev/ttyUSB0",
"dispositivo": "03a5b08768870d3f589cb7088699c989"}]}

The Selectbox:

                        var txt_config= new qx.ui.basic.Label( "Seleccionar 
puerto");
                        var SeleccionPuerto= new qx.ui.form.SelectBox();
                        this.add( txt_config, { row: 1, column: 0});
                        this.add( SeleccionPuerto, { row: 1, column: 1});

The button:

                        var Boton_Scan_Puerto_Serie= new 
qx.ui.form.Button("Recarga...",
"aplicacion/22x22/actions/find.png");
                        Barra_Herramientas.add( Boton_Scan_Puerto_Serie);
                        Boton_Scan_Puerto_Serie.addListener( "execute", 
function()
                                        {
                                                this.setStatus( "Actualiza 
lectura de temperatura");
                                                var url = 
qx.util.ResourceManager.getInstance().toUri(
"http://192.168.1.54:50000/cgi-bin/Domotica/Comunicaciones/RS-232/prueba.py";);
                                                var almacen = new 
qx.data.store.Json( url);
                                                var controller = new 
qx.data.controller.List(null, SeleccionPuerto);
                                                
controller.setLabelPath("temperatura");
                                                almacen.bind("model.datos", 
controller, "model");
                                        }, this);

for first time, reload page, the selectbox is empty. When push the button
selectbox is 'temperatura', but if push the button again, the selectbox
content dont change ¿?

Waths wrong?


Regards...





--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/New-in-QooxDoo-problem-with-selectbox-tp7214521p7214521.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to