Results 1 to 2 of 2

Thread: model with child model like in hasMany sample?

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    192
    Answers
    5

    Default model with child model like in hasMany sample?

    Hi all,
    I just read this sample:
    http://docs.sencha.com/ext-js/4-0/#!....reader.Reader
    On how to have a hasMany relation between 2 model.

    I want to accomplish this but by using a store.
    In my case my model are simple and contian only field definitions and I want that when my nested hson will return from the server each top level model will create a child model that will be attached to it.

    How do i accomplish this?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    Have you tried using multiple hasMany?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Posting Permissions

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