jefrey
Active Member
Hi Listers!
I have a Header Detail form which adds/updates a One-to-many records. The grid is set to 'No Adds on Update Grid' = true, because rows are added tru codes. Rows are inserted using the 'Insert Grid Buffer Row' system function.
The table in the header section of the form has one Primary key 'ID'. And the table attached to the grid has two primary keys == 'ID','LineID'.
Is it possible to automatically populate primary key values to the grid (or is it a feature of a header detail form) if new row entry is created?
Can the values to the grid be automatically set to ID = 001 if the ID of the header is equal to 001?
If it is NOT possible, can you suggest what to do to achieve my goal. I've tried to set the grid's ID at 'Grid Record is Fetched' but it doesn't solve my problem. I also tried setting GC ID = 001 right after the 'Insert Grid Buffer Row' but still not helpful.
Any bright ideas?
I have a Header Detail form which adds/updates a One-to-many records. The grid is set to 'No Adds on Update Grid' = true, because rows are added tru codes. Rows are inserted using the 'Insert Grid Buffer Row' system function.
The table in the header section of the form has one Primary key 'ID'. And the table attached to the grid has two primary keys == 'ID','LineID'.
Is it possible to automatically populate primary key values to the grid (or is it a feature of a header detail form) if new row entry is created?
Can the values to the grid be automatically set to ID = 001 if the ID of the header is equal to 001?
If it is NOT possible, can you suggest what to do to achieve my goal. I've tried to set the grid's ID at 'Grid Record is Fetched' but it doesn't solve my problem. I also tried setting GC ID = 001 right after the 'Insert Grid Buffer Row' but still not helpful.
Any bright ideas?