Axapta 如何在动态AX报告中隐藏行?
在第一节的正文中有4个计算字段。我想在所有四个字段都为0值时隐藏一行。请让我知道您的建议…在正文中创建executeSection方法,如果希望打印该部分,请仅调用Axapta 如何在动态AX报告中隐藏行?,axapta,Axapta,在第一节的正文中有4个计算字段。我想在所有四个字段都为0值时隐藏一行。请让我知道您的建议…在正文中创建executeSection方法,如果希望打印该部分,请仅调用super(): public void executeSection() { if(value1!=0 || value2!=0 || value3!=0 || value4!=0) { super(); } } 为了简单起见,您可以: 向查询中添加范围(在您的情况下可能不可能) 在报告部分
super()
:
public void executeSection()
{
if(value1!=0 || value2!=0 || value3!=0 || value4!=0)
{
super();
}
}
为了简单起见,您可以:
executeSection
方法中添加测试send
方法中添加测试send
方法的示例(在这种情况下,选项1更好):
boolean send(Common cursor, int level=1, boolean triggerOffBody=TRUE)
{
boolean ret;
InventTable inventTable;
if (cursor.tableId == TableNum(InventTable))
{
inventTable = cursor;
if (inventTable.InventType == InventType::BOM)
ret = super(cursor, level, triggerOffBody);
}
return ret;
}