I want to iterate over the fields of an Axapta report. The problem I am facing is that I want to turn the fields visible and invisible before the report is shown. So I am overriding the Display method and add checkboxes to the Dialog.
I am looking for something that I can iterate over, like this
pseudocode:
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;
}
How can I access the fields of a report ?
Further information:
I am using Dynamics Ax 4.0