PDA

View Full Version : Master detail save data at the same time or best practices



beticocorzo
29 Apr 2014, 6:35 PM
Hi again friends, some ideas how to achive the rigth way of how
to save the master and detail table with just one click (save master and detail bunch of records at the same time)?




Master table:
idmaster
fields...


DetailTable


idDetail
idMaster_field


Some ideas or one example with mysql?


thanks.

image example with just one button save.
http://i.imgur.com/8341VQX.png (http://imgur.com/8341VQX)

scottmartin
2 May 2014, 1:37 PM
See the following fiddle:
https://fiddle.sencha.com/#fiddle/1jp

beticocorzo
20 May 2014, 4:58 AM
See the following fiddle:
https://fiddle.sencha.com/#fiddle/1jp

Thank you, but i mean, for example:
1.- Fill first of all, the Order Form ( but not save the Order data yet, until i finish fill the Order Details)
2.- Fill My grid with the order data details
3.- And finally,Save all (Order and Details at the same time)

I remember that i could do that with Delphi.

scottmartin
20 May 2014, 5:59 AM
Our writer does not support nested data. You would need to send the order details objec to the server and then decode and update the data there.

>>> I remember that i could do that with Delphi.

I suspected you used something like TmemTable or kbmemTable?

Nice to see mention of Delphi. It has been a while, but I was user from D1 - D2007 ;)