1. #1
    Sencha User
    Join Date
    May 2013
    Posts
    5
    Vote Rating
    -1
    raffaele is an unknown quantity at this point

      0  

    Default Unanswered: List showing children of hasMany association

    Unanswered: List showing children of hasMany association


    Hallo
    I have a hasMany association between RecipeModel and IngredientModel, named "ingredients".
    User can choose a recipe and put it in the cart, and then customizes the recipe removing ingredients or adding them from a list.
    As for now, there are 4 lists involved.
    List A = list of available recipes
    List B = list of choosen recipes

    List C = list of available ingredients
    List D = list of choosen ingredients

    1. How could I automatically populate List D with ingredients of the selected (tapped or disclosed) record of List B?

    2. How could I implement getRemovedRecords() and getNewRecords to get a list of ingredients added or removed from List D ?

    In order to keep things simple I'm not posting any code, I'll do if anybody needs it to make things clearer.

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,867
    Answers
    325
    Vote Rating
    127
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default


    What does your models looks like?
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

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

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

    Need to include a test case use:
    The official Sencha Fiddle

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi