访问Axapta报告字段
我想迭代Axapta报告的字段。 我面临的问题是,我想在显示报表之前将字段设置为可见和不可见。因此,我将覆盖Display方法并向对话框中添加复选框 我在寻找我可以迭代的东西,比如 伪代码:访问Axapta报告字段,axapta,x++,Axapta,X++,我想迭代Axapta报告的字段。 我面临的问题是,我想在显示报表之前将字段设置为可见和不可见。因此,我将覆盖Display方法并向对话框中添加复选框 我在寻找我可以迭代的东西,比如 伪代码: public Object dialog(Object _dialog) { ListIterator it; Dialog dialog; ; it = new ListIterator (this.fields); dialog = super(_dialog)
public Object dialog(Object _dialog)
{
ListIterator it;
Dialog dialog;
;
it = new ListIterator (this.fields);
dialog = super(_dialog);
while (it.more())
{
dialog.addField(typeId(NoYesId),it.value);
it.next();
}
return dialog;
}
如何访问报表的字段
更多信息:
public Object dialog(Object _dialog)
{
ListIterator it;
Dialog dialog;
;
it = new ListIterator (this.fields);
dialog = super(_dialog);
while (it.more())
{
dialog.addField(typeId(NoYesId),it.value);
it.next();
}
return dialog;
}
我正在使用Dynamics Ax 4.0首先,看一看
要访问报告字段,请将字段AutoDeclaration
设置为Yes。然后,该字段对任何内容都是开放的:
stringControl.visible(...);
有关按名称定位控件的示例,请参见报告教程\u FontInfo
报告部分的所有控件都可以通过以下数字访问:
for (i = 1; i <= reportSection.controlCount); i++)
{
rc = reportSection.controlNo(i);
}
for(i=1;i)这听起来可能很愚蠢,但在AOT的报告节点上哪里可以找到“tutorial_FontInfo”?在AX 2009中,如果不是在AX 4.0中,请查看其他教程报告。