Generating column in the Report Dynamically.

I am Trying to dynamically create columns in the report using ExecuteSection(), but the problem is the values are getting printed multiple times . screenshotbelow,. any solution. am using AX 2009.

You obviously did something wrong, but I can’t say what, because you didn’t tell us what you actually did.

This is the only code i have added in the body section of the report.

6136.12.JPG

Doesn’t it mean that an additional field it added every time when executeSection() is called? It would mean that if you call it twice, you get two fields.

So any solution to make it right.

Either call it from a place which is executed just once, or remember that you already added the field and don’t do it in subsequent calls.

Thanks martin… its working [Y]