What you need to do is to determine what format/structure 'item' is and add
the data to it. I see that you have a debug message of the info, what does
that message look like?
Jim
On Wed, Oct 10, 2012 at 10:51 AM, jwhitten <john_whit...@yahoo.com> wrote:
> Yes, I did look at your suggested solution. Thanks very much for suggesting
> it! Unfortunately, it is very similar to some of the umpteen ways I've
> already tried. Just to be absolutely certain however, I just went back and
> did it up and this is what I got.
>
> Your suggested changes:
>
> _handleSubmit : function(e)
> {
> var item = e.getData();
> qx.core.Init.getApplication().debug("Model: " +
> item.getModel());
>
> qx.core.Init.getApplication().getMainWindow().logEntry(item.getModel());
> var service = this._getService(item);
> var model = item.getModel();
> * model["crudMode"] = "new";
> model["crudName"] = "myName";*
> this._callRpcSync(service, this.getUrl(), *model*);
> }
>
> The results:
>
> <http://qooxdoo.678.n2.nabble.com/file/n7581644/10-10-2012_1-35-32_PM.png>
>
>
> None of the "doctored" parameters make it across.
>
> I had tried just creating new properties-- e.g., model.crudMode =
> this.getCrudMode(), which ends up looking about the same as yours in the
> debugger.
>
> I've also tried making an array starting with my parameters and adding the
> form.model params to it. No good. I've tried making a model using
> qx.data.marshall.Json.createModel() and various attempts to merge the two
> together. It looks great in the debugger, but no go. They don't make it to
> the other end.
>
> On the off chance that I'm doing something weird in my RPC code, here is
> the
> verbatim code lifted straight from my program:
>
>
> _callRpcSync : function(service, url, params) //
> synchronous
> model
> {
> var rpc = new qx.io.remote.Rpc(url, service);
>
> try {
> var results = rpc.callSync(service,
> *qx.util.Serializer.toUriParameter(params)*);
>
> qx.core.Init.getApplication().getMainWindow().logEntry(results);
> return results;
> }
> catch (exc) {
>
> qx.core.Init.getApplication().debug("Exception occured during RPC-SYNC
> call:
> " + exc);
> }
> },
>
>
>
>
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Need-help-with-Models-please-tp7581630p7581644.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel