17 Haziran 2014 Salı

AX 2012 Add Query to SSRS report when developing with RDP

Add query attribute to data provider class:

[
    SRSReportQueryAttribute (querystr(Cust)),
    SRSReportParameterAttribute(classstr(myReportContract))
]
class myReportDP extends SRSReportDataProviderBase
{
    ...

}
Get query like this:

[SysEntryPointAttribute(false)]
public void processReport()
{
    QueryRun                    qRun;
    Query                       query;
     ...

    query = this.parmQuery();
    ...



Do not forget make Dynamics Filter property to true at SSRS report Dataset if you want to see select query button.

Hiç yorum yok:

Yorum Gönder