Re: Master/Detail with ADODatasets (again)
From: Bill C (wcarey_at_NOTsenet.com.au)
Date: 03/11/05
- Previous message: Brigitte: "Re: "Row cannot be located for updating""
- In reply to: Brian Bushay TeamB: "Re: Master/Detail with ADODatasets (again)"
- Next in thread: Brian Bushay TeamB: "Re: Master/Detail with ADODatasets (again)"
- Reply: Brian Bushay TeamB: "Re: Master/Detail with ADODatasets (again)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 10 Mar 2005 17:49:22 -0800
Brian,
So that means the SQL statements use to retrieve data from the
server need to be more explicit?
At the moment, I just set the CommandText in Patients to 'Select
* from patients where surname=:surname', then substitute the
parameter with user input. The linked detail tables are
automatically retrieved because I have their CommandText set
with the linked parameter.
If the Detail table CommandTexts are not used, when I retrieve
the patient data, I will have to explicitly retrieve the
appropriate detail table records using JOINs in the SQL
statement?
Another question - is it actually necessary to use BatchUpdate
mode when my app only allows users to edit a single record at a
time, then save it back to the server before moving on to the
next record?
Thanks for your advice
Cheers
Bill
Brian Bushay TeamB <BBushay@Nmpls.com> wrote:
>
>>D7 Pro, ADODatasets, SQL Server 7, XP Pro
>>
>>I am still having trouble saving detail tables in my
>> master/detail application – sorry about the long post, but I
>>have tried to describe exactly what my setup is.
>
>If you use batchUpdatemode then you can't use a parameter in the detail query to
>sync it with the master table.
>When you use a parameter the linked details will be required when you change
>master records.
>Just use the MasterFields property to link master and details
>--
>Brian Bushay (TeamB)
>Bbushay@NMPLS.com
- Previous message: Brigitte: "Re: "Row cannot be located for updating""
- In reply to: Brian Bushay TeamB: "Re: Master/Detail with ADODatasets (again)"
- Next in thread: Brian Bushay TeamB: "Re: Master/Detail with ADODatasets (again)"
- Reply: Brian Bushay TeamB: "Re: Master/Detail with ADODatasets (again)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|