NetTalk Central

Author Topic: how to make child forms in parent form with one button update?  (Read 3762 times)

kashiash

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • Email
how to make child forms in parent form with one button update?
« on: December 22, 2009, 01:13:56 PM »
one issue few questions:
Is this possible in easy way to make update web page for 2 files at
the same time ?
how to hide ok/cancel button on child form and save all childforms when parent form is accepted ?
In example i have customerFormControl  and want to enter few types of
customer adresses (home,work, and few more ;))
In standard way i have form with browse for adresses, but i looking
for method where on customer form in specified condition i want to
hide or unhide AdresFormControl (one for home adres , next for work
adres next for mail adress etc)
where user can enter data. I hope its clear for You ?
i try this and i can do it in NTWS but in child forms i have save and
cancell buttons - this not looks good
Is possible to hide buttons for adresformcontrol and when user press
save on custoerformcontrol i get save on customer form and on few (2
or more adressformcontrols)

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: how to make child forms in parent form with one button update?
« Reply #1 on: December 23, 2009, 03:06:27 AM »
Is this possible in easy way to make update web page for 2 files at
the same time ?

> you would probably need some hand code to update the second file when the user clicks ok

how to hide ok/cancel button on child form and save all childforms when parent form is accepted ?

> If you have SV In-Memeory Driver you could leave the ok\cancel button and then just add some code to move the data from the memory table to the actual file when they click ok on the parent form.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: how to make child forms in parent form with one button update?
« Reply #2 on: December 23, 2009, 04:25:59 AM »
Hi Jacek,

You can't easily embed multiple forms onto the same page.

If you need to collect data, for multiple tables, in a single page then you will probably be better off using some temporary variables for all the related stuff. Then when the parent record is save (postInsert / postUpdate routines) you can add normal code to read the other tables and write new values where appropriate.

Are you thinking of a Invoice / LineItem type setting, or a Checkout type setting where the user captures customer, and order information at the same time?

cheers
Bruce
 

kashiash

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • Email
Re: how to make child forms in parent form with one button update?
« Reply #3 on: December 23, 2009, 05:23:48 AM »
This is part where you eneter customer details and few adreses (usually more then 4, max 8).
Of course i can set variables for entry but i need to declare 8 times about 5-6 variables for each adress. I hope i can do only one subform and use this when i need for each of necessary adress type.