销售订单执行明细表过滤窗体中加自定义字段出错
金蝶云社区-quHongan
quHongan
0人赞赏了该文章 1,601次浏览 未经作者许可,禁止转载编辑于2015年06月04日 15:55:49

先在销售订单中增加字段,然后再过滤窗口中“条件”中增加此字段,运行时按此字段过滤,出现下面错误提示,其中“ F_meg_Text ”是这个字段的“绑定实体属性"与"标识".过滤条件表格的属性"字段集合"中添加此字段,并且"绑定实体属性"设置为相同“ F_meg_Text ”。经查数据库表TMP4D285DFE0A8D11E589B3485AB6D,确实没有字段“ F_meg_Text ”。

查询出现异常。列名 'F_meg_Text' 无效。
SELECT DISTINCT FORDERID, 0 t_sal_orderentry_sid FROM TMP4D285DFE0A8D11E589B3485AB6D T1 WHERE (1 = 1 AND F_meg_Text = N'0604c')
在 Kingdee.BOS.App.Data.AbstractDatabase.ExecuteReader(DbCommand command, IEnumerable`1 paramList, CommandBehavior cmdBehavior, Boolean bNewCn)
在 Kingdee.BOS.App.Data.AbstractDatabase.ExecuteReader(DbCommand command, IEnumerable`1 paramList, CommandBehavior cmdBehavior)
在 Kingdee.BOS.App.Data.DBUtils.ExecuteReader(Context ctx, String strSQL, IEnumerable`1 paramList, CommandType cmdtype, CommandBehavior cmdBehavior, Boolean bNewCn)
在 Kingdee.BOS.App.Data.DBUtils.ExecuteReader(Context ctx, String strSQL, IEnumerable`1 paramList, CommandType cmdtype, Boolean bNewCn)
在 Kingdee.BOS.App.Data.DBUtils.ExecuteReader(Context ctx, String strSQL, CommandType cmdtype, Boolean bNewCn)
在 Kingdee.K3.SCM.App.Sal.Report.SalRptCommon.GetEntryIds(Context ctx, String filterTable, String moreFilter, String& filterSql)
在 Kingdee.K3.SCM.App.Sal.Report.SalDet