I have two programs:
Program1 is a system from an outside vendor. This program is a comprehensive insurance rating system which stores very detailed information about each policy in a DB2 Database.
Program2 is our program into which supplemental information not found in Program1 is entered. The data are stored in our own DB2 database.
Program2 queries data from Program1 and displays the appropriate information on several forms and allows the user to enter supplemental information and store it in our own tables. Clearly, the trick in developing Program2 was ensuring that the information in our vendor's tables and our own tables would match. Therefore, I somewhat mirrored their key structure in my design.
I have four tables, each corresponding to it's own form. Table 1 is the parent while 2-4 are the child tables. I query the keys of the vendor's program and have those as default values on my form to be then saved in my own tables. The issue is that it is possible for the user to advance in the program without entering supplemental data into the first page. This is not the norm, but can happen as our program performs a multitude of calculations and the user my simply want to see some information that exists further into the program, and may then type something
The question is: How to I make a form Dirty upon opening so that I will ensure that the keys are being written to the parent table. I have tried to save the record before the user advances, but I am finding that unless the form is dirty, not even the default values are stored.
My apologies for the long narrative. But I figured the question, "Why would you want to make a form dirty if no data is entered?" would be asked. Thanks for any assistance.
- Matt
Program1 is a system from an outside vendor. This program is a comprehensive insurance rating system which stores very detailed information about each policy in a DB2 Database.
Program2 is our program into which supplemental information not found in Program1 is entered. The data are stored in our own DB2 database.
Program2 queries data from Program1 and displays the appropriate information on several forms and allows the user to enter supplemental information and store it in our own tables. Clearly, the trick in developing Program2 was ensuring that the information in our vendor's tables and our own tables would match. Therefore, I somewhat mirrored their key structure in my design.
I have four tables, each corresponding to it's own form. Table 1 is the parent while 2-4 are the child tables. I query the keys of the vendor's program and have those as default values on my form to be then saved in my own tables. The issue is that it is possible for the user to advance in the program without entering supplemental data into the first page. This is not the norm, but can happen as our program performs a multitude of calculations and the user my simply want to see some information that exists further into the program, and may then type something
The question is: How to I make a form Dirty upon opening so that I will ensure that the keys are being written to the parent table. I have tried to save the record before the user advances, but I am finding that unless the form is dirty, not even the default values are stored.
My apologies for the long narrative. But I figured the question, "Why would you want to make a form dirty if no data is entered?" would be asked. Thanks for any assistance.
- Matt