1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    3
    Vote Rating
    0
    craig@rocketmonster is on a distinguished road

      0  

    Default Unanswered: Get variable from previous panel in navigation view

    Unanswered: Get variable from previous panel in navigation view


    Hi there,

    I have a list that when the user clicks each row they are taken to the details panel. This all works and data is sent and received as usual.

    I have, however added in a custom variable as to do something on the details panel with it.

    It looks like this:

    ListView:
    Code:
    this.up('Main').push({
        title: 'Profile',
        data: record.data,
        userID: record.data.id,
        xtype: 'UserProfile'
    });
    How can i get the userID var on the next panel?


    Thanks in advance

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    408
    Answers
    4
    Vote Rating
    17
    jweber will become famous soon enough

      0  

    Default


    In the definition of the UserProfile class, add "userID" to the class's "config" object. Then you can access the value with "panel.getUserID()".

  3. #3
    Sencha User
    Join Date
    Apr 2010
    Location
    China
    Posts
    227
    Answers
    64
    Vote Rating
    20
    haduki will become famous soon enough haduki will become famous soon enough

      0  

    Default


    Code:
    userProfileInstance.getInitialConfig('userID');
    I write English by translator.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar