Results 1 to 2 of 2

Thread: Saving several forms together using Ext.direct

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    22
    Vote Rating
    0
      0  

    Default Saving several forms together using Ext.direct

    Hi,

    I have an architecture question about saving several forms together.
    lets say I have a panel which contains 3 tabs inside it and each tab contains configuration parameters that the user can change.

    after the user changed what he wants he clicks on the Save button and then I would like to submit all the changes to the server side.
    at the end of the chain I need to submit to my java server one Object which contains 3 other objects that represent the data of each tab (1 object for tab).

    what is the correct way to do this with Ext.Direct?

    thanks,
    Lee

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Vote Rating
    1297
      0  

    Default

    The good thing about Direct is if you execute multiple direct functions within a certain amount of time it will batch the requests into one and then separate it server side.

    If you don't want to do the splitting server side and just want to hit one direct function then you will just need to get the values from each form and then execute a direct function manually passing the object.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

Posting Permissions

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