09.08.2018, 17:11 | #1 |
Участник
|
d365technext: Passing values between PreHandler & PostHandler
Источник: http://d365technext.blogspot.com/201...rehandler.html
============== Passing values between PreHandler & PostHandler using the below code you can pass the custom value between pre handler and post handler Example /// /// enforcePayRateTolerance pre event hanlder /// /// Event args [PreHandlerFor(tableStr(HRMCompFixedPlanTable), tableMethodStr(HRMCompFixedPlanTable, enforcePayRateTolerance))] publicstaticvoidHRMCompFixedPlanTable_Pre_enforcePayRateTolerance(XppPrePostArgs args) { args.addArg("Tolerance", "Sheikh Sohail Hussain"); } Example /// /// enforcePayRateTolerance post event hanlder /// /// Event args [PostHandlerFor(tableStr(HRMCompFixedPlanTable), tableMethodStr(HRMCompFixedPlanTable, enforcePayRateTolerance))] publicstaticvoidHRMCompFixedPlanTable_Post_enforcePayRateTolerance(XppPrePostArgs args) { if (args.existsArg("Tolerance")) { Info( args.getArg("Tolerance")) } } Источник: http://d365technext.blogspot.com/201...rehandler.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|