Delphi DBExpress Parent Child No corresponding master record found

£可爱£侵袭症+ 提交于 2019-12-25 05:14:51

问题


I am using DBExpress to connect to MySQL. I have a master detail relationship between two tables. I am providing the parent table via DatasetProvider. On the client side I have 2 clientdatasets. One of them accesses the provider, has all the parent field + the nested dataset field of the child. The second clientdataset Dataset field property is set to the nested dataset field of the parent.

Now when I add a new record in the child dataset, it gives me an error "No corresponding master record found."

Don't know why.

Nirav


回答1:


There is a big bug in clientdataset and the tdatasetfields (nesteddataset) when you do link. This happens in XE and XE2 Rules: If you want nested dataset with one provider, you must have the same column name for link table Period.



来源:https://stackoverflow.com/questions/10297744/delphi-dbexpress-parent-child-no-corresponding-master-record-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!