Sunday 28 June 2020

D365 TABLE INITVALUE EVENT HANDLER CODE X++

TABLE INITVALUE DATASOURCE PRE AND POST EVENT HANDLERS FOR INIT METHOD
Write the below code in the form extension class

   /// <summary>
    ///
    /// </summary>
    /// <param name="args"></param>
    [PostHandlerFor(tableStr(SalesTable), tableMethodStr(SalesTable, initValue))]
    public static void SalesTable_Post_initValue(XppPrePostArgs args)
    {
        SalesTable SalesTable = args.getThis() as SalesTable;
        SalesTable.test_PrintNote=NoYes::Yes;
    }

1 comment:

AZURE INTERVIEW QUESTIONS AND ANSWERS

AZURE INTERVIEW QUESTIONS AND ANSWERES 2021 2. What is cloud computing? Explanation:  It is the use of servers on the internet to “store...