1. #1
    Sencha User deepakgarg89's Avatar
    Join Date
    Nov 2012
    Location
    Gurgaon, India
    Posts
    43
    Vote Rating
    0
    Answers
    4
    deepakgarg89 is on a distinguished road

      0  

    Default 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
    Code:
    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);					
        }
    }
    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 it

  2. #2
    Sencha User bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Vote Rating
    44
    Answers
    49
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    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.

    Brice
    Brice 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.

  3. #3
    Sencha User deepakgarg89's Avatar
    Join Date
    Nov 2012
    Location
    Gurgaon, India
    Posts
    43
    Vote Rating
    0
    Answers
    4
    deepakgarg89 is on a distinguished road

      0  

    Default Hi,

    Hi,


    I need to put an ajax request in list view and use that userid as a param for ajax request.

Thread Participants: 1

Tags for this Thread