Wednesday 19 December 2018

D365FO - The generated nested class could not be parsed for the entity ""

Customized entity are not sync with Staging table. 
Include the staging table to the project. 
Build and synchronize the database.

Monday 17 December 2018

Read label of Enum's Element

class ReadlElementLabels
{       
    /// <summary>
    /// Runs the class with the specified arguments.
    /// </summary>
    /// <param name = "_args">The specified arguments.</param>
    public static void main(Args _args)
    {
        nteger         i;
        String255       enumName;
        Container       con =  ["AssetTransType","DimensionLedgerAccountType","InventJournalType","InventTransType","LedgerPostingType","LedgerTransType","PurchStatus"];
        int             x = conlen(con);

        while(x!=0)
        {
            enumName = conpeek(con, x);

            DictEnum de = new DictEnum(enumName2Id(enumName));
       
            for (i=0; i < de.values(); i++)
            {
                info(strfmt(enumName + ", " + int2str(de.index2Value(i)) + ", " + de.index2Symbol(i) + ", " + de.index2Name(i)));
            }
            x--;
        }
    }

}

Wednesday 5 December 2018

How To: Add deep links\Drill Down\Hyperlink to reports (SSRS)

In the Precision design, field 'Action' property, you can find the expression like:





Syntax will be

=Microsoft.Dynamics.Framework.Reports.BuiltInMethods.GenerateDrillThroughLink(
Parameters!AX_ReportContext.Value,
Parameters!AX_UserContext.Value,
"EcoResProductDetailsExtendedGrid", //Menu ItemName
"Display",
"InventTable", //DataSource i.e. table name on form
"ItemId",
Fields!ItemId.Value)