1. #1
    Sencha User
    Join Date
    Nov 2011
    Location
    Brasil
    Posts
    6
    Vote Rating
    0
    victorvidigal is on a distinguished road

      0  

    Default Unanswered: Combobox queryMode: 'remote'

    Unanswered: Combobox queryMode: 'remote'


    Hi, this is my first post. I'm from Brasil.
    I'm trying to use a combobox with queryMode: 'remote'.
    It was worked until I removed this: <script type="text/javascript" src="../../libs/extjs/bootstrap.js"></script>

    Now, I'm using <script type="text/javascript" src="../../libs/extjs/ext-all-debug-w-comments.js"></script>
    But combobox don't work.

    If I use <script type="text/javascript" src="../../libs/extjs/ext-all-debug.js"></script>
    it's work!
    but if I use <script type="text/javascript" src="../../libs/extjs/ext-all.js"></script>
    it's don't work too!

    It's don't send the param 'query' to my server side.
    can somebody help me?

    this is my combo's code:
    Code:
                    xtype: 'combo',
                    id: 'idComboInstituicao',
                    forceSelection: true,
                    listeners:{
                        scope: this,
                        'select': function(combo, record, index) {
                            jQuery.ajax({
                                url: '../../controllers/Facade.php?method=associaInstituicaoUsuario&entity=Docente&idInstituicao='+combo.getValue(),
                                async: false,
                                success: function(data) {
                                    dsInstituicoes.load();
                                    var c = Ext.getCmp('idComboInstituicao');
                                    c.reset();
                                }
                            });
                        }
                    },
                    store: ds,
                    displayField: 'nome',
                    valueField: 'idInstituicao',
                    typeAhead: false,
                    hideLabel: true,
                    hideTrigger:true,
                    anchor: '100%',
                    queryMode: 'remote',
                    queryParam: 'query',
                    triggerAction: 'all',
                    queryCaching: true,
                    autoSelect: true,
                    
                    listConfig: {
                        loadingText: 'Procurando...',
                        emptyText: 'Nenhuma Instituição encontrada.',
                        getInnerTpl: function() {
                            return '<a class="search-item">' +
                            '<h3><span>{nome}</span></h3>' +
                            '</a>' +
                            '{cidade} {uf}';
                        }
                    },
                    pageSize: 10

    thanks

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,791
    Answers
    3465
    Vote Rating
    833
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Just seems to be something funny happening between builds so I would say stick with one that works.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Location
    Brasil
    Posts
    6
    Vote Rating
    0
    victorvidigal is on a distinguished road

      0  

    Default


    however, if I use <script type="text/javascript" src="../../libs/extjs/ext-all-debug.js"></script>
    combobox works but all forms submit in my application don't work.
    the following error occur :
    this.up("form") is undefined


    var form = this.up('form').getForm();

    It's only changing:
    1) <script type="text/javascript" src="../../libs/extjs/ext-all-debug.js"></script>
    and
    2) <script type="text/javascript" src="../../libs/extjs/ext-all-debug-w-comments.js"></script>

  4. #4
    Sencha User
    Join Date
    Nov 2011
    Location
    Brasil
    Posts
    6
    Vote Rating
    0
    victorvidigal is on a distinguished road

      0  

    Default Combobox queryMode: 'remote' (FIX)

    Combobox queryMode: 'remote' (FIX)


    I fix this.
    I downloaded again the extjs and replace all my lib.
    I think that I was mixed two versions of extjs.


    Thank's

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi