Results 1 to 6 of 6

Thread: DataBinding with Subclass

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Aug 2011
    Vote Rating

    Question Answered: DataBinding with Subclass


    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?


    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

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts