Me parece que si lograste la forma de cargar la grilla con un servicio
(me imagino que un HttpRequest), entonces el problema está resuelto,
ya que lograste la comunicación con el servidor. Para guardar los
datos, tenés que implementar un servicio parecido, solamente que los
parámetros que le pasás te sirven para guardarlo, y el servicio no te
devolvería dato alguno (o si).
Para agregados/modificados, sólo basta recorrer el dataset asociado a
la grilla, obtener los records modificados (la grilla tiene un método
que te los proveed) y chequear si el Record ha sido modificado/
agregado. Creo que convendría llamar al servicio que modifica por cada
uno de los records.
Sería de ayuda si postearas parte del codigo (el que te funciona para
cargar y el que intentaste para guardar).

El lunes lo veo y te aviso.
Un abrazo.
Leo

<!--ENGLISH-->
I think that if you could load the grid with a services (I presume a
HttpRequest), the problem should be that, because you made the
connection with the server. To save data, you should do the same and
the parameters that you pass are the data you want to save.
To detect the records on your grid's dataset which have been modified/
added, the grid has a method that gives you those records. Then  you
could call the service to save data for each modified/added record.
If you could post some code, it will help us to help you.
Regards,
Leo



On 6 feb, 18:53, sindroide <[email protected]> wrote:
> thanks leo, it is dificult for me to. I've already read that post. But
> I think that explain how to load data, not saving it.
> Seems like people talk about my needs , but the use ext-js.
>
> http://www.extjs.com/forum/showthread.php?t=73886http://www.extjs.com/forum/showthread.php?t=10002&page=1
>
> is it possible to do something like that with gwt-ext
> really apreciate your help!
>
> On 5 feb, 16:04, leo_BsAs <[email protected]> wrote:
>
>
>
> > Here is a link to help you to do what you 
> > want:http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html
> > If not, you can play a work around with native script and json. You
> > can comunicate by native javascript to an external script of your page
> > (out of gwt), send and ajax request and feed a json variable wich
> > could be accessed by gwt (again, via native script).
>
> > Examples:
> >  public native void  sendParameterToAnExternalService(String param1,
> > String param2)/*-{
>
> > $wnd.nativeAjaxCallImplementationInGeneratedBlahBlahHtml_Service(param1,
> > param2);
> >     }-*/;
>
> >  public native String getContextoSessionString()/*-{
> >     return $wnd.jsonvariable;
> >     }-*/;
>
> > Let me know  if it helps you.
>
> > I'm glad to know that you are from Argentina. You don't know how
> > difficult is to me to explain in english :).
>
> > Saludos! (regards)
>
> > Leo
>
> > @mallapu
> > What he said is basically the same as the first post, but in
> > spanish...
>
> > On Feb 5, 2:06 pm, sindroide <[email protected]> wrote:
>
> > > ey leo gracias por responder, el codigo que tengo se basa en el
> > > ejemplo del Json Grid, salvo que uso ScriptTagProxy.
> > > En el servidor esta el archivo php que conecta a la db, hace la
> > > consulta, lo pasa a json y lo devuelve. Todos los ejemplos que hay son
> > > para traer datos. Pero como podria guardar datos ? por ej si la grilla
> > > fuese editable... o extraer el texto introducido en un campo de texto
> > > y pasarlo al servidor.
>
> > > Como habia mencionado lo intente hacer con RequestBuilder porque segun
> > > lo que lei se acerca mas a lo que necesito hacer. Pero no funciona por
> > > ser una peticion cross domain.
>
> > > saludos desde neuquen y cba!
> > > te agregue al google talk
>
> > > On 5 feb, 13:17, leo_BsAs <[email protected]> wrote:
>
> > > > If you show some code I'll try to help you.
>
> > > > Respect to call a php function from gwt-ext, since the php is
> > > > processed in the server and gwt (javascript) is processed in the
> > > > client there's no way to do that. What you can do, is to call a php
> > > > page and process the response (doing the ajax stuff).
>
> > > > I'll wait for your response.
>
> > > > Leo
>
> > > > On Feb 5, 11:07 am, sindroide <[email protected]> wrote:
>
> > > > > I searched everywhere and still can't reach the solution. I need to
> > > > > implement some gwt app with gwt-ext library having php on server side.
> > > > > I could properly write the code to show some data from mysql in
> > > > > panels, using ScriptTagProxy and Json, but my problem is that I don't
> > > > > realize how to save data back when some modifications are made on a
> > > > > grid, for example. Or save the imput of a text box, or the selected
> > > > > value of a combobox.
>
> > > > > Another thing... how could I call php functions from my client side
> > > > > using gwt-ext?
>
> > > > > I also tried RequestBuilder but it isn't a cross-domain solution...
>
> > > > > I know that gwt-ext is discontinued but I want to use it anyway.
>
> > > > > sinjiv jivan, or anyone else.. some help would be apreciated
> > > > > thanks for advance!- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

-- 
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en.

Reply via email to