web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

SSRS report multi selection of entities on dialog

(0) ShareShare
ReportReport
Posted on by 6,478

Hello,

we have duplicated the "TaxReportById" report and corresponding contract and DP class.

I have modified the query as we want the report to be crosscompany. (query.AllowCrossComapny(true)) and I have just hardcoded the legal entity codes to test. It works as expected, but I want to make the selection of companies on the dialog that is opened by menu item.

It must be possible to select several legal entities and pass somehow to processReport to build a query correctly.

How can I achieve it? Any examples would be appreciated.

Thanks

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,972 Most Valuable Professional on at

    You should see a separate tab in the query dialog. Below is how it looks like in D365FO, it was similar in AX 2012.

    CompanyFilter2.PNG

  • Johnny Profile Picture
    6,478 on at

    Unfortunetelly, there is only "Range" and "Sorting" tabs on this report.

    Is the screenshot for TaxReportById report?

  • Martin Dráb Profile Picture
    237,972 Most Valuable Professional on at

    No, I didn't try to reproduce your particular changes. It's not necessary to demonstrate the thing you asked about, it would took too much time and - more importantly - you didn't tell us what exactly you did.

    If you try test many things at once, you then don't know which one is causing a problem. Test the query in isolation to see that company ranges are indeed set at the tab I showed. When you agree that it works, look at your changes in the form and try to identify your bug there. For example, you may be calling allowCrossCompany() at a wrong place. If you fail to fix your code, come back here and show your code to us.

  • Johnny Profile Picture
    6,478 on at

    I don't think you understand the question correctly. I mentioned that the code works as expected. All I ask is how to have that "Company range" on the dialog form.

  • Martin Dráb Profile Picture
    237,972 Most Valuable Professional on at

    Hmm, now I reaally don't understand. You seem to be saying that your code work as expected, except of that it doesn't work.

  • Suggested answer
    Martin Dráb Profile Picture
    237,972 Most Valuable Professional on at

    Maybe you don't understand the impact of allowCrossCompany(true) on the query dialog. Try a simple example:

    Query q = new Query();
    q.addDataSource(tableNum(CustGroup));
    QueryRun qr = new QueryRun(q);
    qr.allowCrossCompany(true);
    qr.prompt();

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans