Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Initialize SalesTable.MarkupGroup in OnInitValue event

$
0
0

Hi Friends,

I have a requirement to initialize the value in a field when a record is created. For this i want to default the MarkupGroup in Sales Table to some specific Value when a Sales Order is created.I have created the EventHandler class and copied the form Datasource OnInitValue event and initialized the table buffer as shown below

SalesTable salestable = sender.cursor(); 

salesTable.MarkupGroup ="FRGH";

However the value is not getting initialized when i create a Sales Order. I am trying to understand if the process which i followed is correct and wondering how the Event handler class which i have created will be called/Subscribed when the Sales Order is created.Could you please me in this regard.

Thanks 

Venky


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>