Please help me. I need to get the qx.data.controller.Object and model from a qx.ui.mobile.form.Group in the way I get them from a Form. This is what I do to get the model (and data), from a mobile form as explained in a qooxdoo tutorial. var controller = new qx.data.controller.Form(null,form,false); * var model = controller.createModel(false); * The form is a qx.ui.mobile.form.Form that contains input widgets.
My problem with the form is that it won't let me add more than one input widget per row. I need more than one widget per row to later get data model for saving. Apparently I can only add more input widgets per row when I use a Group or a Composite widget, so I would like to create a model from the Group or Composite with the contained input fields in the way I do from a Form. Thanks in advance. Jorge. > From: qooxdoo-devel-requ...@lists.sourceforge.net > Subject: qooxdoo-devel Digest, Vol 109, Issue 2 > To: qooxdoo-devel@lists.sourceforge.net > Date: Wed, 3 Jun 2015 16:38:23 +0000 > > Send qooxdoo-devel mailing list submissions to > qooxdoo-devel@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > or, via email, send a message with subject or body 'help' to > qooxdoo-devel-requ...@lists.sourceforge.net > > You can reach the person managing the list at > qooxdoo-devel-ow...@lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of qooxdoo-devel digest..." > > > Today's Topics: > > 1. Re: Cannot download contributions (halcwb) > 2. Change of qooxdoo virtual list's length (new item insert) > (Phyo Arkar) > 3. Re: Updating data of object inside array (Phyo Arkar) > 4. Re: Help with mobile forms (SQville) > 5. Qooxdoo focus set & restore (Dmitry A. Golubkov) > 6. Re: Qooxdoo focus set & restore (Mustafa Sak) > 7. Re: Change of qooxdoo virtual list's length (new item insert) > (Mustafa Sak) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 2 Jun 2015 00:22:31 -0700 (MST) > From: halcwb <hal...@gmail.com> > Subject: Re: [qooxdoo-devel] Cannot download contributions > To: qooxdoo-devel@lists.sourceforge.net > Message-ID: <1433229751276-7587201.p...@n2.nabble.com> > Content-Type: text/plain; charset=us-ascii > > Apparently, there was some problem with sf, I can download just fine at the > moment. > > > > -- > View this message in context: > http://qooxdoo.678.n2.nabble.com/Cannot-download-contributions-tp7587199p7587201.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > > > ------------------------------ > > Message: 2 > Date: Wed, 3 Jun 2015 01:27:50 +0630 > From: Phyo Arkar <phyo.arkarl...@gmail.com> > Subject: [qooxdoo-devel] Change of qooxdoo virtual list's length (new > item insert) > To: qooxdoo-devel <qooxdoo-devel@lists.sourceforge.net> > Message-ID: > <CA+HjJriOu+y1awer-w_XDsoU5dVUPDTzq=xmmjn2hrtz_ux...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > What event to listen for change of qx.ui.list.List's Length and that new > added list item is ready ? > > I know qx.type.Array() have change event , but if i listen there and scroll > to bottom , it never got to the bottom . > > This what i am trying to do , but want to scroll after that last row is > added. > > this.chat_list.addListener("change", function() { > console.log('model_changed') > this.chat_list.scrollToY(1e99); > },this) > > ? > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 3 > Date: Wed, 3 Jun 2015 01:28:19 +0630 > From: Phyo Arkar <phyo.arkarl...@gmail.com> > Subject: Re: [qooxdoo-devel] Updating data of object inside array > To: qooxdoo Development <qooxdoo-devel@lists.sourceforge.net> > Message-ID: > <CA+HjJrh1CStM-D_EoovQnMiHZZaPMbbnUX2=yzH=me67bcr...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Thanks , i used map and it work as i wanted. > > On Fri, May 29, 2015 at 4:07 AM, slah <slach...@gmail.com> wrote: > > > Hello, > > one option is to use the filter function, > > > > var ar = [{"content": "content", "id": > > "b0e9eddc-ef07-4189-a45c-b15ab5986ad8", > > "parent": "default", "stamp": 1432829154.657, "type": "message_vote", > > "user": {"user_name": "v3ss0n", "userid": > > "31fa17e5-5b65-4526-ab66-d4afcf7d1750"}, > > "vcount": -1}]; > > > > var result = ar.filter(function(obj ) { > > return obj.id == "b0e9eddc-ef07-4189-a45c-b15ab5986ad8"; > > }); > > > > You may also try a simple for loop. > > > > Regards, > > > > > > > > > > > > > > Phyo Arkar wrote > > > i have data like this, for qooxdoo list: > > > > > > [{"content": "content", "id": "b0e9eddc-ef07-4189-a45c-b15ab5986ad8", > > > "parent": "default", "stamp": 1432829154.657, "type": "message_vote", > > > "user": {"user_name": "v3ss0n", "userid": > > > "31fa17e5-5b65-4526-ab66-d4afcf7d1750"}, > > > "vcount": -1}] > > > > > > There will be a lot of items , 100k + > > > > > > What i want to do is update value of item inside by searching "id": > > > "b0e9eddc-ef07-4189-a45c-b15ab5986ad8" , > > > . > > > Is there built in array methods to do it efficiently? > > > What would be most efficient way to do ? > > > Can i bind object instead of array of object so i can select index by > > > [?b0e9eddc-ef07-4189-a45c-b15ab5986ad8?] ? > > > > > > Thanks. > > > ? > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > qooxdoo-devel mailing list > > > > > qooxdoo-devel@.sourceforge > > > > > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > > > > > > > > > -- > > View this message in context: > > http://qooxdoo.678.n2.nabble.com/Updating-data-of-object-inside-array-tp7587196p7587198.html > > Sent from the qooxdoo mailing list archive at Nabble.com. > > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > qooxdoo-devel mailing list > > qooxdoo-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 4 > Date: Tue, 2 Jun 2015 16:12:13 -0700 (MST) > From: SQville <chris.es...@sqville.com> > Subject: Re: [qooxdoo-devel] Help with mobile forms > To: qooxdoo-devel@lists.sourceforge.net > Message-ID: <1433286733160-7587204.p...@n2.nabble.com> > Content-Type: text/plain; charset=us-ascii > > Jorge > > First create a custom Form Renderer by copying > qx.ui.mobile.form.renderer.Single (Single.js) and creating your own (i.e. > appname.form.renderer.JorgeFormRenderer) to add to your project. > > In your new form renderer add "qx.ui.mobile.container.Composite" to > ONE_LINE_WIDGETS static array. > > Now set your form's renderer to your new form renderer: > > form.setRenderer(appname.form.renderer.JorgeFormRenderer); > > Now create the Hbox container that will hold your input widgets: > > var layout = new qx.ui.mobile.layout.HBox().set({alignX:"center"}); > var container = new qx.ui.mobile.container.Composite(layout); > container.add(new qx.ui.mobile.form.TextField().set({ placeholder: "First > Name" })); > container.add(new qx.ui.mobile.form.TextField().set({ placeholder: "Last > Name" }), {flex:1}); > > Add the container to your form: > > form.add(container, "Name"); > > Hope this helps, > > Chris > > > > -- > View this message in context: > http://qooxdoo.678.n2.nabble.com/Help-with-mobile-forms-tp7587200p7587204.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > > > ------------------------------ > > Message: 5 > Date: Wed, 3 Jun 2015 14:20:58 +0300 > From: "Dmitry A. Golubkov" <mas...@hsdesign.ru> > Subject: [qooxdoo-devel] Qooxdoo focus set & restore > To: qooxdoo Development <qooxdoo-devel@lists.sourceforge.net> > Message-ID: > <CAE636Yv0QhN9kqYom+VV+oXWZ1K48b8PcCKPGma=Tn=f7w5...@mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > Dear Community, > > Please help me to get the right way with the following: > > 1. In case, when one modal window open another one modal window (for > instance by click on form button), I want to restore focus on this > button after second window close. At now on second window close focus > set to Application Root. Of course I can do it inside window close > handler, but I think it is > not a general way. > > 2. On window open focus set to this window, but for most cases I want > to have focus on form field inside this window. What the right way to > do it? override "focus" method, override "open" method, or set focus > on "appear" event? > > -- > Best regards, > Dmitry Golubkov. > > > > ------------------------------ > > Message: 6 > Date: Wed, 3 Jun 2015 16:07:47 +0000 > From: Mustafa Sak <mustafa....@1und1.de> > Subject: Re: [qooxdoo-devel] Qooxdoo focus set & restore > To: qooxdoo Development <qooxdoo-devel@lists.sourceforge.net> > Message-ID: > <020c8382525b40a9bc69a31cdb5d9d89@BAPPEX004-MBX.webde.local> > Content-Type: text/plain; charset="iso-8859-1" > > 1. Please look at the API of MDesktop [1]. That mixin is included to the > application root by default. > > I would try to listen at the focus event on root and forward the focus to the > active window if one is opened, or the most top one. Just play a bit around > with that. > > 2. "appear" is the best event to set focus manually. So what's wrong if you > would just add a listener to the input field you want to be focused? > Like: > Textfield.addListener("appear", function() { > // wrap the focus into a time out to be sure that no other handler gets the > focus back > windows.setTimeout(this.focus.bind(this), 100); > }); > > > > [1] > http://demo.qooxdoo.org/current/apiviewer/#qx.ui.window.MDesktop~activeWindow!property > > Mustafa Sak > Softwareentwickler > Mail Development > 1&1 Mail & Media Development & Technology GmbH | Brauerstra?e 48 | 76135 > Karlsruhe | Germany > Phone: +49 721 91374-6977 > E-Mail:?mustafa....@1und1.de?| Web:?www.1und1.de > > -----Urspr?ngliche Nachricht----- > Von: Dmitry A. Golubkov [mailto:mas...@hsdesign.ru] > Gesendet: Mittwoch, 3. Juni 2015 13:21 > An: qooxdoo Development > Betreff: [qooxdoo-devel] Qooxdoo focus set & restore > > Dear Community, > > Please help me to get the right way with the following: > > 1. In case, when one modal window open another one modal window (for instance > by click on form button), I want to restore focus on this button after second > window close. At now on second window close focus set to Application Root. Of > course I can do it inside window close handler, but I think it is not a > general way. > > 2. On window open focus set to this window, but for most cases I want to have > focus on form field inside this window. What the right way to do it? override > "focus" method, override "open" method, or set focus on "appear" event? > > -- > Best regards, > Dmitry Golubkov. > > ------------------------------------------------------------------------------ > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > ------------------------------ > > Message: 7 > Date: Wed, 3 Jun 2015 16:38:15 +0000 > From: Mustafa Sak <mustafa....@1und1.de> > Subject: Re: [qooxdoo-devel] Change of qooxdoo virtual list's length > (new item insert) > To: qooxdoo Development <qooxdoo-devel@lists.sourceforge.net> > Message-ID: > <ff6d424c35044d75863cd69a6856031e@BAPPEX004-MBX.webde.local> > Content-Type: text/plain; charset="utf-8" > > First of all the list model will fire a change, which you should listen to. > > But the time on changing the model is not the one, when the list widget > renders the change. So you have to wait till the queue has been flushed. > The easiest way is to use the widget queue which will call a function named > syncWidget after the next render flush. > > So your code could be like this: http://tinyurl.com/pf33qvn > > Mustafa Sak > Softwareentwickler > Mail Development > 1&1 Mail & Media Development & Technology GmbH | Brauerstra?e 48 | 76135 > Karlsruhe | Germany > Phone: +49 721 91374-6977 > E-Mail: mustafa....@1und1.de<mailto:mustafa....@1und1.de> | Web: > www.1und1.de<http://www.1und1.de/> > > Von: Phyo Arkar [mailto:phyo.arkarl...@gmail.com] > Gesendet: Dienstag, 2. Juni 2015 20:58 > An: qooxdoo-devel > Betreff: [qooxdoo-devel] Change of qooxdoo virtual list's length (new item > insert) > > What event to listen for change of qx.ui.list.List's Length and that new > added list item is ready ? > > I know qx.type.Array() have change event , but if i listen there and scroll > to bottom , it never got to the bottom . > > This what i am trying to do , but want to scroll after that last row is added. > > this.chat_list.addListener("change", function() { > > console.log('model_changed') > > this.chat_list.scrollToY(1e99); > > },this) > ? > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------ > > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > End of qooxdoo-devel Digest, Vol 109, Issue 2 > *********************************************
------------------------------------------------------------------------------
_______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel