1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    5
    Vote Rating
    0
    pmlody is on a distinguished road

      0  

    Default FireEvent from View with itemId to Controller

    Hi.
    I'm trying to send event form view with have itemId to controller.
    I'm using standard path with ref/control pattern.
    And it doesn't work. But if I change itemId to id it works. Is this a bug? How can I use itemId in that situation?

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    38,550
    Vote Rating
    1120
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default

    itemId is like id but localized to a container. So if you just used something like '#someid' then it will likely look for a component with an id of someid.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Dec 2012
    Posts
    5
    Vote Rating
    0
    pmlody is on a distinguished road

      0  

    Default

    Ok. You've right. But if i set ref like: ' #itemId' it works. How is that? And why it is not documented?

  4. #4
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Location
    Italy
    Posts
    1,395
    Vote Rating
    24
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default

    The hash tag is specifically used to get components by their itemId configuration.
    There is a doc page on it:
    http://docs.sencha.com/touch/2-1/#!/...ComponentQuery
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    Owner at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    https://github.com/AndreaCammarata/TUX


Thread Participants: 2

Tags for this Thread