Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Master Detail Form

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm assigned with a task of building an application in PB.
Can anybody suggest me how to create a master detail form in PB. I have d2k background.
I have an Order Header and an Order Details. Got a Datawindow for this Order Details table. How do i logically associate this datawindow with the master table fields? Like
when the Order Header records are scrolled the relative details should be populated in the detail datawindow.
And also, on which event can i call the insertrow() function when the user wants to add a new row in the detail datawindow? Is there any other workaround for this?

Thanks in advance.
 
You write code in the 'RowFocusChanged' event in the master DW to retrieve the detail DW using what ever parameters are needed to retrieve a unique detail row.

dw_detail.Retrieve(dw_master.GetItemNumber(row, "key_id"))

row is a literal value in the 'RowFocusChanged' event.
"key_id" is whatever column name you are using to link the 2 datawindows.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top