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;
}
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;
}
Valuable post useful for everyone.Keep on sharing.
ReplyDeleteD365 Finance and Operations Training
D365 Finance Training
D365 Operations Training