I want to pass the Args.parm() value from Main() method of a RunBaseBatch to the dialog() method of the same RunBaseBatch. First of all declare a new string variable called "argsParm" in the declaration method of the RunBaseBatch class and add it to the #localMacro.CurrentList macro /// </remarks> class TaxReport extends RunBaseBatch { NoYes updateNow; … Continue reading AX – D365FO – How to access Args Parameters inside dialog() in a runbasebatch class?
Category: Args
AX – D365FO – Get source record from a caller object
In this example I'll show how to obtain the source record from a caller object. Suppose you have a form A that calls form B. In Form B you want to know what is the data source of the Form A and if it's a VendTable you want to retrieve the AccountNum field VendTable vendTableLocal; … Continue reading AX – D365FO – Get source record from a caller object
AX – D365FO – Get DataSource name of a caller object
Suppose you have a form A that calls form B. In Form B you want to know what is the data source of the Form A and do something..... This is the code to obtain the data source name of a caller object (such as Form, menu item, etc..). args.record().dataSource().Name();