Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Custom report upgrade from AX2012 DialogFieldDimensionDefaultingController now obsolete

(0) ShareShare
ReportReport
Posted on by 133

I have a custom report that needs to be upgraded from AX2012 to D365 FnO. The report has Parameters for selection to use in the report showing indicators for all Dimensions.  Instead of dimension selection it is a check box to indicate if the report should show the selected dimension. AssetRegister.png I have replaced the DialogFieldDimensionDefaultingController  code with the prescribed code using DimensionEntryControl. I replaced the code 

dlgDimController = this.dialog().addDimensionDefaultingController();
dlgDimController.accShowValues(false);
dlgDimController.initWithChecks(true, 0, "Dimensions", "   "); 
dlgDimController.displayLength(10);

with the following code in the Postrun of the UIbuilder class.

public void postRun()
    {
        super();

        dimensionEntryValues = dimensionEntryField.control();
        dimensionEntryValues.parmNonActiveValueErrorTolerance(ErrorTolerance::Error);
        dimensionEntryValues.parmDisplayValues(true);
        dimensionEntryValues.reactivate();
        dimensionEntryValues.loadAttributeValueSet(dimensionEntryValues.saveAttributeValueSet());
        
    }
.

This is the result of the above code.

D365AssetRegister.png

Does anyone have some advice how to do this.   Or if you can point me in the direction of where I can find something similar.

  • Verified answer
    huijij Profile Picture
    huijij 19,811 on at
    RE: Custom report upgrade from AX2012 DialogFieldDimensionDefaultingController now obsolete

    Hi sir,

    Do you mean to add checkboxes in a ssrs report? The following blog mentions a way with SSRS indicators.

    www.linkedin.com/.../d365-ssrs-checkboxes-using-wingdings-michael-schiermeyer

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,996 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,853 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans