Threaded View

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    8
    Vote Rating
    0
    Gahgah is on a distinguished road

      0  

    Question Answered: DataBinding with Subclass

    Answered: DataBinding with Subclass


    Hello,

    I've a DTO which extends BaseModel. These DTO contains another DTO which also extends BaseModel.
    On my FormPanel I want to show Attributes from both DTO's how can I access attributes from the SubDTO?

    Example:

    PersonDTO extends BaseModel
    Two attributes:
    String name
    CityDTO city

    CityDTO extends BaseModel
    Two attributes:
    String name
    String postalCode

    My view only knows PersonDTO directly.
    How to bind the attributes of CityDTO?

    Thanks in advance

    Kind regards
    Jan

  2. Have you tried to do something like "city.postalCode"?

Thread Participants: 1