Hi,

It's perfect your solution.

Simple , almacen.reload();

In a first time, i make a:

controller.resetModel();

But with your solution is perfect.

Thanks.


El 23 de enero de 2012 a las 19:42 arsousa <[email protected]> escribió:

> Hi,
>
> I think I shouldn't create the store and the controller each time you
click.
> You just have to reload the store.
> Something like this:
>
>
> {"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);
>                        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");
>                         Boton_Scan_Puerto_Serie.addListener( "execute",
> function()
>                                         {
>                                                 this.setStatus(
"Actualiza
> lectura de temperatura");
>                                                 almacen.reload();
>
>                                         }, this);
>
> Regards,
>
> Ana Sousa
>
> --
> View this message in context:
http://qooxdoo.678.n2.nabble.com/New-in-QooxDoo-problem-with-selectbox-tp7214521p7217274.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
------------------------------------------------------------------------------
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