hello
i recently upgraded from 10.5 to version 11 and in process of converting many of my grids to dialog2 and also want to learn xdialog2 altogether.
my question is centered around one to many tables
for example if i have two tables
po_header with id, number, auto increment and rest of the fields
po_detail with id, number auto increment, po_header_id and rest of the fields linking via po_header_id
already defined, then build the dialog and bind to the controls, there is no problem i like that very much.
however, if i build the dialog and ask it to create two tables, it does a good job but the linking field is not correct. the dialog creates a po_header_id in addition to the id i have added, but po_header_id is not in the child table but id i have added is present. i think that should not be the case. what i think should be the id i have added to the dialog should be the primary key for the po_header and not po_header_id the dialog creates by itself. (ther is no way i can leave that field because i can not complete the creation without the linking field)
or i am not doing something i should have done in the steps. i went thru few times with the same end result.
will some one, who has done this, please tell me what steps i should be doing,
thanks in advance.
i recently upgraded from 10.5 to version 11 and in process of converting many of my grids to dialog2 and also want to learn xdialog2 altogether.
my question is centered around one to many tables
for example if i have two tables
po_header with id, number, auto increment and rest of the fields
po_detail with id, number auto increment, po_header_id and rest of the fields linking via po_header_id
already defined, then build the dialog and bind to the controls, there is no problem i like that very much.
however, if i build the dialog and ask it to create two tables, it does a good job but the linking field is not correct. the dialog creates a po_header_id in addition to the id i have added, but po_header_id is not in the child table but id i have added is present. i think that should not be the case. what i think should be the id i have added to the dialog should be the primary key for the po_header and not po_header_id the dialog creates by itself. (ther is no way i can leave that field because i can not complete the creation without the linking field)
or i am not doing something i should have done in the steps. i went thru few times with the same end result.
will some one, who has done this, please tell me what steps i should be doing,
thanks in advance.
Comment