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

      0  

    Default Record edited by 3 forms (in three tabs) and sent back to DB

    Record edited by 3 forms (in three tabs) and sent back to DB


    Hi!

    In a MVC Architecture, I have a view which is basically a window with three tabs in it. This view (an "edit record" view) is called by a click on a grid cell on my main page. What I would like to do is to edit the record of my grid in my window/view. This technique is well described in the MVC Architecture guide. My problem is that I would like to edit (virtually, to "spread") my record in the three forms of the three tabs in my Window. For example:

    record (from grid in my main page): username, address, zipcode, phone, fax, ...

    Tab1/Form1

    edit: username and address

    Tab2/Form2

    edit: zipcode

    Tab3/Form3

    edit: phone and fax

    And then, after the record is edited, I would like to update it and send it to my database.

    What is the simplest way to achieve this?

    Thank you very much in advance.

    Davide

  2. #2
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,264
    Vote Rating
    80
    ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough

      0  

    Default


    You should put teh tabs INSIDE just one form and POST to your server code using form.getForm().submit().

    Another way is, allways putting all tabs inside one form, move from input components to model instance with form.getForm().updateRecord(modelInstance) then send using model's proxy or store's proxy.

    Look API docs for Ext.form.Panel, Proxy and Store.

    Regards.
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    14
    Vote Rating
    0
    TouchOfDestiny is on a distinguished road

      0  

    Default


    Thank you very much! It worked like a charm.

    Davide

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