Hey everyone.
I'm sure this is something easy and I'm just missing it, but how do I have a JsonStore object pull a value from a hidden form element on the page? PlayShakespeare.com Discussion Forum • View topic - Simple Question:: 6 posts - Last post: Jul 7, 2008A simple question, but nobody seems to know the answer: @akfarar: I said simple question, not simple answer! If it was simple to answer, http://www.playshakespeare.com/forum/viewtopic.php?f=65&t=735HOME | electro-music.com :: View topic - simple answer for a simple question:: 3 posts - Last post: Nov 10, 2008Posted: Sun Nov 02, 2008 8:50 pm Post subject: simple answer for a simple question, Reply with quote · Mark this post and the followings http://electro-music.com/forum/topic-29971.htmlHOME |
I have no problem getting the value, it's just that whenever I reload my grid, it shows me (through firebug) that the value being sent isn't changing. The code for my store is below.
var quoteListStore = new Ext.data.JsonStore({
url: 'index.php?op=WhatIf&subop=ajaxGetQuoteList',
root: 'result',
totalProperty: 'total',
fields:['field_one', 'field_two', 'field_three'],
autoLoad: true,
baseParams: {
break_index: $('#hiddenField').val()
log_no: log_no
},
remoteSort: true,
sortInfo: {field: 'field_one', direction: 'ASC'},
});
it may be causing a problem to have params as part of the url and then also trying to add params via baseParams for one. move all the params from the url to baseParams ('WhatId','subop',etc) where they belong. Constitutional Remedies in Canada - Google Books Result:: href=http://books.google.com/books?id=tC_cHvKvrG0C&pg=PT347&lpg=PT347&dq=Simple+question+about+Stores&source=web&ots=PN70LQ46E0&sig=FHiix4hub2r1woQ1g-3GyqaXiR0&hl=en&sa=X&oi=book_result&resnum=74&ct=result class=l onmousedown=return clk(this.href,,,res,78,)>Constitutional Remedies in Canada - Google Books Resultby Kent Roach - 1994 - Law Metropolitan Stores removed a barrier to granting interlocutory relief in constitutional cases.'2 (3) Simple questions of law 7.120 Metropolitan Stores http://books.google.com/books?id=tC_cHvKvrG0C&pg=PT347&lpg=PT347&dq=Simple+question+about+Stores&source=web&ots=PN70LQ46E0&sig=FHiix4hub2r1woQ1g-3GyqaXiR0&hl=en&sa=X&oi=book_result&resnum=74&ct=resultHOME | JLA FORUMS - Two simple questions:: 4 posts - Last post: Oct 2, 2007We have a 72 SB with two small issuesaand a fix-up question. First is simple, does anyone know off the top of their head what light bult is http://www.jlaforums.com/viewtopic.php?p=10073550HOME |
also, baseParams are considered "permanant" and do not change once set, so that code would grab the hiddenField value once, then never again. you either need to set it manually with each load request (in which case you would add it to that load requests params) or you can update it in the store's beforeLoad event.
Thanks, but how would I go about added it/updating it in the stores beforeload event? I've tried multiple things, but nothing seems to work, it's always sending the static value across.
I haven't reviewed this much, but if for some reason if it is correctly stating that it's undefined seems like a conditional might be in order: GameSpot Forums - The Elder Scrolls IV: Oblivion - SImple question :: Also, is it at all safe to store items (on the floor, not in. SImple question regarding item storage. Search Forums http://www.gamespot.com/xbox360/rpg/theelderscrollsivoblivion/show_msgs.php?topic_id=m-1-41635745&pid=927345HOME | Nabble - Dojo - Simple question on DataGrid, 'POST' request.:: Simple question on DataGrid, 'POST' request. Hi All, Having following DataGrid, I would think you need to be using a writable data store and then http://www.nabble.com/Simple-question-on-DataGrid,-POST-request.-td21204922.htmlHOME |
listeners: {
beforeLoad: function(store,options){
var params = options.params {};
params.yourParam = 'whatever';
}
}
I am just relaying what I can from the documentation. were I to be the one experiencing this problem, I would be inclined to inspect the 'options' object and see if maybe the documentation isnt completely accurate...
listeners: {
beforeLoad: function(store,options){
options.params.yourParam = 'whatever';
}
}
This is documented in the 'beforeLoad' event and the 'load' method in the API documentation for Ext.Store.
listeners: {
beforeLoad: function(store,options){
options.params.yourParam = 'whatever';
}
}
This is documented in the 'beforeLoad' event and the 'load' method in the API documentation for Ext.Store.
When I try that, I get an error telling me, "options.params has no properties"
it may be causing a problem to have params as part of the url and then also trying to add params via baseParams for one. move all the params from the url to baseParams ('WhatId','subop',etc) where they belong.
also, baseParams are considered "permanant" and do not change once set, so that code would grab the hiddenField value once, then never again. you either need to set it manually with each load request (in which case you would add it to that load requests params) or you can update it in the store's beforeLoad event.
Red Hat's Rough Recovery From CFO Exit
Windows Live Finds a New, Pre-installed Home
|