1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    11
    Vote Rating
    0
    ntkonstantinov is on a distinguished road

      0  

    Default Unanswered: Submitting form with nested data

    Unanswered: Submitting form with nested data


    Hi everyone,
    I'm having a simple question about submitting a form that holds nested data. Ok so... I have a sencha form with simple string fields and a field which is a collection of same objects. Here are the values of my form.
    • addresses: Array (1)
      • 0: Object
        • citycode: "eeeqwe"
        • company: "ddes"
        • countryValue: "de"
        • firstname: "asd"
        • lastname: "eee"
        • shipment: true
        • street: "ases"
        • streetnumber: "asssss"
        • town: "qweqweqq"
        • __proto__: Object
      • length: 1
      • __proto__: Array
    • birthdate: Mon Sep 11 1989 21:00:00 GMT+0300 (FLE Daylight Time)
      • __proto__: Date
    • gender: null
    • name: null
    • password: "dummypass"
    • uid: "sampleid"
    When I call the submit method, in the back-end(I'm using spring mvc) the simple string fields are populated in the according POJO, but the collection field is null. When I use the sencha model's save() method, the java collection field is populated successfully. So my question is can I submit nested data with form's submit action or not ?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,668
    Answers
    3354
    Vote Rating
    746
    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


    Sure you can, you just have to encode it
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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
    May 2012
    Posts
    1
    Vote Rating
    0
    kinjeiro is on a distinguished road

      0  

    Default


    ntkonstantinov, Hi!

    Could you tell me, how did you create this form with nested (hierarchy) data?
    Form.Panel component work only with plain attributes (getFields() method), without assoсiated objects. Do you have workaround?

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar