We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    Take off:

    ,transform: 'test'


    You’re not transforming an existing DOM field.
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
    • Thanks, I tried that and firebug gives me this error.

      Error: this.store is undefined
      Source File: /assets/components/staffmembers/js/mgr/widgets/SuperBoxSelect.js?v=211pl
      Line: 989

          resetStore: function(){
              this.store.clearFilter();
              if(!this.removeValuesFromStore){
                  return this;
              }
              this.usedRecords.each(function(rec){
                  this.store.add(rec);
              },this);
              this.usedRecords.clear();
              if(!this.store.remoteSort){
                  this.store.sort(this.displayField, 'ASC');	
              }
              
              return this;
          },
      




      EDIT ***

      I didn’t quite post the right code at first!

      I missed out an action.

      Staffmembers.SuperBoxSelect = function (config) {
          config = config || {};
      Ext.applyIf(config, {
      xtype:'superboxselect'
              
              ,triggerAction: 'all'
              ,mode: 'local'
              ,extraItemCls: 'x-tag'
              ,width: 350
      	,fields: ['id','title']
              ,displayField: "title"
              ,valueField: "title"
      	,url: Staffmembers.config.connectorUrl
              ,baseParams: {
                  action: 'mgr/role/getlist'
                  
              }
      		
          });
          Staffmembers.SuperBoxSelect.superclass.constructor.call(this, config);
      };
      Ext.extend(Staffmembers.SuperBoxSelect, Ext.ux.form.SuperBoxSelect);
      Ext.reg('SuperBoxSelect', Staffmembers.SuperBoxSelect);
      


      The getlist is getting details from the DB correctly.
        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
        AugmentBLU - MODX Partner

        BLUcart - MODX Revolution E-Commerce & Shopping Cart
        • 34078
        • 76 Posts
        SuperBoxSelect is now available as MODx package and can be easily installed directly from the MODx Package Management : http://modx.com/extras/package/superboxselect .


          • 18174
          • 116 Posts
          Looks alike this feature became a core member (and integrated into listbox multi Item?), congratulations. Or is there another reason why it dissapeared from the package mgr?
          Since Revo 2.2.0 pl2 there are slight issues here and here. Probabely the founders know why?
            • 38695
            • 2 Posts
            Hi all,

            i just did a little css hack for the height problem in the selector (http://tracker.modx.com/issues/6501) when there is many elements.

            It works with superboxselect (https://github.com/omycode/SuperBoxSelect) with revo 2.2 ( not tried yet with the new multi-line component, because it's simple to hack the css sheet of that component, rather than the core manager css).

            Just forced height auto for some class in assets/components/superboxselect/csssuperboxselect.css

            .x-tab, .x-tab-item, .x-form-element, .x-form-field-wrap, .x-superboxselect, .ext-strict .x-form-field-trigger-wrap .x-form-text, .ext-strict .x-small-editor .x-form-field-trigger-wrap .x-form-text{
            height: auto !important;
            }

            Have a nice day
              • 34078
              • 76 Posts
              Thanks tazeverywhere for the hack !

              SuperBoxSelect is fixed, you can update it from MODX Package Manager.
                • 3232
                • 380 Posts
                Is it possible to use the @EVAL Binding in order to list a specific set of resources?
                  • 34078
                  • 76 Posts
                  No for now, it's just possible to indicate the id of a parent resource and then children are asynchronous loaded in selectbox. More input options are planned but I lack time sad
                    • 3232
                    • 380 Posts
                    no worries, thank you for the update.
                      • 3232
                      • 380 Posts
                      Quote from: ben_omycode at Apr 06, 2012, 01:24 PM
                      No for now, it's just possible to indicate the id of a parent resource and then children are asynchronous loaded in selectbox. More input options are planned but I lack time sad

                      Do you happen to have an example as to how to set the parent id? I don't see anything in the documentation.