strange behaviour in new component (master detail)
strange behaviour in new component (master detail)
hello
i have master and detail list
master have to save and detail just show the info of master record
when the master not post the detail info not show up. how ever it;s work when i use sdac 4.3 version.
the detail linked to master. detail mastersource filled to datasource og master. and i use query parameter to link it
how to fix it?
i have master and detail list
master have to save and detail just show the info of master record
when the master not post the detail info not show up. how ever it;s work when i use sdac 4.3 version.
the detail linked to master. detail mastersource filled to datasource og master. and i use query parameter to link it
how to fix it?
Last edited by lifeform on Mon 25 Aug 2008 05:10, edited 1 time in total.
how strange... i rollback the component to 4.35 version
and the application run perfectly
when i use the 4.50.36 or 4.50.37 the program not complete.
it's very strange behaviour because i use the new version. not the old ones.
for the example:
i use 2 TMSQuery. 2TMSDatasource
the first i named master and the second i named it detail
the detail query masterSource i linked to master datasource
for the exampe the field in master query is supplierID and date
and sql in detail query is
when i run the program i click the button that i send the value '0001' to supplierID in master query
for the example
i not post the master query because i need to cek the some parameter
and before post the master query i need the detail query to show the result. (this can be done in sdac ver 4.35)
please tell me how to fix it in the new version of component.
thx
and the application run perfectly
when i use the 4.50.36 or 4.50.37 the program not complete.
it's very strange behaviour because i use the new version. not the old ones.
for the example:
i use 2 TMSQuery. 2TMSDatasource
the first i named master and the second i named it detail
the detail query masterSource i linked to master datasource
for the exampe the field in master query is supplierID and date
and sql in detail query is
Code: Select all
select * from item where SupplierID = :supplierID
for the example
Code: Select all
masterQuery.fieldByName('supplierID').value := '0001'
and before post the master query i need the detail query to show the result. (this can be done in sdac ver 4.35)
please tell me how to fix it in the new version of component.
thx
I could not reproduce the problem.
Please send me a complete small sample at dmitryg*devart*com to demonstrate it, including script to create and fill table.
Also supply me the following information:
- the exact version of SDAC. You can see it in the About sheet of TMSConnection Editor;
- the exact version of your IDE.
Please send me a complete small sample at dmitryg*devart*com to demonstrate it, including script to create and fill table.
Also supply me the following information:
- the exact version of SDAC. You can see it in the About sheet of TMSConnection Editor;
- the exact version of your IDE.
Thank you for information. We have reproduced the problem.
This behaviour has been changed for perfomance increase on records inserting, because when using master/detail relationship the existence of a detail record presupposes the existence of a master record.
To view the existing record you can use the Filter property. You can look at the example of using this property in the FilterAndIndex demo of the SDAC demo.
This behaviour has been changed for perfomance increase on records inserting, because when using master/detail relationship the existence of a detail record presupposes the existence of a master record.
To view the existing record you can use the Filter property. You can look at the example of using this property in the FilterAndIndex demo of the SDAC demo.
because i really need this function that i describe above, how to force it to get like that?Dimon wrote:Thank you for information. We have reproduced the problem.
This behaviour has been changed for perfomance increase on records inserting, because when using master/detail relationship the existence of a detail record presupposes the existence of a master record.
To view the existing record you can use the Filter property. You can look at the example of using this property in the FilterAndIndex demo of the SDAC demo.
if i use filter, it's will be very slow because i must transfer all date to client program. please tell me how to done it well
thx
I have try your new build version 4.50.39
and the problem of mine still cannot solved...
and you promised me to add possibility of old behavior master detail
if you have done with this how to make it work in old behavior?
i have try activated the local master detail but the master detail cannot work properly
please help and thx before
and the problem of mine still cannot solved...
and you promised me to add possibility of old behavior master detail
if you have done with this how to make it work in old behavior?
i have try activated the local master detail but the master detail cannot work properly
please help and thx before
this master detail linked by parameter in SQL statement
so this detail query need to declared the datasource
and my app use it when the master query in insert or edit state mode
try to insert new record that the ID linked to detail query that param refer to the ID
and i don't use fetchAll. but i thinkn this is not effect the behaviour of master detail.
if you use datamodule i think that the line of RefreshParamOnInsert should be put after form create and/or before the query activated
i just make suggestion here because i don't really understand how the SDAC really work. i make suggestion depend on trying and error that i got.
so this detail query need to declared the datasource
and my app use it when the master query in insert or edit state mode
try to insert new record that the ID linked to detail query that param refer to the ID
and i don't use fetchAll. but i thinkn this is not effect the behaviour of master detail.
if you use datamodule i think that the line of RefreshParamOnInsert should be put after form create and/or before the query activated
i just make suggestion here because i don't really understand how the SDAC really work. i make suggestion depend on trying and error that i got.