如果是张三登录,不加载订单表的数据,其他人加载所有数据,如果是内部表,设置BeforeLoadInnerTable
If e.DataTableName = "订单" AndAlso e.User.Name = "张三" Then
e.Filter = "[_Identify] Is Null"
End If
如果是外部表,设置BeforeLoadOuterTable:
If e.DataTableName = "订单" AndAlso e.User.Name = "张三" Then
e.SelectString = "Select * From 订单 Where [_Identify] Is Null"
End If
看看:
http://www.foxtable.com/help/topics/0669.htm
http://www.foxtable.com/help/topics/0670.htm