Hi all,
I am working on a design which has two forms. One of the forms has a pageframe with three pages. Each of the pages has a button which calls the other form. Each of the pages represents a detail record. And the calling form from the pages will represent a detail record for each page. So the form will be called many times per page. In other words, I will have one header record with three main detail records and many detail records per main detail record.
My question is when should I save the entire record for the first time; in other words, when no header, no main detail, and no details of the main detail exist, when closing the calling form from the pages or from the main page? Perhaps from the main page present a message to the user. Something like "This is a new record. It is recommended to save your work before proceeding".
Once the first header record is inserted, I will be just updating the main detail with its child details or inserting another main detail with its child details. Again, only up to three main details.
I am trying to get some input from more experienced programmers as this is only my second VFP application.
Hope this is clear enough!
Thanks in advance.
I am working on a design which has two forms. One of the forms has a pageframe with three pages. Each of the pages has a button which calls the other form. Each of the pages represents a detail record. And the calling form from the pages will represent a detail record for each page. So the form will be called many times per page. In other words, I will have one header record with three main detail records and many detail records per main detail record.
My question is when should I save the entire record for the first time; in other words, when no header, no main detail, and no details of the main detail exist, when closing the calling form from the pages or from the main page? Perhaps from the main page present a message to the user. Something like "This is a new record. It is recommended to save your work before proceeding".
Once the first header record is inserted, I will be just updating the main detail with its child details or inserting another main detail with its child details. Again, only up to three main details.
I am trying to get some input from more experienced programmers as this is only my second VFP application.
Hope this is clear enough!
Thanks in advance.