Saturday, 29 November 2014

Compare Tool

The Compare tool enables you to compare:
·         Two different application objects.
·         The same application object in two different layers.
·         Two versions of the same application object, if you are using version control.
·         Two versions of the same application object and the original version of the application object.
·         Two SSRS report designs, in cumulative update 7 for Microsoft Dynamics AX 2012 R2.

To compare two application objects
  1. In the AOT, select the application objects that you want to compare.
  2. Right-click the selected application objects, and then click Compare. The Comparison form opens.
Option are Show differences only, Suppress whitespace, Case sensitive, Show line             numbers

  1. Click the Advanced tab, and then set the following options as needed.
  2. Click Compare to begin the comparison of the two application objects.

To compare versions of an object

1.     In the AOT, right-click an object, and then click History.
In the AOT, click the History button.
2.     Select the versions of the object to compare and then click Compare.
3.     Optionally click the Advanced tab and select advanced options.
4.     Click Compare.

To compare application object layers

1.     Click Tools > Code Upgrade > Compare layers. The Compare layers tool opens.
2.     In the Compare layers tool, set the following properties as required.
Options: Project name, Source layer, Reference layer, only include elements present in both layers
  1. Click OK to begin the application object layer compare.
  2. A project holding application objects that differ is now created. The objects are presented in a tree structure and the regular Application Object Tree (AOT) shortcut menu commands are available.

Friday, 21 November 2014

Passing parameter to Report for Selected Record in Grid

Passing Parameter to Report for Selected Record in Grid

example: let us create Purchase Requisition Report

Step 1:

Create a Class

public class PurchreqDetails extends SrsReportRunController

public void prePromptModifyContract()



public void setRanges(
    Query _query)
    MultiSelectionHelper    multiSelectionHelper;
    InternalExternal        argsDescription;

    argsDescription = this.parmArgs().parmEnum();

    _query.dataSourceTable(tableNum(PurchReqTable)).addRange(fieldNum(PurchReqTable, PurchReqId));

    if (this.parmArgs().dataset() == tableNum(PurchReqTable) && this.parmArgs().caller())
        multiSelectionHelper = MultiSelectionHelper::createFromCaller(this.parmArgs().caller());
        multiSelectionHelper.createQueryRanges(_query.dataSourceTable(tableNum(PurchReqTable)), fieldStr(PurchReqTable, PurchReqId));


public static void main(Args _args)
    PurchreqDetails controller  = new PurchreqDetails();


Step 2:
Create a query
AOT>Query>new Query

Step 3:
Create Report ssrs Report Design

 Step 4:

Create Menu Item and Attach it in PurchReqTableListPage Form in action Pane

Click on Purchreq report

Completed guys