以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  父表如何统计子表的逻辑列问题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=50972)

--  作者:身份不明
--  发布时间:2014/5/16 8:53:00
--  父表如何统计子表的逻辑列问题
子表的逻辑列打上对号后,如何设置父表的逻辑列也打上对号呢!
--  作者:Bin
--  发布时间:2014/5/16 8:55:00
--  
if e.datacol.name="逻辑列" then
   e.DataRow.GetParentRow("父表名称")("逻辑列")=e.newValue
end if

datacolchanged 事件

--  作者:身份不明
--  发布时间:2014/5/16 9:08:00
--  
Bin老师,主表的逻辑列也要设置成数据列,不能用表达式列吧!另外datacolchanged事件放在子表里!
--  作者:Bin
--  发布时间:2014/5/16 9:10:00
--  
是放在子表里.
--  作者:有点甜
--  发布时间:2014/5/16 9:28:00
--  

 或者用表达式

 

 iif(sum(Child(po).逻辑列) = Count(Child(po)._Identify), true, false)

[此贴子已经被作者于2014-5-16 9:28:33编辑过]