-
19 Nov 2012 4:42 AM #1
Unanswered: Pass parameters to view
Unanswered: Pass parameters to view
I had make an ajax request and during success i am changing my view
I am at home.js and use below code
I want to pass userid to list view. Please tell me how can i pass this value and in list view how can i get itCode:success: function(response) { if(response.message == 'success') { var userid = response.id; //Need to pass this parameter to list view var firststep = Ext.create('Myapp.view.list'); Ext.Viewport.setActiveItem(firststep); } }
-
19 Nov 2012 6:28 AM #2
How do you want to use that parameter? If it's used for loading the store attached to the List component, you could set it as part of the extraParams config option on the store's proxy, then load it.
If that doesn't get you going, please post more code and details on what you're trying to accomplish.
BriceBrice Mason
Front End Developer
Modus Create
@bricemason
bricemason.com
Sencha Touch Screencasts
Vimeo - Sencha Touch Channel
Github Projects:
Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.
Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.
Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.
-
19 Nov 2012 6:52 AM #3
Hi,
Hi,
I need to put an ajax request in list view and use that userid as a param for ajax request.


Reply With Quote