hur.cn - 华软网

 热门搜索

PFC做的级联不能删除,什么回事?

  作者:未知    来源:网络    更新时间:2018/12/6
1对N的master和detail,插入和更新都成功的,但删除没反应,不是pfc_delete()会控制吗?要注意什么问题的?
------华软网友回答------
关注~
------华软网友回复------
不清楚你的1对N是怎么措置惩罚的:是用of_SetLinkage()吗?
------华软网友回复------
代码以下:
master->detail是1对N,detail->detail_dl也是1对N

dw_detail.of_SetLinkage(TRUE)
dw_detail.inv_linkage.of_SetMaster(dw_master)
dw_detail.inv_linkage.of_Register("sysid", "sysid")
dw_detail.inv_linkage.of_SetStyle(dw_detail.inv_linkage.Retrieve)
dw_detail.inv_linkage.of_SetDeleteStyle(dw_detail.inv_linkage.DELETE_ROWS)
dw_detail.inv_linkage.of_SetUpdateStyle(dw_detail.inv_linkage.TOPDOWN_BOTTOMUP)
dw_detail.inv_linkage.of_SetUpdateOnRowChange(false)
dw_detail.inv_linkage.of_SetTransObject(SQLCA)

dw_detail_dl.of_SetLinkage(TRUE)
dw_detail_dl.inv_linkage.of_SetMaster(dw_master)
dw_detail_dl.inv_linkage.of_Register("sysid", "sysid")
dw_detail_dl.inv_linkage.of_SetStyle(dw_detail.inv_linkage.Retrieve)
dw_detail_dl.inv_linkage.of_SetDeleteStyle(dw_detail.inv_linkage.DELETE_ROWS)
dw_detail_dl.inv_linkage.of_SetUpdateStyle(dw_detail.inv_linkage.TOPDOWN_BOTTOMUP)
dw_detail_dl.inv_linkage.of_SetUpdateOnRowChange(false)
dw_detail_dl.inv_linkage.of_SetTransObject(SQLCA)
------华软网友回复------
pfc不怎么样,还不如自己逻辑控制
------华软网友回复------
dw_detail.of_SetLinkage(TRUE)
改成
dw_master.of_SetLinkage(TRUE)
------华软网友回复------
检查是否存留外健关系?      
华软声明:本内容来自网络,如有侵犯您版权请来信指出,本站立即删除。