Very quickly !
1) Assume you have TableA that contains an item you want to edit
2) Create a new form (account, contact etc)
3) Add a new grid object to the form. Set the BindID of the grid to the entityID e.g. AccountID, ContactID - this ensures that this changes as you move record (and, therefore, refreshes for data found etc).
4) In the SQL property - click the elipse and select the table you wish to insert/edit to. Select the link ID (that's common to both) in the field below. Save this form.
4) Create a new Data form - based on the table you wish to Edit
5) Add to this form the items you wish to edit/create. Bind the objects (the Text property) to the items available in the list. Save the form.
6) On the grid (saved in 3) modify the Edit View to be the form saved in (5)
Done ! Now, the grid will show the rows, right click - Add will add a new item, Edit, will edit existing.
|