|
|||||||
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
Hi,
I am using combo with the autocomplete feature. min text length is set to 3 chars. when i first time search it queries and bring the relevant data matching the text. next time it works for same text since store has the records. now i clear the store for some reason and again try to search with the same text, it doesnt query to bring the records. what needs to be reset? any clue? |
|
#2
|
||||
|
||||
|
Show code
__________________
ExtJs forum volunteer. No official connection to the Ext Company. I do not speak for them. ExtJs consultancy offered. £ 50/hour. Evenings+weekends. the_bagbournes@btinternet.com Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu Read the docs too: http://extjs.com/deploy/dev/docs/ See Saki's samples: http://examples.extjs.eu/ Build your own Ext: http://extjs.com/products/extjs/build/ Scope: http://extjs.com/forum/showthread.ph...642#post257642 |
|
#3
|
|||
|
|||
|
new Ext.form.ComboBox({
id:'appNameSearch', name:'appNameSearch', nowrap: true, store: a2rm.application.gridlist.store, displayField:'name', fieldLabel: 'Search', emptyText : 'Search app name...', forceSelection: true, valueField:'id', typeAhead: true, loadingText: 'Searching...', width: 200, listWidth:300, pageSize:10, minChars:3, hideTrigger:true, mode:'remote', allowBlank: false, selectOnFocus: true, valueNotFoundText: '', enableKeyEvents: true, queryDelay: 1000, listeners:{ select : this.loadAppDetails, beforequery : function (evt) { if(this.getRawValue().length > 2) { //alert('/ARM/API/applications/?qbw='+this.getRawValue()); this.store.proxy.setUrl( '/ABC/XYZ/apps/?qbw='+this.getRawValue()) ; } else returnfalse; } } }) qbw id query begins with which is interpreted by the service to return the results. Thanks!! |
|
#4
|
|||
|
|||
|
new Ext.form.ComboBox({
id:'appNameSearch', name:'appNameSearch', nowrap: true, store: xyz.application.gridlist.store, displayField:'name', fieldLabel: 'Search', emptyText : 'Search app name...', forceSelection: true, valueField:'id', typeAhead: true, loadingText: 'Searching...', width: 200, listWidth:300, pageSize:10, minChars:3, hideTrigger:true, mode:'remote', allowBlank: false, selectOnFocus: true, valueNotFoundText: '', enableKeyEvents: true, queryDelay: 1000, listeners:{ select : this.loadAppDetails, beforequery : function (evt) { if(this.getRawValue().length > 2) { this.store.proxy.setUrl( '/ABC/XYZ/apps/?qbw='+this.getRawValue()) ; } else returnfalse; } } }) qwb is our application specific param for the webservice it means "query starts with" |
|
#5
|
||||
|
||||
|
You're going to need to format that before anyone reads it.
No color tags, no font tags, just [code]...[/code] tags round it.
__________________
ExtJs forum volunteer. No official connection to the Ext Company. I do not speak for them. ExtJs consultancy offered. £ 50/hour. Evenings+weekends. the_bagbournes@btinternet.com Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu Read the docs too: http://extjs.com/deploy/dev/docs/ See Saki's samples: http://examples.extjs.eu/ Build your own Ext: http://extjs.com/products/extjs/build/ Scope: http://extjs.com/forum/showthread.ph...642#post257642 |
|
#6
|
|||
|
|||
|
why no color codes?
|
|
#7
|
||||
|
||||
|
why color codes?
__________________
ExtJs forum volunteer. No official connection to the Ext Company. I do not speak for them. ExtJs consultancy offered. £ 50/hour. Evenings+weekends. the_bagbournes@btinternet.com Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu Read the docs too: http://extjs.com/deploy/dev/docs/ See Saki's samples: http://examples.extjs.eu/ Build your own Ext: http://extjs.com/products/extjs/build/ Scope: http://extjs.com/forum/showthread.ph...642#post257642 |
|
#8
|
|||
|
|||
|
done!
|
|
#9
|
||||
|
||||
|
I sometimes wonder what goes on here?
I know people don't read their own code, but just copy/paste any old thing they find on the interwebs, close their eyes tightly and wish for it to work. But it also seems that people don't even glance at their own posts! Nobody will attempt to read that code! You try it! Not easy is it?
__________________
ExtJs forum volunteer. No official connection to the Ext Company. I do not speak for them. ExtJs consultancy offered. £ 50/hour. Evenings+weekends. the_bagbournes@btinternet.com Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu Read the docs too: http://extjs.com/deploy/dev/docs/ See Saki's samples: http://examples.extjs.eu/ Build your own Ext: http://extjs.com/products/extjs/build/ Scope: http://extjs.com/forum/showthread.ph...642#post257642 |
|
#10
|
||||
|
||||
|
@Animal: Just updated my formatting bookmarklet with selection support. You'll need it I think
![]()
__________________
Why bother with subroutines when you can type fast? |
![]() |
| Thread Tools | |
|
|