1. #171
    Ext JS Premium Member
    Join Date
    May 2008
    Location
    Austria, Vienna
    Posts
    218
    Vote Rating
    1
    abraxxa is on a distinguished road

      0  

    Default


    Why would you post the displayField value to the server when you already post the valueField (id)?

  2. #172
    Sencha User
    Join Date
    Oct 2009
    Posts
    18
    Vote Rating
    0
    sudhirhv is on a distinguished road

      0  

    Default post values

    post values


    Thanks abraxxa for your reply, but I am not posting displayfield, I am just doing a form.submit() and all values are posted into the server, and in the server, I try to access the field values in a servlet using request.getParameter or request.getParameterValues().

    Here if I use "EmailIDTX", it returns null and no value is available from the superboxselect field.

    How do you access the superbox values in a post? Because I could not access it from the request object in the servlet, I used the querystring to pass the values from the field to the server, which I would like to avoid.

    I may be missing something very simple here, but cant get to it.

  3. #173
    Ext JS Premium Member
    Join Date
    May 2008
    Location
    Austria, Vienna
    Posts
    218
    Vote Rating
    1
    abraxxa is on a distinguished road

      0  

    Default


    Take a look at what is submitted by using firebug with firefox or on the server with tcpdump or some debug method of your framework/language.

    The superbox ux posts the id(s) of the selected store records.

    When you say 'querystring' do you mean the url parameters?
    A http post submits values in the http body where a http get does it in the url with parameters.
    If you submit a form this is usually a http post and the values can be found in the body after decoding and deserialization.
    But I don't know what a 'servlet' is and how it does this.

  4. #174
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    @sudhirhv,

    What @abraxxa said - check in Firebug and see what's being posted. The component certainly works with posting values, so you are likely doing something wrong on the server.

  5. #175
    Sencha User
    Join Date
    Oct 2009
    Posts
    18
    Vote Rating
    0
    sudhirhv is on a distinguished road

      0  

    Default Thanks

    Thanks


    Thanks Abraxxa, danh2000.

    It was a mistake from my side, it definitely works..

    I was making an AJAX request and posting the data and had assumed that it would come thru..silly from my side..I have changed it to a standard submit now.

    thanks again for your help!

  6. #176
    Sencha Premium Member
    Join Date
    Jun 2007
    Location
    Ostrava, Czech Republic
    Posts
    43
    Vote Rating
    2
    ostghost is on a distinguished road

      0  

    Exclamation Tabpanel & deferredRender

    Tabpanel & deferredRender


    After some articled detail store is loaded i called

    Code:
    Ext.StoreMgr.get('storeTag').on('load', function() {
    					Ext.each('147,148'.split(','), function(value, key) {
    						console.log('test');
    						Ext.getCmp('tag').addItem( {
    							tag_id : value
    						});
    					});
    				}, this, {
    					single : true
    				});
    				Ext.StoreMgr.get('storeTag').load();
    Everythings works fine till i moved Ext.ux.form.SuperBoxSelect 1st tab to 2nd.

    ct is null
    http://127.0.0.1/domain.tld/public/j...t-all-debug.js
    Line 15666

    Code:
    if(this.el){
    15664 this.el = Ext.get(this.el);
    15665 if(this.allowDomMove !== false){
    15666 ct.dom.insertBefore(this.el.dom, position);
    15667 if (div) {
    15668 Ext.removeNode(div);
    15669 div = null;
    15670 }
    15671 }
    15672 }
    Seems that problem is with deferredRender? Tabpanel has deferredRender : false.
    Ext verision 3.1.1
    Last edited by ostghost; 22 Feb 2010 at 1:24 PM. Reason: Ext version added.

  7. #177
    Sencha User talha06's Avatar
    Join Date
    Jul 2009
    Location
    Turkey
    Posts
    303
    Vote Rating
    0
    talha06 is on a distinguished road

      0  

    Default


    Hello everyone,

    Thanx a lot all to for your hard works..

    I want to select multiple items with SuperBoxSelect, but I can't. I couldn't find the error.. Please can someone help me, thanx..

    Code:
    var myStore = new Ext.data.Store({
                      data: [
                        [ 'Ankara' ],
                        [ 'İstanbul' ],
                        [ 'İzmir' ],
                        [ 'Bursa' ],
                        [ 'Erzurum' ]
                         //...more rows of data removed for readability...//
                      ],
                      reader: new Ext.data.ArrayReader({id:'id'}, [
                         'city'
                      ]
                    )
                });
    
    // form -> item 's inside:
    // SuperBoxSelect
    allowBlank:false,
    msgTarget: 'SuperBoxSelect Example',
    id:'mySuperBoxSelect',
    xtype:'superboxselect',
    fieldLabel: '<b>İller</b>',
    resizable: true,
    name: 'states2',
    anchor:'100%',
    store: myStore,
    mode: 'local',
    displayField: 'city',                    
    navigateItemsWithTab: false

  8. #178
    Ext User
    Join Date
    Dec 2009
    Posts
    18
    Vote Rating
    0
    cq.yangyu@gmail.com is on a distinguished road

      0  

    Default


    yeah,super good

  9. #179
    Sencha User
    Join Date
    Apr 2008
    Posts
    36
    Vote Rating
    0
    lacco is on a distinguished road

      0  

    Default


    Hi, it seems that SuperBoxSelect registers the SuperBoxSelect#onStoreLoad callback on the store, but does not unregister it after desctruction. I propose to use ComboBox#bindStore which is already called after initalize and on destroy:

    Code:
    bindStore: function (store, initial) {
      if(this.store && !initial && this.mode === 'remote'){
        this.store.un('load', this.onStoreLoad, this);
      }
      Ext.ux.form.SuperBoxSelect.superclass.bindStore.call(this, store, initial);
      if(this.store && this.mode === 'remote'){
        this.store.on('load', this.onStoreLoad, this);
      }
    }
    It would be great to include this or a similar fix into the SuperBoxSelect...

  10. #180
    Ext User
    Join Date
    Nov 2009
    Posts
    3
    Vote Rating
    0
    wcasado is on a distinguished road

      0  

    Smile SuperBoxSelect store load issue

    SuperBoxSelect store load issue


    Hi Dan thank you for this great plugging.
    I have a issue with a superboxselect which is loading the store from PHP fine, also it's sending the values to the mysql/php server just fine. However when I load the complete record from the server, which already has the values of the superboxselect, after the form has been loaded it tries to reload it's own store with the values comming from the server.
    Any configuration solution for that?
    Here is a copy of my superboxselect:

    xtype: 'superboxselect',
    id: 'crnsNCFAffectedCombo',
    fieldLabel: 'CF Afectados',
    name: 'crnCustomer_affectedNCFs',
    store: crnsNCFAffectStore,
    valueField: 'ncf',
    displayField: 'ncf',
    typeAhead: true,
    triggerAction: 'all',
    mode: 'remote',
    triggerAction: 'all',
    emptyText: 'Elegir lo(s) o el comprobante(s) fiscal(es) afectado(s)',
    forceSelection: true,
    selectOnFocus: true,
    loadingText: loadingMessage,
    valueDelimiter: '|',
    queryDelay: 800,
    anchor: '99%',
    lastQuery: '',
    listeners: {
    focus: function(){
    var customerCodigo = Ext.getCmp('crnsCustomerCodigo').getValue();
    if(customerCodigo != '') {
    var invType = Ext.getCmp('crnsTypesCombo').getValue();
    if (invType != '') {
    Ext.apply(this.store.baseParams, {
    get_customer_ncfs: customerCodigo,
    inv_type: invType
    });
    this.store.load();
    } else {
    //The user had not select the affected inv type. Throw a message
    this.store.removeAll();
    Ext.MessageBox.show({
    title: 'Mensaje',
    msg: 'Debe elegir el tipo de comprobante afectado!!!',
    buttons: Ext.MessageBox.OK,
    animEl: 'crnsTypesCombo',
    icon: Ext.MessageBox.WARNING
    });
    }
    }
    }
    }


    Thank you for your help!!.

    Wilmag

Thread Participants: 94

  1. Animal (3 Posts)
  2. jay@moduscreate.com (1 Post)
  3. Condor (1 Post)
  4. stever (1 Post)
  5. mystix (5 Posts)
  6. MD (1 Post)
  7. JorisA (1 Post)
  8. randomY (1 Post)
  9. DigitalSkyline (1 Post)
  10. sj137 (3 Posts)
  11. boggle (1 Post)
  12. danh2000 (71 Posts)
  13. ostghost (1 Post)
  14. lossendae (1 Post)
  15. ZooKeeper (1 Post)
  16. greco (1 Post)
  17. Fredric Berling (1 Post)
  18. GraemeBryce (2 Posts)
  19. Strati (2 Posts)
  20. syscobra (2 Posts)
  21. boonkerz (4 Posts)
  22. Sesshomurai (3 Posts)
  23. shamansoft (1 Post)
  24. dorgan (2 Posts)
  25. mjhaston (1 Post)
  26. radtad (5 Posts)
  27. Joyfulbob (2 Posts)
  28. crysfel (1 Post)
  29. armandoxxx (2 Posts)
  30. jarlau (1 Post)
  31. lacco (1 Post)
  32. abraxxa (38 Posts)
  33. prometheus (1 Post)
  34. pops (1 Post)
  35. raphac (1 Post)
  36. Scorpie (2 Posts)
  37. supercharge2 (4 Posts)
  38. jmiguel (2 Posts)
  39. ash11tw (2 Posts)
  40. wojan (1 Post)
  41. ryzmen (1 Post)
  42. nmohler (2 Posts)
  43. wki01 (2 Posts)
  44. gacowarlock (1 Post)
  45. kora.kanchan (1 Post)
  46. senacle (3 Posts)
  47. genie_vn (1 Post)
  48. sergey.s (1 Post)
  49. Grolubao (10 Posts)
  50. mathec (1 Post)
  51. jackjia (1 Post)
  52. polydyne (1 Post)
  53. Antjac (1 Post)
  54. Thomas Triplet (1 Post)
  55. Gonfi (1 Post)
  56. kleins (1 Post)
  57. talha06 (1 Post)
  58. scishop (1 Post)
  59. eztam (2 Posts)
  60. frederickd (10 Posts)
  61. dusoo (2 Posts)
  62. iv_ekker (3 Posts)
  63. pym (1 Post)
  64. sudhirhv (3 Posts)
  65. lanhun (14 Posts)
  66. wcasado (1 Post)
  67. ramana_l_v (3 Posts)
  68. cq.yangyu@gmail.com (1 Post)
  69. siberian (1 Post)
  70. Tommi (4 Posts)
  71. rdblyth (2 Posts)
  72. devtig (3 Posts)
  73. markmansour (1 Post)
  74. dhiren.lodhia (1 Post)
  75. slamhan (1 Post)
  76. panter4 (1 Post)
  77. Korbin (2 Posts)
  78. istetska (1 Post)
  79. ian.young (1 Post)
  80. sebterzi (1 Post)
  81. ucoxk (1 Post)
  82. prakashr (1 Post)
  83. danilo.pederiva (1 Post)
  84. --miCZar-- (2 Posts)
  85. zozofoz (1 Post)
  86. spydercavern (1 Post)
  87. tvelykyy (1 Post)
  88. leorossi (3 Posts)
  89. revertTS (1 Post)
  90. joxzaren (1 Post)
  91. leduc (1 Post)
  92. deepthi_r (1 Post)
  93. qiankun (1 Post)
  94. Mr.Solomon (2 Posts)