Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update
  • Toc
  • feedback
Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

By : Agarwal, Aggarwal, Elangovan
4.4 (7)
close
Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

4.4 (7)
By: Agarwal, Aggarwal, Elangovan

Overview of this book

Microsoft Dynamics AX 2012 R3 Reporting Cookbook is recommended for Dynamics AX developers and .NET-based SSRS developers looking to familiarize themselves with the new AX reporting framework.
Table of Contents (12 chapters)
close
11
Index

Modifying the UI by caller


This recipe will discuss how the controls in the report dialog can be added or removed based on the caller. For this purpose, the third parameter ShowApproved added in the first recipe will be used. ItemTrans has an Approved field and the idea is to link this unbound parameter to this field in the dataset so that users can easily choose it in the report dialog rather than adding it through the dynamic filters in the query.

How to do it…

  1. The build method from the UI builder class will be the ideal choice to handle any changes to the UI. Create a method called enableApprovedFlag() and call this method from the build method in UI builder. This can alternatively be invoked from the postBuild method of the UI builder.

    private void enableApprovedFlag()
    {
        Dialog      dlg;
        TableId     tableId;
        PktRdlItemTransController transController;
        DialogField dialogApproved;
    
        dlg = this.dialog();
        //add the field since the super call is blocked in the build method...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete