How to customize(hiding or adding) the reports for different companies with some modification?

Hi,

I have 3 companies in one system, having same format of reports with different fields. First company having all fields, and second company wants to hide some fields and third one having also all fields.

In AX 2012 when I customize the report automatically reflect all companies

How to customize(hiding or adding) the reports for different companies with some modification?

Please tell me the expression of those fields basedon companies?

Fields!custAddress.value …

Thanks,

Balu

Hi Balu,

Just overrride the execute section method and write your logic in such a way that you can make that particular field enable or disable based on company.

something like :

if (table.dataareaid == ‘dat’)

{

field.visible(false);

}

else if (…)

{

}

Hope this would help you!!

Hi,

In DP class, You assign the value based on the company.

In SSRS report select the field > properties > visibility based on expression > write expression (if field value is there then show the value else make false)

Hi Saju,

In DP class, How to assign the value based on the company. Please Explain me what I exactly will do.

Thanks,

Balu