1. #1
    Sencha Premium Member
    Join Date
    May 2010
    Location
    San Antonio
    Posts
    2
    Vote Rating
    0
    karimgarza is on a distinguished road

      0  

    Default How to use refs from a controller in Architect and Touch 2.1

    How to use refs from a controller in Architect and Touch 2.1


    In the attached example I am trying to set the html property of a panel, but it seems that I am not able to get a reference to the panel from my controller. Could somebody look at the attachment and let me know what I am doing wrong?

    Thank you in advance,

    Karim
    Attached Files

  2. #2
    Sencha Premium Member
    Join Date
    May 2010
    Location
    San Antonio
    Posts
    2
    Vote Rating
    0
    karimgarza is on a distinguished road

      0  

    Default


    I should have been using a syntax like this

    var panel = this.getPanel();
    panel.setHtml('some html');

    in my MyController.calculateGrades code

Tags for this Thread